Link to home
Start Free TrialLog in
Avatar of MTecho
MTecho

asked on

Save a DataTable to SQL Server database and make the database table at the same time

I have a DataTable object, filled with data from an existing query (used a DataAdaptor and SQL statement).

I want to put the data in this DataTable object into a new table in an SQL Server database.
How do I make the table and populate it as fast as possible from a C# application?
Avatar of dungla
dungla
Flag of Viet Nam image

You can use SELECT INTO statement to input data to new table in SQL Server.
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial