I wrote a VB application that uses SQL Server DTS packages and stored procedures. The app pops up a login form and uses the UserID and Password supplied by the user to pass to SQL Server when loading DTS packages and when creating ADO connections.
Now I have been asked to eliminate the login form and instead use NT authentication or Active Directory (which the company uses) so SQL Server will recognize the user (or the group to which user belongs?) from the network login. I've been researching this but I'm confused as to how to proceed.
So far, I have created a new user in Active Directory, and I have added the SQL Server instance to AD.
The goal is to transparently give the user access to a specific database on the server so they don't have to enter login info when they run this app, and to make security maintenance more streamlined.
Also, here are examples of the lines of VB code I think will have to change. Can you provide guidance on this?
Call dtsExport.LoadFromSQLServer(strDTSServer, strUID, strPwd, _
DTSSQLStgFlag_Default, , , , strDTSMainPackageName)
cn.ConnectionString = "DSN=MyDatabase;UID=" & strUID & ";PWD=" & strPwd
If SQL Server is not expecting a userID and pwd, can I just leave them out of these calls?
Thanks for your help!