SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 how to restore DB ???
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

SanjaySutar
Starting Member

India
18 Posts

Posted - 05/22/2008 :  09:24:25  Show Profile  Reply with Quote
Hi i have a sql server 2000 DB backup.
I want to restore it in a DB where the DB is not already present ????

how can i do that ????

San

sodeep
Flowing Fount of Yak Knowledge

USA
7174 Posts

Posted - 05/22/2008 :  09:26:07  Show Profile  Reply with Quote
Check restore command in Books Online.
Go to Top of Page

suresha_b
Yak Posting Veteran

India
82 Posts

Posted - 05/22/2008 :  10:00:04  Show Profile  Send suresha_b a Yahoo! Message  Reply with Quote
RESTORE DATABASE DatabaseName
FROM DISK = 'BackupFileName.BAK'
Go to Top of Page

karthik_padbanaban
Constraint Violating Yak Guru

India
263 Posts

Posted - 05/22/2008 :  10:02:57  Show Profile  Reply with Quote
quote:
Originally posted by SanjaySutar

Hi i have a sql server 2000 DB backup.
I want to restore it in a DB where the DB is not already present ????

how can i do that ????

San



from a location you can restore your DB

USE [master]
GO
RESTORE DATABASE DB_NAME
FROM DISK= 'D:\DB_NAME.Bak'

Edited by - karthik_padbanaban on 05/22/2008 10:04:53
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000