error in connecting with sql server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • veer
    New Member
    • Jul 2007
    • 198

    error in connecting with sql server

    hello expert
    i want to connect sql server with password but it is producing the login failed
    and when i access the sql server which has no password it is connecting
    both of them are on my lan Network
    my code is
    con.Open "Driver={SQ L Server};Server= " & txtserver & ";Database=mast er;Uid=sa;Pwd=u kvulcan"
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    If the server has no password then why are you connecting with password ?

    Comment

    • veer
      New Member
      • Jul 2007
      • 198

      #3
      i think you dont understand my query i have two sql server one has password and other has no password
      when i conect with second server which has no password it works fine and when i conect with first server it show error login failed
      that is my question


      thanks

      Originally posted by debasisdas
      If the server has no password then why are you connecting with password ?

      Comment

      • CyberSoftHari
        Recognized Expert Contributor
        • Sep 2007
        • 488

        #4
        Read my thread posted in below link. That will be easy to use connection string for PWD Sql server and without PWD Sql server.
        suggestions in connecting to an access database?

        Comment

        Working...