Wrox Programmer Forums
|
BOOK: Professional SQL Server 2000 Programming
This is the forum to discuss the Wrox book Professional SQL Server 2000 Programming by Robert Vieira; ISBN: 9780764543791
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional SQL Server 2000 Programming 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 16th, 2005, 05:06 PM
sh sh is offline
Registered User
 
Join Date: Jan 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default exporting stored procedures

Hi,
I am using the SQL server 2000, trying to import and/or export stored procedures from remote server to my computer and vise versa. all I can do is to import/export tables and I am not sure how to correct the set up to transfer stored procs as well. Any idea?

Thanks
 
Old January 17th, 2005, 06:50 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

You can do this from a DTS Package using the task "Copy SQL Server Objects". On the Copy tab, uncheck "Copy all Objects" then click the "Select Objects" button to choose the stored procs and tables you want.

Or you can generate SQL scripts from the source database and run the scripts against the destination database using Query Analyzer
 
Old January 18th, 2005, 03:43 AM
sh sh is offline
Registered User
 
Join Date: Jan 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
Thanks for the information, I did it but I got a message:
Failed to copy objects from SQL server to SQL server....error occurred.

and no more details.
Does it have anything to do with security set up?
 
Old January 18th, 2005, 05:40 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Sometimes there are problems because by default it tries to copy users/logins too. You can change these default options to just copy the objects and try again. Also you can turn on logging in the DTS - See BOL.

Or try the SQL scripts approach, that's what I use - I find them much easier to debug than a DTS.
 
Old January 18th, 2005, 06:35 PM
sh sh is offline
Registered User
 
Join Date: Jan 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much.

I unchecked all selections under 'default options', I unchecked include all dependent objects under 'Create destination object...', then I got the faild message!... although it did transfer the stored procs this time!...(I wish I knew what is going on)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Stored Procedures help psnow1985 SQL Server 2005 2 April 12th, 2008 01:31 AM
Stored Procedures itHighway SQL Server 2000 3 November 23rd, 2005 10:08 AM
Stored Procedures stu9820 ASP.NET 1.x and 2.0 Application Design 2 January 15th, 2005 04:09 AM
Stored Procedures seanmayhew BOOK: ASP.NET Website Programming Problem-Design-Solution 4 June 10th, 2004 10:06 AM





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