Results 1 to 4 of 4

Thread: SQL Connection in domain names

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2003
    Posts
    68

    Red face SQL Connection in domain names

    Hi all, Do u know how to connect sql server in vb.net using domain login? That means when user log into the windows, then he use e application, he is able to do e data entry, viewing... etc, by recongising his domain login. He need not go into a password login.

  2. #2
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681
    You need to make sure the user is set up in SQL Server as a Windows User type login, then you can just create your Connection String in VB without the UserID and pass, and using integrated security.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2003
    Posts
    68
    Do u have any sample codes for the sql connection?

  4. #4
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681
    VB Code:
    1. data source=SqlServerNameHere;initial catalog=DBNameHere;integrated security=SSPI;persist security info=False;packet size=4096

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