Re: Can't connect with ConnectionString (D7+ADO)
- From: Rick Osborne <NOrickoSPAM@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 12 May 2005 09:42:43 -0500
Brian Bushay said:
Services run under a different user with different permissions
> that what you log on to your computer with. If you are using a > mapped driver try switching to UNC
Yep. But right now I'm just trying to get it to work interactively. I have a C++ DLL that I am (sort of) porting this from, and I can fire it up and, using the exact same connection string, it works fine. Of course, it's not going through ADO.
Your code sets Connectionstring := _ConnString; are you sure you _connstring has a value?
Yep. While stepping through the code, I can hover my mouse over _ConnString and see that it has the right value. Then I execute the assignment and mouseover db.ConnectionString and see that it is empty. Just in case, I execute the next line (the db.Open), at which point I get the error. It's completely baffling to me. I would figure that if it didn't like my connection string it would complain about it, right? Not just be stubborn and refuse to take the assignment?
And yep, I've tried doezens of different connection strings. From the really simple ("DSN=authtest;user=admin;pwd=;") to UDL files to specifying the provider to specifying the driver. Each one works great with the C++ version of the DLL, but then I get the same error in the Delphi version. I am completely at a loss.
Is there some trick to setting up ADO in a multi-threaded situation? Does it know that I'm going through the motions for multi-threadedness and needs some sort of extra info that I'm apparently not giving it? (And why am I the only person having these problems? Is anyone else using ADO in a multi-threaded environment? In a GUI-less environment?)
-R -- Rick Osborne, NOrickoSPAM@xxxxxxxxxxxxxxxxxx .
- Follow-Ups:
- Re: Can't connect with ConnectionString (D7+ADO)
- From: Brian Bushay TeamB
- Re: Can't connect with ConnectionString (D7+ADO)
- References:
- Can't connect with ConnectionString (D7+ADO)
- From: Rick Osborne
- Re: Can't connect with ConnectionString (D7+ADO)
- From: Brian Bushay TeamB
- Can't connect with ConnectionString (D7+ADO)
- Prev by Date: Re: Relational tables with SQL
- Next by Date: Help! Field Lookup in DBGrid with two disconnected ado XML recordsets
- Previous by thread: Re: Can't connect with ConnectionString (D7+ADO)
- Next by thread: Re: Can't connect with ConnectionString (D7+ADO)
- Index(es):
Relevant Pages
|
Loading