March 25, 2003 at 10:38 am
Does anyone know of a way to automatically select which type of user authentication SQL server 2000 will use. Ideally id like to put this into the GUI front end of an application, is there a system stored procedure that can do this ?
TIA Mark Wheeler.
March 25, 2003 at 11:06 am
If you change the authenticacion mode of SQL, you must restart SQL Server to take effect. You can do it with the xp xp_instance_regwrite. But it changes the registry so I wouldn't use it.
But if you want to put in your app. the posibility to login with a Windows Login account or with a SQL Server user, then you must change the connection string in your application.
March 25, 2003 at 11:12 am
Technically, though, even when going through EM it changes the registry key.
K. Brian Kelley
http://www.truthsolutions.com/
Author: Start to Finish Guide to SQL Server Performance Monitoring
http://www.netimpress.com/shop/product.asp?ProductID=NI-SQL1
K. Brian Kelley
@kbriankelley
March 25, 2003 at 12:20 pm
Agree but for example when you change the login account of the SQL Server or Agent service with EM is not the same than doing it from the Control Panel.
EM also changes some security things in the registry.
March 27, 2003 at 8:15 am
I may be misunderstanding what you need, but you can select the type of connection for the user/client based on the connection string. If you pass a uid and password, then SQL Server authentication will be used, but if you only pass "trusted_connection=yes", then the client application will use NT authentication.
-Dan
-Dan
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply