Hello,

I have an SP, which is calling from .NET code using ODP.

In that SP i have few update table statement followed by Insert
statement and then delete statement.

When I am executing its not updating the table. means the code flows
are:

Update <statement>
Update <statement>
Update <statement>
Insert <statement>
Commit
Delete <statement>
Commit

In this scenario, update statements are not working. do i need to put
commit after every update statement.

Cheers,
Prasanta

Re: Oracle and .NET by Volker

Volker
Wed May 14 10:41:57 CDT 2008

Prasanta schrieb:
> Hello,
>
> I have an SP, which is calling from .NET code using ODP.
>
> In that SP i have few update table statement followed by Insert
> statement and then delete statement.
>
> When I am executing its not updating the table. means the code flows
> are:
>
> Update <statement>
> Update <statement>
> Update <statement>
> Insert <statement>
> Commit
> Delete <statement>
> Commit
>
> In this scenario, update statements are not working. do i need to put
> commit after every update statement.
No you don't.
How do you check this?
Are you using a connection pool and switch in the middle of the update statements?

Lots of Greetings!
Volker
--
For email replies, please substitute the obvious.