Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 25th, 2004, 09:33 AM
gburns gburns is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 1 gburns User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Importing data into different data files

I have 2 SQL Server databases called Demo and Dev. I exported Demo (as Demo.bak) and want to import it into Dev. When I use Restore Database in Enterprise Manager specifying the From device it automatically chooses the Demo logical and physical data file names (in the Options tab of Restore database) instead of Dev logical and physical data file names and so it would overwrite the existing data in Demo (not the same as the export in Demo.bak)

Is there a way I can specify which data files I want the data to be imported into?

The Import Data wizard does not work as there is not an option to specify the Data Source as a .bak file.

I need to use the Demo.bak file as I no longer have access to Demo database.

Can anyone help please?

Many thanks.

Reply With Quote
  #2  
Old December 3rd, 2004, 09:50 AM
mezza1 mezza1 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 12 mezza1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 28 sec
Reputation Power: 0
Smile

Hi,

When restoring, choose 'From Device'
Then click on 'select Devices....'
Make sure the Disk radio button is selected and click on Add
Make sure the File Name radio button is selected, and click button next to file name '....'
Make sure you .bak file is located on the server, on one of the disk (make no real difference)
In the 'Backup Device Location' window, browse folders and select the file to restore.
Make sure you 'restore as database' is the correct database name.
make sure you have 'ticked' the force restore over existing database in the Options tab.

Try this, i hope this is what you wanted...let me know if you have any probs.

Cheers

Mez

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > Importing data into different data files


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT