I’m having a dataset containing multiple datatables in my aspx file
I need a datatable to be passed into an SQL Server stored procdure so that I can modify the table and insert into a database table in SQL Server
The Datasets contain huge data present in it
Can you Help me out!
You can’t pass data sets to a stored procedure. Even though table variables are a language element of t-sql it isn’t possible to use them for passing data into a procedure. You can encode the data table as a CSV/XML string, but encoding/decoding would have a huge impact on performance. You may want to implement the logic in your data layer on the C# side and just input the results into the database.