Click here to Skip to main content
15,924,318 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to get the schema and data of a table by a script in Sql ?

I want a script to fetch the schema and data of a table provided. It is not possible to take the script using Tasks -> Generate Scripts Option etc. Since it is so, I want a script for fetching
C#
the schema and data of a table provided


What I have tried:

It is not possible to take the script using Tasks -> Generate Scripts Option etc. Since it is so, I want a script for fetching
C#
the schema and data of a table provided
Posted
Updated 30-May-16 0:21am
Comments
Herman<T>.Instance 30-May-16 5:59am    
Which SQL? MySQl, Oracle, DB2, MSSQL?

1 solution

As you have said Tasks -> Generate Scripts Option etc I am assuming you mean MSSQL Server.

This article gives a method for that Generate insert statements from a specific table data using SQL Server[^]
 
Share this answer
 

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