"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)
Who is Participating?

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

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


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

sohairzaki2005Author Commented:
That means it will automatically recognize the unicode characters
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!
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

2) do I use  cf_sql_long_varchar for varchar (max)
Yes.  It the replacement the deprecated long "text" type.

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:
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.