Results 1 to 3 of 3

Thread: VB App. trusted connection through NT to SQL7

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2000
    Location
    BC, Canada
    Posts
    142
    Hi That is my question.
    How to make a trusted NT connection between VB application and SQL7 server?

    In other words, when I run my VB application from a NT client, do I still need to give DB userID and password if NT Client has trusted NT authentication.

    I know you can setup NT authentication for a NT domain group/user on SQL7 Server. But how to apply this rule in my VB application through ADO connection?

    For instance,when creating ADO connection

    cmdADO.CoonectionString="Provider=MSDASQL;uid=fred;pwd=xyz; server=sql7;database=pubs"

    Both password and UserID must be supplied here.But, I have already set the whole NT group as trusted user in SQL7 server. how to get ride of useid and pwd here and establish a ADO connection to SQL7 server?














  2. #2
    Addicted Member
    Join Date
    Sep 1999
    Location
    Philippines
    Posts
    196

    Smile

    If you are using OLE DB Provider for SQL server, put 'SSPI' on the Integrated Security property of your connection.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2000
    Location
    BC, Canada
    Posts
    142
    thx for reply.

    I have found answer
    "trusted_connection=yes"

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