Solved

Creating database from script

Posted on 2009-06-29
4
188 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article will describe one method to parse a delimited string into a table of data.   Why would I do that you ask?  Let's say that you need to pass multiple parameters into a stored procedure to search for.  For our sake, we'll say that we wa…
INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now