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 > Sybase > Sybase IQ query size - 2 questions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-17-08, 09:50
justin c justin c is offline
Registered User
 
Join Date: Apr 2008
Location: Brussels
Posts: 2
Sybase IQ query size - 2 questions

Hi,

I understand that in IQ (using version 12.7) the maximum length of a SQL query is limited to the catalog page size (default is 4096 bytes).

We have a table, not yet used in production, where, due the number of columns and length of column names a simple SELECT * breaks this limit. This causes the database server to crash.

1) Is this normal for the server to crash in this situation and can anything be done to allow the database server to handle the error more gracefully?

2) short of renaming column names or increasing the catalog page size is there a workaround to allow the entire table to be queried?
Reply With Quote
  #2 (permalink)  
Old 04-23-08, 05:25
justin c justin c is offline
Registered User
 
Join Date: Apr 2008
Location: Brussels
Posts: 2
Exclamation some extra information...

...to add to my additional post as I'm not sure it was clear.

The reason the SELECT * from Table_Name translates to a very long string is due to Sybase IQ resolving the query to its FULL text value,

eg : select * from table_name becomes

select [table_owner].[table_name].[column_name], [table_owner].[table_name].[column_name], [table_owner].[table_name].[column_name],....from [table_owner].[table_name]

if we could overcome this our problem would be solved.

Any suggestions would be greatly
appreciated

http://www.dbforums.com/db_images_v3...ilies/beer.gif

Last edited by justin c; 04-23-08 at 05:33.
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