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 |
venkath
Posting Yak Master
202 Posts |
Posted - 2006-06-15 : 08:01:11
|
Hi guysI have detached a database which is having around 40 data and log files.How can i attach this database using create database command..Help on this is greatly appreciated.Thanks |
|
RickD
Slow But Sure Yak Herding Master
3608 Posts |
Posted - 2006-06-15 : 09:29:53
|
Look up sp_attach_db in BOL.. |
 |
|
Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)
7020 Posts |
Posted - 2006-06-15 : 10:25:15
|
The sp_attach_db stored procedure has a limit of 16 files, so you will have to write your own CREATE DATABASE... FOR ATTACH command. Check the syntax in SQL Server Books Online.CODO ERGO SUM |
 |
|
|
|
|