Click here to Skip to main content
15,923,087 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to develop a generic code for inserting dataset values that consist of multiples tables into multiple tables in sql server database in C#? Please help me.
Posted
Updated 19-Dec-10 20:20pm
v2
Comments
Sandeep Mewara 20-Dec-10 3:18am    
How to? Write it! Try?
Dave Kreskowiak 20-Dec-10 10:08am    
You're going to have to modify your question to be a bit more specific. What you've asked doesn't make much sense. Give an example of what you're trying to achieve and under what circumstances.
Sunasara Imdadhusen 21-Dec-10 7:20am    
Note clear!!

If I understand the question it looks like you will need to split the data up for each table. Google for C# to SQL Server table. Then populate each table.
 
Share this answer
 
Comments
yaprig 24-Dec-10 2:16am    
thanks it waz helpful..:)
It will be more likely done in this way.
SqlBulkCopy sbc = new SqlBulkCopy(conn1 );
                  sbc.DestinationTableName = @Table_Name;
                  conn1.Open();
                  sbc.WriteToServer(ds.Tables[i]);
                  conn1.Close();
 
Share this answer
 
v2
Comments
Abhinav S 24-Dec-10 2:23am    
Code tags added.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900