cftry / cfcatch in your code to trap them.

However, I have never seen a DB connection (prior to ColdFusion 7 or
otherwise) not give this error - it is database specific not ColdFusion.






"This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions." 
Visit our website at http://www.reedexpo.com

-----Original Message-----
From: [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
To: CFAussie Mailing List <[email protected]>
Sent: Wed Jan 18 21:01:48 2006
Subject: [cfaussie] Data Truncated Error

Prior to CFMX 7, if I was attempting to put some data into field in my 
database that was 7 characters long for example, while my data was 8 
characters, it would just truncate it and keep running the rest of the 
query.  Since CFMX 7, I get an error which kills the query:

[Macromedia][SQLServer JDBC Driver][SQLServer]String or binary data 
would be truncated.

This is a problem for me because I have a massive application that's 
grown over the years, and in the past it wasn't a definite problem to 
have some data which is longer than the database field. While I realize 
I should go back and resize many of the input fields to accept a maximum 
length, I don't have time to do that at this point.

Is there a way to turn off this warning and have it ignored? I didn't 
find anything relevant in the CF Administrator, so I'm hoping there is a 
way to turn it off in the JDBC driver.

---
You are currently subscribed to cfaussie as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/
This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to