Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / March 2008

Tip: Looking for answers? Try searching our database.

Restore database

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
davjoh - 30 Mar 2008 20:16 GMT
I have 4 files sent to me by a client, LogData.bak, PioneerTables.bak,
SEF.bak, and WSD.bak. I want to restore the database in SQL Server
2005 Express. I select Databases and right-click and select restore
database. There is no database in the To database drop down and typing
in a name does not work. Also there is no database in the From
database drop down. What is missing?

Help greatly appreciated!

Dave
Plamen Ratchev - 31 Mar 2008 04:10 GMT
For 'Source for restore' select 'From device' and then click '...' to add
the backup file. Make sure to check (the 'Restore' check box) the backup to
restore from. Then in 'Destination for restore' in 'To database' type the
database name to restore as. On the Options page verify and change if needed
the Restore As path for the database files.

You can  also write a query:

RESTORE DATABASE LogData
  FROM DISK = N'C:\LogData.bak'
  WITH FILE = 1
  RECOVERY;

Look all options for RESTORE DATABASE in SQL Server Books Online. You may
need the MOVE option to place the restored database files to the correct
folder.

You can see what is contained in the backup with RESTORE HEADERONLY:

RESTORE HEADERONLY
  FROM DISK = N'C:\LogData.bak';

And using RESTORE FILELISTONLY will give you the list of database and log
files contained in the backup set.

HTH,

Plamen Ratchev
http://www.SQLStudio.com
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.