Using OLEDB from ActiveX DLL

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello,

I have written an ActiveX DLL that does lookups in a SQL Server
Express 2005 via ODBC. This works fine but is horribly slow. I would
like to test the possible speed improvement with an OLEDB connection,
but can't make it work. All I get for an error is "Login failed for
user 'powem' [CLIENT: <named pipe>]" in the Event log. That user is
my local Windows login. I've also tried with a database user that I
created, I get the same result & message. These users work with
ODBC.

I'm testing on a WinXP Pro machine, using VB 6 to write the DLL.

The connection string for OLEDB:

"Provider=sqloledb;Data Source=pdxpowem01\SQLEXPRESS;
Initial Catalog=mycatalog;User Id=powem;Password=mypassword"

Of course, in the code that is all one line. The password would be my
system password.

What am I missing about making the OLEDB connection, that is causing
the login to fail?

Thanks.

mp

--
'cat' is not recognized as an internal or external command,
operable program or batch file.
.



Relevant Pages

  • OLEDB connection from ActiveX DLL
    ... I have written an ActiveX DLL that does lookups in a SQL Server ... Express 2005 via ODBC. ... my local Windows login. ... What am I missing about making the OLEDB connection, ...
    (microsoft.public.vb.database)
  • Re: Using OLEDB from ActiveX DLL
    ... ¤ I have written an ActiveX DLL that does lookups in a SQL Server ... ¤ Express 2005 via ODBC. ... ¤ my local Windows login. ...
    (microsoft.public.vb.general.discussion)
  • ODBC error when connecting to SQL 7.0 from Access database
    ... I restored a SQL database to a new server and changed ODBC connection on the ... the login window apear again and won't accept ... any linked tables in the Access database, just not certain forms, why? ...
    (microsoft.public.sqlserver.odbc)
  • Access to VB ActiveX DLL PROPERTIES
    ... I've written a VB ActiveX DLL with public classes. ... The class base has a property-class login ... Public Property Get LogIn() As Base.Login ...
    (comp.lang.cpp)
  • Access to VB ActiveX DLL PROPERTIES
    ... I've written a VB ActiveX DLL with public classes. ... The class base has a property-class login ... Public Property Get LogIn() As Base.Login ...
    (comp.lang.cpp)