Home Forums SQL Server 2005 Backups SQL server 2005 administration (restoring mdf file without ldf) RE: SQL server 2005 administration (restoring mdf file without ldf)
SanjayAttray
SSChampion
Points: 13157
More actions
February 8, 2008 at 1:00 pm
#776568
sp_attach_single_file_db @dbname= 'dbname' ,@physname= 'physical_name'
but, make sure database got only one .mdf file or say datafile. This command doesnot work with multiple data files.
SQL DBA.