Re: How do you create a databse?

From: Wayne Snyder (wayne.nospam.snyder_at_mariner-usa.com)
Date: 01/27/05


Date: Thu, 27 Jan 2005 08:40:13 -0500

See inline...

-- 
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Do Park via SQLMonster.com" <forum@SQLMonster.com> wrote in message
news:3049694078734840ade4cd0e06a02414@SQLMonster.com...
> Hello all,
>
> I usually use Enterprise Manager to create databases. Maybe I did not
trust a script.
> I think that it may be time to use a script to create databases.
>
> I?d like to hear your opinions.
>      1. Do you use Enterprise Manage or a script when you create a
database?
Almost always..
>      2. What are cons and pros?
The only con is if you use SEM you will not have a script.... but you can
generate one from SEM.... so there is essentially no difference... (You can
schedule a script to run also.)
>      3. Would you please show me sample scripts that I can use?
Take a look at the scripts in your SQL install directory Instpubs and
instnwind. These are the install scripts which MS wrote to setup the pubs
and northwind databases.
>      4. Which one do you use a script or Enterprise Manager?
 SEM... I have taught SQL for years, and early on I always had people write
scripts.... DB creation was more complicated, and the GUIs were unreliable.
Now days, I use the GUI almost exclusivly, no reason not to... I guess the
only exception is that if I am already in Query Analyzer, I just type in the
script... the smallest script to create a test database is simply  create
database test.... Very simply.
>      5. Which one do you recommend?
>      6. Which tool do you use OSQL or Query Analyzer when you run a
script?
QA for interactive, and either OSQL or schedule something using SQL Agent...
hope this helps... and good luck...
>
> Thanks in advance,
> Do.
>
> -- 
> Message posted via http://www.sqlmonster.com


Relevant Pages

  • Re: Error 15401 using sp_grantlogin (not addressed by current KB articles)
    ... Restarting Windows 2000 resolved the problem for this particular account, ... confused when it sees a duplicate SID. ... > One way to get SQL Server to agree with the renamed NT ... > Preview (to ensure the script was created), ...
    (microsoft.public.sqlserver.security)
  • Re: SQL state (error) is 37000
    ... What is being changed is new footage data. ... SQL Server would always be able to finish the job before the next job needed ... >>It is a way to transport data between databases. ... >>the script below? ...
    (microsoft.public.sqlserver.connect)
  • Re: SQL Server metadata compare
    ... > Anyone knows a VCL component to compare between two SQL Server ... > databases (or one script and a database), ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Scripting a SQL database
    ... Virtually everything SQL Server Enterprise Manager does can be ... To run the generated script in ASP, ... You can also create a DTS (Data Transformation Package) ... that you'll want to select the "copy database objects and data" ...
    (microsoft.public.inetserver.asp.db)
  • Re: SQL Security
    ... except I'm having problems making it work in a script. ... ;Set properties of DB objects and open connection to database ... > from Books Online (within the SQL Server program group): ... > communicate with SQL Server. ...
    (microsoft.public.sqlserver.server)