Rajesh Kamalakshan
Wednesday, October 13, 2010
How to attach a mdf file to a database in SQL server 2005?
You can use the below command to attach a mdf file to a database in SQL Server 2005.
sp_attach_single_file_db @dbname= 'adminv2', @physname= C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\adminv2.mdf'
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment