Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Express Edition and Compact Edition (2005)
 SQL Authentication failing in SQLDriverConnect

Author  Topic 

CTDeveloper
Starting Member

1 Post

Posted - 2009-03-02 : 16:36:42
I am using SQLDriverConnect from a C/C++ program with this connection string:

"driver=SQL 
Server;Server=.\myserver;Id=myname;password=mypswd;Trusted_Connection=False"


Even though "myname" is not a valid login, it successfully connects! The resulting OutConnectionString is:

"DRIVER=SQL
Server;SERVER=.\myserver;UID=SYSTEM;WSID=machinename;Trusted_Connection=Yes"


Is Trusted_Connection=False still supported in SQL 2005?

How do I get this to fail if the login doesn't exist?
   

- Advertisement -