Advertisement

06.08.2008 at 10:01PM PDT, ID: 23468071
[x]
Attachment Details

Transact SQL - dump data with sql insert statements to a text file.

Asked by wpm0001 in SQL Server 2005

Tags:

Does anyone know how to dump data from an MS SQL database with pre-made insert statements without hand coding for each table?

I know about querying INFORMATION_SCHEMA.COLUMNS etc but don't seem to be able to work out how to bring back the info in the table with the column info etc from the system tables.

Any thoughts?  Seems to me that someone would have done this before and the script is available on the web but haven't been able to find it...Start Free Trial
 
Loading Advertisement...
 
[+][-]06.08.2008 at 10:14PM PDT, ID: 21741101

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: SQL Server 2005
Tags: Transact SQL
Sign Up Now!
Solution Provided By: valli_an
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.11.2008 at 09:54PM PDT, ID: 21766267

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.13.2008 at 01:59AM PDT, ID: 21777063

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628