Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server ASP
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 29th, 2004, 03:09 PM
Registered User
 
Join Date: Mar 2004
Location: , , .
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???

Reply With Quote
  #2 (permalink)  
Old April 5th, 2004, 09:03 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
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
Reply With Quote
  #3 (permalink)  
Old April 15th, 2004, 11:48 AM
Authorized User
 
Join Date: Nov 2003
Location: , , .
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

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 17th, 2006 12:55 AM
Truncated Memo field on Report echovue Access 5 August 16th, 2006 09:52 AM
Long Name truncated with SendMail echovue Excel VBA 0 May 12th, 2005 04:05 PM
Truncated Form Values. conscience Pro PHP 1 December 27th, 2004 02:53 PM



All times are GMT -4. The time now is 01:13 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.