Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server ASP
|
SQL Server ASP Discussions about ASP programming with Microsoft's SQL Server. For more ASP forums, see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 29th, 2004, 03:09 PM
Registered User
 
Join Date: Mar 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default need to be truncated

Hello everyone,

I'm trying to collect data from form and save into table.

However, I get this message:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E57)
[Microsoft][ODBC SQL Server Driver][SQL Server]String or binary data would be truncated.

My table field are all varchar and char. what's wrong here???

 
Old April 5th, 2004, 08:03 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

What is the length that column you are trying to insert?


-Vijay G
 
Old April 15th, 2004, 10:48 AM
Authorized User
 
Join Date: Nov 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Like Vijay says, check the size of the variable you have declared, if you delcare

@MyVar VARCHAR(10) then you try to 11 chrs into to it this will throw up the error you are getting

Peter






Similar Threads
Thread Thread Starter Forum Replies Last Post
Truncated field when copying Tachyophan Access VBA 3 November 16th, 2006 08:23 AM
Querying against truncated dates John Pennington SQL Server 2000 3 October 16th, 2006 11:55 PM
Truncated Memo field on Report echovue Access 5 August 16th, 2006 08:52 AM
Long Name truncated with SendMail echovue Excel VBA 0 May 12th, 2005 03:05 PM
Truncated Form Values. conscience Pro PHP 1 December 27th, 2004 02:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.