April 8, 2008 at 9:48 am
USE [master]
GO
CREATE DATABASE [test] ON
( FILENAME = N'c:\temp\test.mdf' ),
( FILENAME = N'c:\temp\test.ldf' )
FOR ATTACH ;
GO
Should work for Attaching a db.
Prasad Bhogadi
www.inforaise.com
April 9, 2008 at 1:18 am
Prasad Bhogadi (4/8/2008)
USE [master]GO
CREATE DATABASE [test] ON
( FILENAME = N'c:\temp\test.mdf' ),
( FILENAME = N'c:\temp\test.ldf' )
FOR ATTACH ;
GO
Should work for Attaching a db.
Thanks Prasad
sorry for being simple but what do you run this through? e.g. (OSQL)
April 9, 2008 at 1:59 am
You could use osql as well as Management Studio (a graphical fronted, which if you do not have installed can install for SQL Server Express from http://www.microsoft.com/downloads/details.aspx?FamilyID=c243a5ae-4bd1-4e3d-94b8-5a0f62bf7796&displaylang=en)
Regards,
Andras
Viewing 3 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply