Remote connection failed
- From: "Kris" <kfraley@xxxxxxxxxxxx>
- Date: Mon, 5 Dec 2005 14:23:04 -0500
I am getting the following error ...
Connection failed:
SQLState: '28000'
SQL Server Error: 18452
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user
'myUserName'. Reason: Not associated with a trusted SQL Server connection.
Upon examination of the SQL Server Log, I see the exact same message.
The connection string being used is ...
"Driver={SQL Server}; Server=xxx.xxx.xxx.xxx; Address=xxx.xxx.xxx.xxx,1433;
Network=DBMSSOCN; Database=myDatabase"
SQL Server Properties - Security tab has the following settings ...
Authentication: Windows only
Audit level: All
Allow cross-database ownership chaining: not checked
When SQLDriverConnect is called, an SQL Server Login dialog comes up
allowing me to Use Trusted Connection or provide Login ID and Password. If
Use Trusted Connection is checked, then same error as above is returned
except myUserName is replaced by "(null)". If not checked, then the login
has failed with all username/password combinations I know of on my server.
Referencing an earlier posting dated 10/31/2005 entitled "Error connecting
through the web", Sue Hoegemeier wrote, "Use Integrated Security=SSPI with
an OLE DB provider in your connection string instead of supplying a username
and password." Sue, what does this part of the connection string "look"
like? Can you give me an example? Also, how can the Reason given in the
error message be remedied?
Any help would be greatly appreciated. Thanks.
.
- Follow-Ups:
- Re: Remote connection failed
- From: Sue Hoegemeier
- Re: Remote connection failed
- Prev by Date: Re: How to connect a workstation to SQL Server 2005 thru ODBC?
- Next by Date: Re: Remote connection failed
- Previous by thread: Re: How to connect a workstation to SQL Server 2005 thru ODBC?
- Next by thread: Re: Remote connection failed
- Index(es):
Relevant Pages
|