c# - Structured types is empty -
i passing 2 data tables (structured types) @tblparent , @tblchild input parameter stored procedure,
paramlist.add(dbsqlmanager.createparameter("@tblparent", parameterdirection.input, alertsdatadt)); paramlist.add(dbsqlmanager.createparameter("@tblchild", parameterdirection.input, alertspointdatadt));
- @tblparent has minimum 1 record
- @tblchild may have no records
while passing @tblchild no records, getting below obvious error,
"there not enough fields in structured type. structured types must have @ least 1 field."
question is, there way handle no records in @tblchild??
Comments
Post a Comment