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 > DB2 V9.1 drop column

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-09-09, 06:36
epcylla epcylla is offline
Registered User
 
Join Date: Jul 2009
Posts: 8
DB2 V9.1 drop column

Can not drop a column from a table. I do have all the relevant previlages.
Error message
Drop failed. Function not supported (Reason code = "100").. SQLCODE=-270, SQLSTATE=42997, DRIVER=3.57.86

Any idea?

Thanks
Reply With Quote
  #2 (permalink)  
Old 07-09-09, 07:29
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
SQL0270N
Function not supported (Reason code = reason-code).
Explanation:
The statement cannot be processed because it violates a restriction as indicated by the following reason code:
...
100
Drop column, and alter nullability is not allowed on any table with data capture on.
Reply With Quote
  #3 (permalink)  
Old 07-09-09, 09:19
epcylla epcylla is offline
Registered User
 
Join Date: Jul 2009
Posts: 8
Accepted solution

Figured out that was a confusion in the previlages. Unpredicted behaviour in Control Center and the IBM data studio.

In fact it is possible to drop a column containing data. Have also noticed that column names must be in upper case otherwise everything gets very messy.
Reply With Quote
  #4 (permalink)  
Old 07-09-09, 10:30
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
DB2 will automatically convert column names to upper case, unless you specified them as delimited names. So that shouldn't be a problem. And if you have wrong privileges, you'd get a different error. I agree with n_i that the error code tells you exactly what is wrong.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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