You might need to use #preserveSingleQuotes(form.txtFormField1)#

��� Tony

-----Original Message-----
From: CF Dude [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 10:21 AM
To: CF-Talk
Subject: Re: SQL concat

That should work assuming your datatypes work together.

HEre's another example

'The price is ' + CAST(price AS varchar(12))

You may need to break out CONVERT() instead of CAST()

E

----- Original Message ----- 
From: "Cantrell, Adam" <[EMAIL PROTECTED]>


What's the operator for string concatenation in SQL server - I'm trying:

SET txtColumnName1 = txtColumnName1 + '#form.txtFormField1#'

And that's throwing me an "Invalid operator for data type" error.

Anyone help me out right quick? Adam.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
                                

Reply via email to