Re: Using OLEDB from ActiveX DLL

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On 13 Jul 2006 08:18:42 -0400, Michael Powe <michael+gnus@xxxxxxxxxxxx> wrote:

¤ 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?

Replied in microsoft.public.vb.database.


Paul
~~~~
Microsoft MVP (Visual Basic)
.



Relevant Pages

  • Re: SOLUTION: Problem connecting to sql server
    ... ¤ did to make it work the last time I had this problem. ... run under the built-in account ASPNET. ... But this yields another error:- 'Login ... how you are handling your impersonation. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Lost Cookie during Authentication
    ... ¤ Hello All, ... If the username and password are wrong, the Authentication fails as ... the Redirect does not happen and it returns to the login page. ... What could cause the authentication cookie to not get saved? ...
    (microsoft.public.dotnet.framework)
  • Re: Login Control used with existing database
    ... ¤ Hi, ... I want them to login and then ... The login control operates through a Membership Provider, which uses tables in a data store, such as ... SQL Server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: MS JET database engine error: workgroup information file is missing or opened exclusively by ano
    ... ¤ Hi, ... using Microsoft JET database engine, but it gives me an error saying ... This error only exists if i use an MS SQL login with a password but it works ... fine with a login without a password. ...
    (microsoft.public.vb.database)
  • 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)