Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

As400 DbExpress Connection

Status
Not open for further replies.

keenanbr

Programmer
Oct 3, 2001
469
IE
I'm trying to use DBExpress to connect to AS400. I have added the following to 'dbxdrivers.ini'
Code:
[CA400]
GetDriverFunc=getSQLDriverCA400
LibraryName=dbexpca400.dll
VendorLib=cwbdb.dll
Database=10.70.65.68
User_Name=
Password=
ServerCharSet=
ErrorResourceFile=
LocaleCode=0000
BlobSize=-1
RowsetSize=-1
RoleName=
CA400 TransIsolation=DirtyRead
CommitRetain=True
AutoCommit=True
Custom String=/trace=0
Connection Timeout=-1
Trim Char=False

[CA400 TransIsolation]
DirtyRead=0
ReadCommited=1
RepeatableRead=2

When I add a new connection in 'Data Explored' and 'Test Connection' I get

Borland.Data.TDBXError: cwbDB_SetAutoCommit returned error code 1.

I can connect using Client Access and by using a .udl.

Any help appreciated


 
try with flag AutoCommit=false

/Daddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top