Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 14th, 2005, 08:43 PM
HereSomeHow HereSomeHow is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Guadalajara, Jalisco, México
Posts: 62 HereSomeHow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 51 m 29 sec
Reputation Power: 4
Can I start and commit transations inside a SP?

I'm trying to wrap avery lengthy Insert command inside a SP, so it reports every thousand of records inserted an event to the monitoring app. But I just read that events are posted until the transaction is committed.

So the question is, can I start and commit a transaction inside a SP? or what the heck can I do to monitor a ~5 million record insert to give the user some visual progress estimate to when the &$#$" process is gonna end?

Please help!!!

Reply With Quote
  #2  
Old February 15th, 2005, 01:33 AM
badukist badukist is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 62 badukist User rank is Corporal (100 - 500 Reputation Level)badukist User rank is Corporal (100 - 500 Reputation Level)badukist User rank is Corporal (100 - 500 Reputation Level)badukist User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 13 h 3 m 18 sec
Reputation Power: 7
Send a message via Yahoo to badukist
Quote:
Originally Posted by HereSomeHow
I'm trying to wrap avery lengthy Insert command inside a SP, so it reports every thousand of records inserted an event to the monitoring app. But I just read that events are posted until the transaction is committed.

So the question is, can I start and commit a transaction inside a SP? or what the heck can I do to monitor a ~5 million record insert to give the user some visual progress estimate to when the &$#$" process is gonna end?

Please help!!!


You can try to use an output parameter , updated as inserts go on, and use a SUSPEND inside SP to make available for calling application.

Reply With Quote
  #3  
Old February 15th, 2005, 09:03 AM
HereSomeHow HereSomeHow is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Guadalajara, Jalisco, México
Posts: 62 HereSomeHow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 51 m 29 sec
Reputation Power: 4
Quote:
Originally Posted by badukist
You can try to use an output parameter , updated as inserts go on, and use a SUSPEND inside SP to make available for calling application.


Geez... I knew it was so simple... thanks a lot!

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Can I start and commit transations inside a SP?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT