|
-
Feb 26th, 2001, 07:09 AM
#1
Thread Starter
Member
Hello!
I'm connecting to Oracle 7.3.4 database from my ASP using ODBC (Microsoft ODBC for Oracle).
There are also several calls to pl/sql proderures from ASP.
My problem is, that after every succesfull pl/sql procedure call changes are commited into database, even if I don't have COMMIT statement in my pl/sql procedure.
I thing that this is done by ODBC.
Does anyone know how to prevent ODBC NOT TO force the commit.
I need this answer very fast .
Thank you,
Tomaz
Instance:
dim db
set db=session("db")
dim comm
Set comm=Server.CreateObject("ADODB.Command")
Set comm.ActiveConnection = db
comm.CommandText = "BEGIN DECLARE p1 VARCHAR2(255); BEGIN p1:=my_procedure('1',526); END; END;"
comm.execute
-
Feb 27th, 2001, 04:41 PM
#2
I normally work on SQLServer but maybe on Oracle you can also start a procedure and at the end Commit it. Would that be an option on an oracle database?
-
Feb 28th, 2001, 11:09 AM
#3
Thread Starter
Member
You can write commit statement in the stored procedure.
But even if I don't call a commit statement in the stored procedure, it is commited when I execute it from ASP.
How can I prevent this procedure from implicit commit.
Best regards,
Tomaz
-
Feb 28th, 2001, 11:24 AM
#4
Addicted Member
Havent dealt with oracle that much but from what i have seen on the few project i have worked with it always commits wether it runs through odbc or not. The only time you have to commit is when you are in the db itself.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|