"cfsqltype and nvarchar in sql server 2008"

I am using coldfusion and sql server 2008.

1) Cfprocparam we have cf_sql_varchar but nothing for nvarchar I have a lot of paramater to datatype nvarchar which cf_sql datatype should I use

2) do I use cf_sql_long_varchar for varchar (max)
sohairzaki2005Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gurpreet Singh RandhawaCEOCommented:
for ur nvarchar you can use the

cf_sql_longvarchar or you can use <cfqueryparam name="something" cfsqltype="cf_sql_clob" maxlength="2147483647">

or

<cfqueryparam name="something" cfsqltype="cf_sql_longvarchar">

0
sohairzaki2005Author Commented:
That means it will automatically recognize the unicode characters
0
OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.

Gurpreet Singh RandhawaCEOCommented:
yes it will it automatically handles the data..
the link i gave you have explanation t!
0
_agx_Commented:
1) Cfprocparam we have cf_sql_varchar but  nothing for nvarchar I have a lot of paramater to datatype nvarchar  which cf_sql datatype should I use
Right. CF does not currently have an nvarchar type.  Use cf_sql_varchar. But be sure to enable the unicode setting in your DSN
http://www.sustainablegis.com/blog/cfg11n/index.cfm?mode=entry&entry=F9553D86-20ED-7DEE-2A913AFD8651643F

2) do I use  cf_sql_long_varchar for varchar (max)
Yes.  It the replacement the deprecated long "text" type.
http://msdn.microsoft.com/en-us/library/ms378715.aspx 
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_p-q_18.html 
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sohairzaki2005Author Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ColdFusion Language

From novice to tech pro — start learning today.