Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 3rd, 2005, 10:28 PM
Authorized User
 
Join Date: Aug 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default import & export data script


Hi All,

How to build export and import data script?

for each table export to 1 file as <table_name>.sql

Thanks.

 
Old January 4th, 2005, 01:15 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

you need to do this using
Code:
EXEC sp_GenerateScript @server = 'Server_Name',
                       @uname = 'User_Name', 
                       @pwd = 'Password',
                       @dbname = 'Database_Name', 
                       @filename = 'c:\File_Name.sql'
and you can find all the details here http://www.mssqlcity.com/Articles/Ge...eAutSP.htm three quarters down the page Example: generate script

Jaime E. Maccou





Similar Threads
Thread Thread Starter Forum Replies Last Post
Import & Export Excel File prasanta2expert ASP.NET 1.0 and 1.1 Basics 5 March 5th, 2007 09:28 AM
Still problems with Import / Export needelp Access VBA 1 September 21st, 2006 08:03 PM
How to import & export beetle_jaipur SQL Server 2005 0 September 16th, 2006 04:17 AM
Export Data to Excel & Generate Graphs vinod_pawar1 ASP.NET 1.0 and 1.1 Professional 3 July 15th, 2006 01:03 AM
Apply Custom template & import data from text file shampabera Excel VBA 2 August 8th, 2005 07:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.