Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

varchar(MAX) settings

Status
Not open for further replies.

NickyJay

Programmer
Sep 1, 2003
217
GB
Hiya all, dont know if this is the right forum for this question, but hope someone can help!!

I have a page that connects to my SQL Server (2005) db. One field in a table is currently set to varchar(MAX) as it is intended to hold a lot of text.

When i try to output the contents of this field on my CFML end output page, all i get is various odd characters rather than the acctual text that is in the db.

I have searched this on the net and found it is not unique to CFML but happens in ASP also, which led me to thinking it could the be field properties of the db and not the method of connecting i am using.

Additional to this, i have changed the field to be varchar(8000) and the text output's correctly!!

Am i able to change any settings on the varchar(max) field or is this just how it works??

Any advice on this is appreciated!!

Thanks

Nicola :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top