Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2007
    Posts
    50

    Question Unanswered: Problem using alias in connection string

    Hi,

    I'm using VB .NET to create ASP applications that talk to a MS SQL server 2005.

    I have been given an alias for the DB Server as it's part of a cluster.

    This is fine and I can ping it from Dos and connect using it in MS SQL Manager.

    When I try to use it in a VB app as part of a connection string, it says it fails to connect. If I substitute the alias for the physical server name, it connects.

    Strange, but I am doing something stupid?

    Cheers,

    Paul.

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    I hate blind chess.
    “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 2003
    Location
    Massachusetts
    Posts
    5,800
    Provided Answers: 11
    What is the connection string that fails?

  4. #4
    Join Date
    May 2004
    Location
    Seattle
    Posts
    1,313
    also what is the exact text of the error msg you get.

  5. #5
    Join Date
    Jul 2007
    Posts
    50
    Hi,

    Sorry for not posting details earlier, I was at home.

    I've swapped the 'real' name for the alias and guess what? It worked tonight.. DOH....

    Cheers all... Nothing to see here..

    Paul.

  6. #6
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    That's probably a failover artifact. If so, it will break again after a failover.

    -PatP

Posting Permissions

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