Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2007

    Unanswered: Connecting to SQL Server over the LAN


    I have SQL Server installed on a machine named SQLHOST with an IP address, and SQL server is installed with an instance named 'CLIENTDB'. Now on another machine, I have a client software written using .NET which connects using the following string:

    Server=SQLHOST\CLIENTDB;Initial Catalog=clients;User ID=clientdb;Password=xyz;Trusted_connection=false; Persist Security Info=false;Pooling=false;

    This works fine. But when I replace "SQLHOST" with "" it does not connect. Why is this? Is there no way one can connect with an IP Address? As this is going to be deployed across the LAN, I would rather rely on the IP address than the computer name... Does this make sense?

    Looking forward to your reply,

    Thanks in advance,

  2. #2
    Join Date
    Nov 2004
    on the wrong server
    Provided Answers: 6
    networking is not really my thing but I am wondering if you are using DHCP or static IP addresses. Can you ping that IP address from your machine? And excuse my networking ignorance but some times machines have an internal IP address and an external one.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  3. #3
    Join Date
    Jan 2005

    Since you do not use the default instance, you should set the server to

    I could connect with this configuration to a server with IP and instance name sql2005

    Are you using "\CLIENTDB" instead of "SQLHOST\CLIENTDB" ?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts