What should I do to connect to SQL Server installed in a virtual machine?

What should I do to connect to SQL Server installed in a virtual machine?


Comments

  1. There is nothing special to do when SQL-Server runs in a virtual machine. Everything you do for a physical machine should be done.

    If you can't connect, firstly check for the firewall on the virtual machine, on the host machine and on the client machine.

    Visit my blog: http://francois-piette.blogspot.be

    ReplyDelete
  2. You must also enable TCP/IP in client and server protocols (SQL Server Configuration Manager for 2005 version)

    ReplyDelete
  3. and maybe you need to specify the sql instance just like SRV-PC\SQLExpress

    ReplyDelete
  4. I see you're running VirtualBox. Make sure the network type is set to bridged in the VM's properties. The other types (nat, host-only) won't work.

    Using bridged mode the VM will get its own IP address on the LAN, just like a regular machine.

    ReplyDelete
  5. how about checking your firewall settings on the virtual box?

    ReplyDelete
  6. To be honest I tried... but sadly!
    still trying sth else every time

    ReplyDelete
  7. If you can connect using SQL Server Managment Studio, then you should be able to do it within Delphi. Have you tried that first??

    ReplyDelete

Post a Comment