Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Creating database from script

Posted on 2009-06-29
4
Medium Priority
?
242 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 1000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
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.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

926 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