![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Why is my alter table command succesful on INcreasing the datatype length, but not on DEcreasing the datatype length? Currently: Dummy = VARCHAR(10) ALTER TABLE MyTable ALTER COLUMN Dummy SET DATA TYPE VARCHAR(100) The SQL command completed successfully. ALTER TABLE MyTable ALTER COLUMN Dummy SET DATA TYPE VARCHAR(200) The SQL command completed successfully. ALTER TABLE MyTable ALTER COLUMN Dummy SET DATA TYPE VARCHAR(199) Error: [IBM][iSeries Access ODBC Driver]Operation cancelled. -- Twan |
#3
| |||
| |||
|
|
"Twan" <no-re... (AT) skb (DOT) nl> wrote in message news:4cb5e83d$0$41114$e4fe514c (AT) news (DOT) xs4all.nl... Why is my alter table command succesful on INcreasing the datatype length, but not on DEcreasing the datatype length? Currently: Dummy = VARCHAR(10) ALTER TABLE MyTable ALTER COLUMN Dummy SET DATA TYPE VARCHAR(100) The SQL command completed successfully. ALTER TABLE MyTable ALTER COLUMN Dummy SET DATA TYPE VARCHAR(200) The SQL command completed successfully. ALTER TABLE MyTable ALTER COLUMN Dummy SET DATA TYPE VARCHAR(199) Error: [IBM][iSeries Access ODBC Driver]Operation cancelled. -- Twan Don't ask us. Why are you using DB2 iSeries instead of a real database? |
#4
| |||
| |||
|
|
"Twan" <no-reply (AT) skb (DOT) nl> wrote in message news:4cb5e83d$0$41114$e4fe514c (AT) news (DOT) xs4all.nl... Why is my alter table command succesful on INcreasing the datatype length, but not on DEcreasing the datatype length? Currently: Dummy = VARCHAR(10) ALTER TABLE MyTable ALTER COLUMN Dummy SET DATA TYPE VARCHAR(100) The SQL command completed successfully. ALTER TABLE MyTable ALTER COLUMN Dummy SET DATA TYPE VARCHAR(200) The SQL command completed successfully. ALTER TABLE MyTable ALTER COLUMN Dummy SET DATA TYPE VARCHAR(199) Error: [IBM][iSeries Access ODBC Driver]Operation cancelled. -- Twan Don't ask us. Why are you using DB2 iSeries instead of a real database? |
#5
| |||
| |||
|
|
Oh, sorry I bothered you! :-? I didn't know you are representing all members of this newsgroup. By the way.... if someone else is dealing with the same problem, just for the record: such changes (decreasing the data type of a column) should be done with SYSPROC.ALTOBJ encapsulation. see: http://publib.boulder.ibm.com/infoce...n/r0011934.htm Twan |
#6
| |||
| |||
|
|
Why is my alter table command succesful on INcreasing the datatype length, but not on DEcreasing the datatype length? Currently: Dummy = VARCHAR(10) ALTER TABLE MyTable ALTER COLUMN Dummy SET DATA TYPE VARCHAR(100) The SQL command completed successfully. ALTER TABLE MyTable ALTER COLUMN Dummy SET DATA TYPE VARCHAR(200) The SQL command completed successfully. ALTER TABLE MyTable ALTER COLUMN Dummy SET DATA TYPE VARCHAR(199) Error: [IBM][iSeries Access ODBC Driver]Operation cancelled. |
![]() |
| Thread Tools | |
| Display Modes | |
| |