ADODB Recordset Open method crashes Calling program
- From: "Sahananda - Jon" <sahananda@xxxxxxxxxx>
- Date: 21 Jul 2005 02:28:21 -0700
Hi,
New to ADODB, Using ooREXX ole class to call it which works fine for me
with lots of other applications.
Trying to query a table from an Access 2000 database.
...
dbfile='C:\FILES\CENTRE\TEST.MDB'
query="SELECT * From People"
conn=.oleobject~new("ADODB.connection")
conn~provider="Microsoft.Jet.OLEDB.4.0"
conn~open(dbfile,conn)
rs=.oleobject~new("ADODB.Recordset")
rs~open(query,conn)
...
The connection and recordset objects seem to instantiate alright, but
when I send the open message to the recordset (rs~open("People",conn))
the ooRexx interpreter manages to resolve the arguments and send the
message, but then the interpreter crashes completely without even the
chance for it's error handling to kick in. This is something I have
never seen before (short of pulling the plug) in 22 years of using the
language.
Others in the open Object Rexx community manage to perform similar
tasks with similar code without this problem and cannot help me.
I have tried various different databases, opening tables rather than
queries, setting the connection timeout attribute to 0 (although the
crash seems to be instantaneous), but this always happens.
I know the code probably looks unfamiliar, but does anyone have any
idea why this is happening.
I am running on XP Home SP2
Here is the connection string generated:
Provider=Microsoft.Jet.OLEDB.4.0;Password="";User ID=Admin;Data
Source=C:\FILES\CENTRE\TEST.MDB;Mode=Share Deny None;Extended
Properties="";Jet OLEDB:System database="";Jet OLEDB:Registry
Path="";Jet OLEDB:Database Password="";Jet OLEDB:Engine Type=5;Jet
OLEDB:Database Locking Mode=1;Jet OLEDB:Global Partial Bulk Ops=2;Jet
OLEDB:Global Bulk Transactions=1;Jet OLEDB:New Database Password="";Jet
OLEDB:Create System Database=False;Jet OLEDB:Encrypt Database=False;Jet
OLEDB:Don't Copy Locale on Compact=False;Jet OLEDB:Compact Without
Replica Repair=False;Jet OLEDB:SFP=False
Connection object Version = 2.8
One clue might be that the connection string specifies USER ID=Admin
and there is no such account present on my machine.
many thanks for any help you can give,
Jon
.
- Follow-Ups:
- Re: ADODB Recordset Open method crashes Calling program
- From: Sahananda - Jon
- Re: ADODB Recordset Open method crashes Calling program
- Prev by Date: Re: How to Handle error if MSDE2K not running and ADO tries to connect
- Next by Date: Copying access objects using .net
- Previous by thread: How to Handle error if MSDE2K not running and ADO tries to connect
- Next by thread: Re: ADODB Recordset Open method crashes Calling program
- Index(es):
Relevant Pages
|
|