Click here to Skip to main content
15,910,878 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

I have sql script to import datatable into sql server. In the same way i need to upload my sql. is there any way....???

Here is sql script:
C#
System.Data.SqlClient.SqlBulkCopy bc = new SqlBulkCopy(SQLClass.constring);
                    bc.DestinationTableName = TableName;
                    try
                    {
                        SQLClass.constring.Open();
                        bc.WriteToServer(ds.Tables[0]);
                        SQLClass.constring.Close();
                    }

Thanks in advance
......!!!
Posted
Updated 27-Apr-12 0:21am
v2

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