Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB SQL » View Thread |
Messages 1 to 5 of 5 total |
BLOB COMPRESSION in ALTER TABLE |
Wed, Oct 30 2013 5:04 AM | Permanent Link |
Surjanto Kwe PT. Usahajaya Ficooprasional | Hi,
Lets say I already done ada Create Table like this CREATE TABLE test (abc BLOB); how do I alter the compression to 6 in SQL ? Tried ALTER TABLE test ALTER COLUMN abc AS BLOB COMPRESSION 6; But it's not working. Regards, Surjanto |
Sat, Nov 2 2013 11:11 PM | Permanent Link |
Barry | Surjanto Kwe,
Your SQL statement appears to be correct. When you say it is not working, did you get an error message? Or did the compression stay the same? TIP: If you want the SQL statement to alter a column for MyTable, open EDBMgr and open an SQL window and execute something like: select * from MyTable Now with this window open, right click on the table name in EDBMgr tree and select "Alter Table". Now modify the column (or any other part of the table) to change the compression level, and press "Alter Column" link to save the changes. Now press the Ok button. EDBMgr will try to implement the change to the table, but because your SQL window has the table open (locked), it will complain "Cannot lock table ..." "Would you like to copy the SQL to a new SQL Editor Window...?". Answer Yes and your SQL appears in the new window. You can copy and paste this SQL statement to your program. (Remember to Unprepare or close the tab that has the "Select * from MyTable" otherwise your program will not be able to execute the DDL statement either.) Barry |
Sun, Nov 3 2013 3:30 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Barry
Or you can simply carry out the action and then get the sql from Explorer | SQL History Roy Lambert Barry wrote on Sat, 2 Nov 2013 23:11:12 -0400 >Surjanto Kwe, > >Your SQL statement appears to be correct. >When you say it is not working, did you get an error message? Or did the compression stay the same? > >TIP: >If you want the SQL statement to alter a column for MyTable, open EDBMgr and open an SQL window and execute something like: select * from MyTable > >Now with this window open, right click on the table name in EDBMgr tree and select "Alter Table". Now modify the column (or any other part of the table) to change the compression level, and press "Alter Column" link to save the changes. Now press the Ok button. EDBMgr will try to implement the change to the table, but because your SQL window has the table open (locked), it will complain "Cannot lock table ..." "Would you like to copy the SQL to a new SQL Editor Window...?". Answer Yes and your SQL appears in the new window. You can copy and paste this SQL statement to your program. > >(Remember to Unprepare or close the tab that has the "Select * from MyTable" otherwise your program will not be able to execute the DDL statement either.) > >Barry > |
Tue, Nov 5 2013 3:33 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Surjanto,
<< how do I alter the compression to 6 in SQL ? >> That's the correct statement. Are you seeing an error message ? Tim Young Elevate Software www.elevatesoft.com |
Thu, Nov 7 2013 4:04 AM | Permanent Link |
Surjanto Kwe PT. Usahajaya Ficooprasional | Sorry Tim,
Consider this as false alarm, don't know exactly what happened, it works just fine now. Regards, Surjanto |
This web page was last updated on Sunday, May 5, 2024 at 10:18 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |