Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2002-04-25 : 12:19:04
|
| Dan writes "I am having a converation with a co-worker about installing a new database on a clients DB Server.I would like to know what is the best way of creating the database. Should I use a SQL script, or what?My co-worker thinks you can just copy a database to another DB server, but I don't think it is that easy.(move the *.MDF,*.LDF files)Also the database will need to be populated. I can create the SQL Script to insert all the needed records.ThankDan " |
|
|
KnooKie
Aged Yak Warrior
623 Posts |
Posted - 2002-04-25 : 12:51:22
|
| You can do it either way.The easiest is to use sp_detachdb and then sp_attachdb (see BOL)but you can also do a copy in the way you mention or use DTS.Paul |
 |
|
|
|
|
|