If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > savepoint in shell script

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-13-05, 10:17
kumar_r kumar_r is offline
Registered User
 
Join Date: Apr 2005
Posts: 6
savepoint in shell script

How can I use savepoint and rollback to savepoint in unix shell script?


Thanks,
Kumar
Reply With Quote
  #2 (permalink)  
Old 10-13-05, 17:20
kumar_r kumar_r is offline
Registered User
 
Join Date: Apr 2005
Posts: 6
Can anybody tell me how can I user savepoint and rollback to savepoint in unix shell script.

thanks
Reply With Quote
  #3 (permalink)  
Old 10-14-05, 07:45
gardenman gardenman is offline
Registered User
 
Join Date: Apr 2004
Posts: 54
Quote:
Originally Posted by kumar_r
Can anybody tell me how can I user savepoint and rollback to savepoint in unix shell script.

thanks
[QUOTE]
#/bin/bash
db2 -c- connect to <yuordatabase> user <yourlogin> using <password>
db2 -c- savepoint point1 on rollback retain cursors
db2 -c- create table x (id int)
db2 -c- rollback to savepoint point1
[QUOTE]
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On