Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Database and Reporting > Copying Data Structures and Stored Procedures


Reply
 
Thread Tools Display Modes
  #1  
Old 01-09-2003, 08:40 AM
Aquila's Avatar
Aquila Aquila is offline
Contributor
 
Join Date: Oct 2002
Location: Ocala, Fl.
Posts: 597
Default Copying Data Structures and Stored Procedures


I have a database with over 1500 stored procedures and 50 tables, I need to make a blank copy of this database, where all the tables are empty.

I thought about just detaching and reataching under a different name, but to go through each table and delete the several hundred thousand rows of data would be time consuming.

Is there any way anyone knows of that I could just copy the 1500 stored procedures to a new database (the create table procedures are still there so I could run them easily)
Reply With Quote
  #2  
Old 01-09-2003, 08:44 AM
Aquila's Avatar
Aquila Aquila is offline
Contributor
 
Join Date: Oct 2002
Location: Ocala, Fl.
Posts: 597
Default

woop forgot to mention that its sql server 2000
Reply With Quote
  #3  
Old 01-09-2003, 08:48 AM
GMan_NC's Avatar
GMan_NC GMan_NC is offline
Proud Daddy

Forum Leader
* Expert *
 
Join Date: Sep 2002
Location: North Carolina, USA
Posts: 1,962
Default

Yes, in Enterprise Manager, right click a DB and select All Tasks ---> Import Data. Then go through the wizard and try it that way
__________________
A morning without coffee is like something without something else.
Reply With Quote
  #4  
Old 01-09-2003, 09:04 AM
Aquila's Avatar
Aquila Aquila is offline
Contributor
 
Join Date: Oct 2002
Location: Ocala, Fl.
Posts: 597
Default

sweet
thanks
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->