Quantcast
Channel: SCN : Discussion List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 685

How to create a composite index?

$
0
0

Most of time, I have no problem to create composite index.

 

Try to create a composite index on a table and got following error message:

 

Number (1903) Severity (16) State (1) Server (Myserver) 600 is the maximum allowable size of an index.  Composite index specified is 602 bytes.

 

It is because one column with 600 length(univarchar(600).

 

I have query with condition like:

 

where col1 =1 and col2 like 'abc%'

 

col2 is univarchar(600). I try to create index(col1+col2). Without proper index, query has bad performance.

 

How to resolve this problem?


Viewing all articles
Browse latest Browse all 685

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>