Re: Recreating database on production machine?
From: Jacco Schalkwijk (jacco.please.reply_at_to.newsgroups.mvps.org.invalid)
Date: 01/05/05
- Next message: AR: "PROBLEM WITH TRANSACTIONS"
- Previous message: Jacco Schalkwijk: "Re: Combing results from two queries into one line of a recordset"
- In reply to: epigram: "Recreating database on production machine?"
- Next in thread: mark baekdal: "RE: Recreating database on production machine?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 5 Jan 2005 12:42:52 -0000
If you want to recreate the database with a script, you can just right-click
the database in Enterprise Manager and choose All Tasks|Generate SQL
Script... Make sure you check all the tabs in that dialog, as for example
Primary and Foreign Keys are not scripted by default.
-- Jacco Schalkwijk SQL Server MVP "epigram" <nospam@spammy.com> wrote in message news:1104928162.aaa486f852ce4d9b388caf1a8d1880c9@bubbanews... >I know that you can use the graphical tools in Enterprise Manager to create >a database. If I choose this path and create a db on my test machine, how >do I create the same db (i.e. the physical schema) on my production machine >at a later date. > > It seems that you should use a series of DDL commands in a .sql file to do > this. If this is the preferred method, is there a way that Enterprise > Manager can create/export a .sql file of DDL commands that I could use to > recreate the db on another machine? If not, it seems that I should create > the database manually with DDL commands, and then put those all in a .sql > file myself later. Any suggestions on how to approach this issue would be > much appreciated. > > Thanks >
- Next message: AR: "PROBLEM WITH TRANSACTIONS"
- Previous message: Jacco Schalkwijk: "Re: Combing results from two queries into one line of a recordset"
- In reply to: epigram: "Recreating database on production machine?"
- Next in thread: mark baekdal: "RE: Recreating database on production machine?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading