You need to have it say "insert into" not just "insert"
-----Original Message----- From: Bushy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 2:08 PM To: CF-Talk Subject: re: <cfquery> not working after migrating from MySQL to MS SQL What's wrong with this. It's giving me a syntax error. SYntax error near the keyword 'SET'. <cfquery name="update_alias" DATASOURCE="database"> INSERT database SET env_var=<cfqueryparam value="#ListGetAt(Line,1,'|')#" cfsqltype="CF_SQL_LONGVARCHAR">, destination=<cfqueryparam value="#ListGetAt(Line,2,'|')#" cfsqltype="CF_SQL_LONGVARCHAR"> </cfquery> This worked fine under mySQL ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

