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)); 
  1. @tblparent has minimum 1 record
  2. @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

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -