|
|
|
|
|
|
| Author |
Message |
michael@geo-da.co.il *nix forums beginner
Joined: 23 Feb 2006
Posts: 2
|
Posted: Thu Mar 09, 2006 4:23 pm Post subject:
Best way to insert rows from VB to RDB?
|
|
|
Hello!
I need to insert rows to RDB table with VB6 program. What is the best
way to do it?
I wrote a VB6 program which inserts rows into RDB table. I use ADO over
Oracle ODBC for RDB. I manage transactions using
ADODB.Connection.BeginTransaction and
ADODB.Connection.CommitTransaction. The rows are inserted by composing
SQL INSERT statement and then calling ADODB.Connection.Execute.with
SQL. It looks like:
ADODB.Connection.BeginTransaction
SQLString = "insert into table values()"
ADODB.Connection.Execute SQLString
ADODB.Connection.CommitTransaction
There is for sure only one instance of VB program which runs.
The RDB table becomes locked. I tried to play with transaction
IsolationLevel of ADO - no results.
The most sad thing is that it worked for 3 days and started to fail
afterward.
What is the problem?
TIA
MIchael |
|
| Back to top |
|
 |
Tom D *nix forums Guru
Joined: 28 Feb 2005
Posts: 377
|
Posted: Sun Mar 12, 2006 3:43 am Post subject:
Re: Best way to insert rows from VB to RDB?
|
|
|
Michael G. wrote:
| Quote: | Hello!
I need to insert rows to RDB table with VB6 program. What is the best
way to do it?
I wrote a VB6 program which inserts rows into RDB table. I use ADO over
Oracle ODBC for RDB. I manage transactions using
ADODB.Connection.BeginTransaction and
ADODB.Connection.CommitTransaction. The rows are inserted by composing
SQL INSERT statement and then calling ADODB.Connection.Execute.with
SQL. It looks like:
ADODB.Connection.BeginTransaction
SQLString = "insert into table values()"
ADODB.Connection.Execute SQLString
ADODB.Connection.CommitTransaction
There is for sure only one instance of VB program which runs.
The RDB table becomes locked. I tried to play with transaction
IsolationLevel of ADO - no results.
The most sad thing is that it worked for 3 days and started to fail
afterward.
What is the problem?
TIA
MIchael
|
are you blocking yourself?
$rmu/sh lock/mode=block
does it have multiple connections? |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Wed Dec 03, 2008 1:45 am | All times are GMT
|
|
Credit Cards UK | Loans | Xbox Mod Chips | Online Dating | Loans
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|