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)

  • 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.