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 > SQL Function Error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-01-06, 00:37
Pravas Pravas is offline
Registered User
 
Join Date: Jun 2005
Posts: 16
SQL Function Error

Hi All,

I am getting the beow error when i try to execute this query

db2 "select UPPER(REL_ALIAS) from sample.emp"

SQL0440N No authorized routine named "UPPER" of type "FUNCTION" having
compatible arguments was found. SQLSTATE=42884

As the same query was runnig fine till yesterday.
Your help will be appreciated.

Thanks in Advance,
Pravas
Reply With Quote
  #2 (permalink)  
Old 09-01-06, 01:19
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
It is UCASE not UPPER.

Andy
Reply With Quote
  #3 (permalink)  
Old 09-01-06, 01:36
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
According to the SQL Reference, either UCASE or UPPER should work.

They both work on my 8.2 for Windows 32 bit FP11 .
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #4 (permalink)  
Old 09-01-06, 01:43
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You are right, UPPER is valid. What data type is REL_ALIAS?

Andy
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