Solved

Creating database from script

Posted on 2009-06-29
4
224 Views
Last Modified: 2012-05-07
I have a script that creates a database and empty database tables with constraints from SQL Server 2000. How do I go about running this script using SQL Server 2005 Management Studio to create this database as SQL Server 2005?

Can someone help by guiding me throught the process?
0
Comment
Question by:YZlat
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
ErezMor earned 250 total points
ID: 24738995
in management studio, fo to File->Open->File... and point to the file/s with the scripts
then, when displayed (as tabs with the scripts inside) click the Execute button on each (of course in the right order (db creation, then tables then relations etc...)
good luck
0
 
LVL 6

Expert Comment

by:PIERCGG
ID: 24739009
In SSMS, choose FILE/OPEN and then point to your sql file to open it.  Then execute it.
0
 
LVL 35

Author Comment

by:YZlat
ID: 24739325
Thank you! I ran the script but now I cannot find my stored procedures. Where would they be?
0
 
LVL 35

Author Comment

by:YZlat
ID: 24739332
found them! Thanks!
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question