> Gotta say thats a first and I have been doing mssql for ten years. I am > telling you this is what is causing his error because tsql is not as flexible > as you think because its procedural and requires you do it in a certain way.
This is incorrect. Literal values can be placed on either side of the comparison operator in T-SQL. In older versions of MS SQL Server, it was recommended to put the field first in the expression because the query analyzer would use indexes, but I suspect that's no longer true. In any case, you could do it even in old versions of SQL Server - 6.5, for example. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341425 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

