SQL CODE BANK
Search
Thursday, July 28, 2011
Code to attach a Database.
exec sp_attach_db @dbname = N'DB_Cmanager',
@filename1 = N'P:\Program Files\Microsoft SQL Server\MSSQL\Data\db_cmanager.mdf',
@filename2 = N'P:\Program Files\Microsoft SQL Server\MSSQL\Data\db_cmanager_log.ldf'
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment