Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 11:39 AM
Bernard Dhooghe
Guest
 
Posts: n/a
Default DB2 UDB ULW: Replacing an SQL procedure language based function used in object definitions?

When a Function returning a scalar is written in C, it is easy to
change the code, by just creating a new loadable object.

When the code is written in SQL procedure language, how to replace the
code when there are dependencies? The restrict is default in drop
function, there is no no-restrict capability.

Remark: was already posten in the newsgroups, concerning dependencies
on triggers. Suggestion was to drop and recreate the triggers. What if
the dependency impacts ... tables?

Bernard Dhooghe

  #2  
Old November 12th, 2005, 11:39 AM
Serge Rielau
Guest
 
Posts: n/a
Default Re: DB2 UDB ULW: Replacing an SQL procedure language based functionused in object definitions?

Bernard Dhooghe wrote:[color=blue]
> When a Function returning a scalar is written in C, it is easy to
> change the code, by just creating a new loadable object.
>
> When the code is written in SQL procedure language, how to replace the
> code when there are dependencies? The restrict is default in drop
> function, there is no no-restrict capability.
>
> Remark: was already posten in the newsgroups, concerning dependencies
> on triggers. Suggestion was to drop and recreate the triggers. What if
> the dependency impacts ... tables?
>
> Bernard Dhooghe
>[/color]
You will need to unravel the dependencies and recreate the objcets
afterwards.
There is a function DB2LK_DEP_OF() which you can use to get the
dependencies sorted out.

Long term expect DB2 to introduce "invalid" states for all objects which
can be revalidated on first use.

Cheers
Serge

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
  #3  
Old November 12th, 2005, 11:39 AM
Bernard Dhooghe
Guest
 
Posts: n/a
Default Re: DB2 UDB ULW: Replacing an SQL procedure language based function used in object definitions?

Thank you Serge.

I'll put it on my long-term-hope pile.

Bernard Dhooghe

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,174 network members.