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 > Problems with object de-allocation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-23-09, 13:14
snufse snufse is offline
Registered User
 
Join Date: Jul 2003
Location: West Palm Beach FL
Posts: 5
Lightbulb Problems with object de-allocation

I have a script that I'm running from SQL server and that basically reads a file member on the iSeries and insert records into a sql table. (I am doing the ALIAS instead of OVRDBF to point to the file member)


exec('CREATE ALIAS ....') at AS400SRV_MSDASQL
exec ('Call QGPL.sp_alcobj1...') AT AS400SRV_MSDASQL
main process here ... insert into .... select from ....
exec ('Call QGPL.sp_dlcobj1....') at AS400SRV_MSDASQL
exec('DROP ALIAS.....') at AS400SRV_MSDASQL

My problem is that I am not able to de-allocate the object. It seems like the alocate and de-allocate work on different call levels. Does anyone have expereince with this? Thank you.

Last edited by snufse; 02-23-09 at 15:23.
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