sql command for attaching database in SQL Server

by pietman 26. May 2009 10:38

USE [master]
GO
CREATE DATABASE cliniweb ON
( FILENAME = N'C:\work\NHS\Kings Colleage PHASE 1\old database\cliniweb.mdf' ),
( FILENAME = N'C:\work\NHS\Kings Colleage PHASE 1\old database\cliniweb.ldf' )
 FOR ATTACH ;
GO

/* verify as follows */
select name from sys.databases
go

Tags:

SQL SERVER

Add c0mment




  Country flag
biuquote
  • Comment
  • Preview
Loading


About ...

pietman celliersPietman Celliers
Bitlink  Ltd
bitlinkit.com