i just tried to pass table type as a parameter in function of sql server
Scenario : i Have customer and sales tables.. When i put an entry in sales form that has to affect both tables. So i decided to create a function to pass both table values as a type and execute the process in it.But i couldn't. In this case Customer has one record and Sales has one or more records. Now i need to know how to declare function and how to execute it in C#.net.
customer
cus_id
cus_name
cus_totpurchasecost
Sales
cus_id
sales_id
item_id
item_qty
item_cost
customer(1,'ddddd',10000)
sales(1,1,2,2000)
sales(1,2,6,1000)
Thanks in Advance