Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending a DataRow to Update Stored Procedure
Message
From
22/01/2010 07:15:46
John Baird
Coatesville, Pennsylvania, United States
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01445383
Message ID:
01445417
Views:
35
>>Hi, Dmitry, in SQL 2008 you can now pass an ADO.NET datatable to a stored proc.
>>
>>I don't know about a datarow (haven't tried it)...but worst case is you'd need to create a 1-row datatable.
>
>Hi Kevin,
>I am using SQL 2005 for the project I am working on (per customer's spec). I guess I will have to 'manually' create a dataset/datatabe of 1 row and pass it to the stored procedure. Another idea I have is to create a ArrayList of pairs (column name and value) and pass it to the stored procedure. This way I can create somewhat a generic procedure for updating. But I don't know if ArrayList type can be read by stored procedure.
>
>Thank you.

We only take the changes, bundle it into a datatable and update ... I believe the process also uses diffgrams..
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform