Transactions using VB 3.0/ODBC Q+E/Sql*NET TCP-IP/Oracle 7 
Author Message
 Transactions using VB 3.0/ODBC Q+E/Sql*NET TCP-IP/Oracle 7

Hello...

I've the problem to use a transaction structure in Visual Basic using
EXECUTESQL command. In other words I'm trying to do (in the environment in
object) something like this:

Begin transaction;

UPDATE EMP SET enumber TO 1234 WHERE ename = 'Smith';
UPDATE EMP SET enumber TO 4321 WHERE ename = 'Joe';

Commit;

...I want too much ? ...thanks in advance !



Sat, 27 Sep 1997 03:00:00 GMT  
 Transactions using VB 3.0/ODBC Q+E/Sql*NET TCP-IP/Oracle 7
Alessio LORUSSO wrote on 11 Apr 1995 21:02:39 GMT:
:> Begin transaction;

:> UPDATE EMP SET enumber TO 1234 WHERE ename = 'Smith';
:> UPDATE EMP SET enumber TO 4321 WHERE ename = 'Joe';

:> Commit;

if you wanna use begintrans and committrans in VB, do a .Execute rather
then .ExecuteSQL. I discover VB's begintrans/committrans/rollback don
work with .ExecuteSQL

--
===========================================================================

+ National University of Singapore      Faculty of Engineering (EE Dept)  +
===========================================================================



Wed, 01 Oct 1997 03:00:00 GMT  
 Transactions using VB 3.0/ODBC Q+E/Sql*NET TCP-IP/Oracle 7

Quote:

>if you wanna use begintrans and committrans in VB, do a .Execute rather
>then .ExecuteSQL. I discover VB's begintrans/committrans/rollback don
>work with .ExecuteSQL

It is logical. .ExecuteSQL sends passthrough SQL statement to an
independent server. Maybe you can use somehow stored procedures to
implement begintrans and so on?
Andrzej


Wed, 08 Oct 1997 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. [ODBC SQL Server Driver][TCP/IP Sockets]General network error

2. Using ODBC to connect over TCP/IP

3. using TCP/IP with VB5 / SQL Server

4. Saving Rich Text Format (RTF) in Oracle 10g using PL/SQL via VB/ASP.NET

5. VB.NET TCP/IP Communication

6. TCP/IP release renew in VB.net or C#

7. TCP/IP Client and Server in VB .net example

8. Oracle 7, ODBC, SQL*Net, VB4 and WANs

9. Oracle 7, ODBC, SQL*Net, VB4 and WANs

10. 32-bit ODBC driver for Oracle via SQL*Net on Windows 95

11. GPF : VB 3.0 / MS-Jet 2.5 / ODBC 2.11 / Oracle 7.1

12. VB 3.0 ODBC Oracle 7.1.x connectivity

 

 
Powered by phpBB® Forum Software