Hi,
My application needs to calculate the sort order of an index key
(whether the index key is descending or ascending). The user may
connect to MS7 or MS2K servers.
As far as I know, the descending indices are supported in version 8
i.e SQL 2000. In MS2K, I can get the index key information by SELECT
INDEXKEY_PROPERTY(table_ID , index_ID , key_ID , IsDescending) which
returns 1 if key is descending. But as this is only for MS2K, it will
fail and report error for above query in case connected to SQL server
7.
Now, in the application we avoided using server version dependent
code. So, can you please suggest me other way to do the same so that
the query should not produce an error if connected to MS7 server but
should work for MS-2000 server.
Regards,
Uday