Solid ODBC Connection thru XML Web Service

S

sergio montero

I'm testing a SOLID connection using the ODBC .Net Provider, from a
Windows Application i put two buttons, Local and Web Service.
In local i put this code:

Dim sCNX As String "dsn=WebODBC;uid=xxxx;pwd=xxxx;"
Dim oC As New OdbcConnection(sCNX)
oC.Open()
oC.Close()

This code executes without problems, from the Web Service button i
create a proxy pointing to a XML WS with only one method, the code is:

Dim sCNX As String = "dsn=tcp localhost 1313;uid=xxxx;pwd=xxxx;"
Dim oC As New OdbcConnection(sCNX)
oC.Open()
oC.Close()

But the open method generates the next error:

Microsoft.Data.Odbc.OdbcException: ERROR [IM002] Couldn't find data
source name or driver not specified.

Please, if somebody can, helpme.

T.I.A.


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top