Yuck . . .First, with SQL 2K you can query Index Server directly. Don't know much about it, but maybe you should look into it for you solution.Two (bad) options come to mind on this.select 1 as ordercol, *from pdfinfowhere filename = 'file1.pdf'unionselect 2 as ordercol, *from pdfinfowhere filename = 'file1.pdf'union...unionselect N as ordercol, *from pdfinfowhere filename = 'fileN.pdf'order by ordercol
orselect case filename when 'file1.pdf' then 1 when 'file2.pdf' then 2 ... when 'fileN.pdf' then N end as ordercol, *from pdfinfowhere filename in ('file1.pdf','file2.pdf'...'fileN.pdf')Both are lame...Jay