Re: webservice - dsn - sql server by William
William
Fri Nov 17 11:00:28 CST 2006
Why are you using ODBC to connect to SQL Server. You should be using
SqlClient.
You say you're using SQL Server authentication. Let's see the ConnectString
(less your username and password). Are you sure the server is configured for
mixed mode security--it's not by default.
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
-----------------------------------------------------------------------------------------------------------------------
"TheMaxx" <themaxxREMOVE@net.hr> wrote in message
news:ejk1mu$tiu$1@magcargo.vodatel.hr...
> I've created ODBC DSN for sql server.
> When i connect from win application works OK.
> When i make WebService (on same machine) that connects to that ODBC
> connection fails:
>
> Error:
> Server was unable to process request. --> ERROR [28000] [Microsoft][ODBC
> SQL Server Driver][SQL Server]Login failed for user '(null)'. Reason: Not
> associated with a trusted SQL Server connection.
> ERROR [28000] [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed
> for user '(null)'. Reason: Not associated with a trusted SQL Server
> connection.
>
>
> ODBC is configured to use SQL Server authentication (login id and passwd)
>