Results 1 to 6 of 6

Thread: SQL Server Conn String login failure

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2001
    Posts
    107

    SQL Server Conn String login failure

    I have a connection string that is allowing me to return a data set from a SQL Server. Here is my connection string:

    "Data Source=SERVER101;Integrated Security=SSPI;Initial Catalog=HPLX3;User ID=dnbftpsvc;Password=dbflatftp"
    That user is correctly set up on the server, yet when I run the application, I get an exception stating that the login failed for "user (NULL)."

    Any advice?

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You can't use Integrated Security=SSPI and the username and password in the same connection string. The Integrated Security=SSPI part tells it to use the currently logged in windows account for the username and password so there is no need to provide one. Either that or take the Integrated Security part out.

    Actually don't take out Integrated Security just change it to Integrated Security=False.
    Last edited by Edneeis; Aug 1st, 2003 at 03:10 PM.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2001
    Posts
    107
    If that fixes it I will be super frustrated with myself! I'll let ya know Monday.

    Thanks!

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jun 2001
    Posts
    107
    Now my application is just giving me a WebException and is timing out. Yuck.

  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    And the Web Exception is.....

    Also the whole stack trace would be better.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jun 2001
    Posts
    107
    I didn't even have the correct user set up in SQL Server...that was my problem...

    ~Mike

Posting Permissions

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



Click Here to Expand Forum to Full Width