Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Restoring Database in SQL Server 2005?

Author  Topic 

somu_p
Starting Member

13 Posts

Posted - 2007-03-31 : 05:32:20
Hi,
I've a data & log files.I want to use these files in SQL Server 2005 database.
Is it possible to create the new database or use the existing database?

Kindly give me the solution for this?

Regards
Somu

spejbl
Starting Member

28 Posts

Posted - 2007-03-31 : 10:14:22
use CREATE DATABASE statement with the FOR ATTACH option

SQL Server 2005 Books Online > CREATE DATABASE
http://msdn2.microsoft.com/en-us/library/ms176061.aspx

--
kb
http://kbupdate.info/ | http://suppline.com/
Go to Top of Page
   

- Advertisement -