Hi All:
Platform: VC++ .NET, SQL Server 2000, win2k
I'm developing an application to connect to some database and depending
of user choice connect to the server
using either windows authentication or SQL Server authentication.
How to do that using connection strings??
I have read at MSDN: that using the OLE DB property DBPROPSET_DBINIT
(Integrated Security) to the value of "SSPI" I can connect using windows
security, if pass NULL in this property then the default authentication
service is used.
The question is avoiding the use of that property in my connection string
is equivalent to pass a null pointer in it???
My results are awesome because. I'm not using the property and providing
a user name and password too to connect to SQL Server and if the current
NT User is not registered as SQL Server user I get an error and the login
could not be performed
Any suggestion???
Thanks in advance
==========================================
Lic. Yosvel Reyes Fonfria
[EMAIL PROTECTED]
tel: (053)42 205428
Who try and try again, triumph!!!
==========================================
--
http://www.fastmail.fm - Choose from over 50 domains or use your own
