<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Why don't you use the -f flag to set the sourceid: E.g. -f 3,3 creates the sql for sourceid = 3 (-f n,m where n=format and m=sourceid)<br><br></td></tr></table>