Re: Using OLEDB from ActiveX DLL
- From: "Norman Yuan" <NotReal@xxxxxxxxxxx>
- Date: Thu, 13 Jul 2006 08:04:08 -0700
You did not say how you got it connected via ODBC (DSN-less connectionString
or creating User/System DSN? But why use ODBC anyway?). It is simply a SQL
Server Login issue. Since you supply User ID and Password in the
connectionString, it means the SQL Server's Login mode should be "mixed".
Are you should the Mixed Login Mode is enabled when you installing the SQL
Server Express (by default, it is not enabled!)? What do you mean "The
password would ne my system password"? Is it your windows log in password?
If so, you got it all wrong. The User ID and Password should a SQL Server
login name and password (if you enabled SQL Server Mixed Login mode). More
study on SQL Server security might get you to right direction.
"Michael Powe" <michael+gnus@xxxxxxxxxxxx> wrote in message
news:uu05ln1el.fsf@xxxxxxxxxxxxxxx
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.
.
- References:
- Using OLEDB from ActiveX DLL
- From: Michael Powe
- Using OLEDB from ActiveX DLL
- Prev by Date: Re: Interface Question
- Next by Date: Re: How can I run over controls dynamically ?
- Previous by thread: Using OLEDB from ActiveX DLL
- Next by thread: Re: Using OLEDB from ActiveX DLL
- Index(es):
Relevant Pages
|