$ 0 0 Have you tried this out : http://dynamicsgpblogster.blogspot.ca/2009/01/following-sql-statement-produced-error.html