English 中文(简体)
SQL Server communication between VirtualBox images
原标题:

I have a WinXP host with VirtualBox 3.1.2 installed. I have a VirtualBox image called "hydrogen" on which I installed WinXP and MS SQL Server 2005 Express. I have another VirtualBox image called "helium" on which I installed WinXP. I am trying to create a ODBC DSN on "helium" that connects to SQL Server on "hydrogen" but it fails.

All of the documentation I ve seen so far only says to use a "bridged adapter" in my VirtualBox image settings. I ve done that but I still don t have communication.

最佳回答

I ve gone through a couple of tweaks and changes and I have it working. My environment:

Host:
  • WinXP Pro
  • SQL Server 2005
Guest "Hydrogen":
  • WinXP Pro
  • SQL Server 2005
  • Network Adapter #1: NAT
  • Network Adapter #2: Bridged
Guest "Helium":
  • WinXP Pro
  • Network Adapter #1: NAT
  • Network Adapter #2: Bridged

On "Hydrogen", I ran the Network Setup wizard, specifying that it was part of a network that did not have an internet connect (part of the "Other" option). I rebooted "Hydrogen".

On "Helium", I ran the Network Setup wizard, specifying taht it ws part of a network that did not have an internet connect (part of the "Other" option). I rebooted "Helium".

I turned off the firewall on "Hydrogen".

I can now connect to SQL Server on "Hydrogen" from both "Helium" and my host. Some of these settings may be extraneous; I don t know. But I know it s working for me reliably now, even after rebooting the host.

问题回答

The express edition does not listen on remote ports by default. You can enable remote connections using the "Surface Area Configuration Tool" or by running this SQL script:

exec sys.sp_configure N remote access , N 1 
go
reconfigure with override
go

Also, if you use a bridged adapter, your virtual boxes are sharing your host s IP address. That means you ll have to configure both instances of SQL Server on a separate port.





相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

SQL server: Can NT accounts be mapped to SQL server accounts

In our database we have an SQL server account that has the correct roles to access some of the databases. We are now switching to windows authentication and I was wondering if we can create a NT user ...

SQL Server 2000, ADO 2.8, VB6

How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8

热门标签