Re: SQLEXEC(liHandle, "BEGIN TRANSACTION") makes my apps hang.
From: Remus Rusanu (remusronline_at_no.spam)
Date: 09/02/04
- Next message: Rick Bean: "Re: Table Type"
- Previous message: Lee Mitchell: "RE: VFP 8.0 fails to install on W2K Adv Server SP4..."
- In reply to: Willianto: "SQLEXEC(liHandle, "BEGIN TRANSACTION") makes my apps hang."
- Next in thread: man-wai chang: "Re: SQLEXEC(liHandle, "BEGIN TRANSACTION") makes my apps hang."
- Reply: man-wai chang: "Re: SQLEXEC(liHandle, "BEGIN TRANSACTION") makes my apps hang."
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 2 Sep 2004 11:50:26 -0700
BEGIN TRANSACTION should never block.
You can use Query Analyzer to look up why is your statement blocking. sp_who
should tell you if the app connection is blocked behind some other
transaction.
HTH,
~ Remus
"Willianto" <willianto@remove-me.telkom-and-me.net> wrote in message
news:ORS9SGRkEHA.3072@TK2MSFTNGP10.phx.gbl...
> Hi all,
>
> I was in my client today. My apps had this problem that after the user
> delete any payment transaction, the apps would go hang. The apps is
> using SQL Server as the backend database, so it was quite confusing. I
> tried to trace the SQL Server, but the log entry is like French to me.
> Anyway, to make the story short (about two hours shorter), I found out
> that the cause was I implicitly put SQLEXEC(liHandle, "BEGIN
> TRANSACTION") before all the deletion began. OTOH, on the form's init, I
> already give SQLSETPROP(liHandle, "Transactions", 2). This command would
> set the connection such that it will require SQLCOMMIT( ) or
> SQLROLLBACK( ) to handle the transaction. I deleted the BEGIN
> TRANSACTION command, and everything back to normal.
>
> Anybody care to give an insight-behind-the-scene story?
>
> TIA,
> Willianto
>
>
- Next message: Rick Bean: "Re: Table Type"
- Previous message: Lee Mitchell: "RE: VFP 8.0 fails to install on W2K Adv Server SP4..."
- In reply to: Willianto: "SQLEXEC(liHandle, "BEGIN TRANSACTION") makes my apps hang."
- Next in thread: man-wai chang: "Re: SQLEXEC(liHandle, "BEGIN TRANSACTION") makes my apps hang."
- Reply: man-wai chang: "Re: SQLEXEC(liHandle, "BEGIN TRANSACTION") makes my apps hang."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|