Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > SQL Language
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 3rd, 2005, 10:28 PM
Authorized User
Join Date: Aug 2004
Location: , , .
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


Reply With Quote
  #2 (permalink)  
Old January 4th, 2005, 01:15 AM
Friend of Wrox
Join Date: Nov 2003
Location: Lehigh Acres, FL, USA.
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc

you need to do this using
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
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 05:49 AM.

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