Attach database without log file and rename database

added by jacobsebastian
8/30/2011 2:04:09 AM

120 Views

Assuming the database was detached successfully, this t-sql code will attach a mdf file without a log file. It will also reattach the database with a new database name. USE [master] GO CREATE DATABASE [myTestDatabase] ON ( FILENAME = N'E:\Program...


0 comments