dbTalk Databases Forums  

Accessing one db by two sql server installations (eg. native vs vmware)

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Accessing one db by two sql server installations (eg. native vs vmware) in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
HP
 
Posts: n/a

Default Accessing one db by two sql server installations (eg. native vs vmware) - 08-21-2007 , 06:58 PM






Hi there

As many people nowadays, I have 2 XP installations on my laptop - one
running natively and one in vmware box running on ubuntu (situation
even more common with osx on intelmacs).

Since I would like to be able to work on same development projects in
both these environments, depending on the situation, I was wondering
how should I cope with DBs synchronization.

The simplest solution would be deploy the database in native windows
sql server installation, and attach the _same_ database files when
running from vmware (via sharing their folder on mounted ntfs
partition).

Would it be possible at all without any data corruption assuming I
would run the same server versions (same SPs applied etc.)?

thanks
HP


Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Accessing one db by two sql server installations (eg. native vs vmware) - 08-22-2007 , 04:58 PM






HP (ha5en1 (AT) gmail (DOT) com) writes:
Quote:
As many people nowadays, I have 2 XP installations on my laptop - one
running natively and one in vmware box running on ubuntu (situation
even more common with osx on intelmacs).

Since I would like to be able to work on same development projects in
both these environments, depending on the situation, I was wondering
how should I cope with DBs synchronization.

The simplest solution would be deploy the database in native windows
sql server installation, and attach the _same_ database files when
running from vmware (via sharing their folder on mounted ntfs
partition).

Would it be possible at all without any data corruption assuming I
would run the same server versions (same SPs applied etc.)?
Wouldn't the simplest be to simply access the same SQL Server instance,
no matter if you are on the virtual machine or the host?

Database files on network shares is a dangerous affair, and not to
recommend. Note also that for it to work, you would need to detach the
database from one server, before you can attach to another?

If I really wanted to use the same database two server instance, I would
prefer to move the database with BACKUP/RESTORE.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.