Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MS SQL Server
 SQL Server error '80040e57'
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Lon
Starting Member

USA
47 Posts

Posted - 05 November 2006 :  10:21:33  Show Profile
Only a couple of the users are gettin this error. I have a hard time duplicating it. They are using Windows XP with IE6. Daveo asked me to start a new thread on this.

Microsoft OLE DB Provider for SQL Server error '80040e57'
String or binary data would be truncated.
/post_info.asp, line 1211

my Line 1211 is:
my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords

There are a few other topics with simular errors. I have a 2003 server with MS SQL 2000. Snitz Version 3.4.06, 3mb up/down connection.

FYI- My data is not too long, we tried a simple "Hello".

<

Edited by - Lon on 10 November 2006 08:13:48

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 05 November 2006 :  11:28:46  Show Profile  Visit HuwR's Homepage
Data insert errors are very unlikely to affect only a few users, maybe it is something related to their signatures or something like that

have you added any MODS to your forum, avatars or anything like that, I ask mainly because that line is 1201 in a non modded forum<
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 06 November 2006 :  07:00:40  Show Profile  Send pdrg a Yahoo! Message
A likely cause of this *at a db level* would be if the strSQL is being built up with parameters in their wrong places etc so a big lump of text was trying to squish into a char(10) for instance. before the execute, whyt not try a response.write of strsql, see what's being generated and it'll give you mighty big clues

hth<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 November 2006 :  08:51:39  Show Profile  Send ruirib a Yahoo! Message
Just before line 1211, add this:

Response.Write strSql
Response.End

Post here whatever is shown.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Flashspot
Starting Member

United States
6 Posts

Posted - 27 June 2008 :  08:37:10  Show Profile  Visit Flashspot's Homepage
I had this issue under 3.4.06. The error was this:
Microsoft OLE DB Provider for SQL Server error '80040e57'
String or binary data would be truncated.
/post_info.asp, line 1044


I figured that the IP column(s) weren't big enough so I did the following and the error disappeared:
ALTER TABLE [FORUM_A_REPLY]
ALTER COLUMN [R_IP] nvarchar(50) NULL
GO

ALTER TABLE [FORUM_A_TOPICS]
ALTER COLUMN [T_IP] nvarchar(50) NULL
GO

ALTER TABLE [FORUM_FORUM]
ALTER COLUMN [F_IP] nvarchar(50) NULL
GO

ALTER TABLE [FORUM_MEMBERS]
ALTER COLUMN [M_IP] nvarchar(50) NULL
GO

ALTER TABLE [FORUM_MEMBERS]
ALTER COLUMN [M_LAST_IP] nvarchar(50) NULL
GO


ALTER TABLE [FORUM_MEMBERS_PENDING]
ALTER COLUMN [M_IP] nvarchar(50) NULL
GO

ALTER TABLE [FORUM_MEMBERS_PENDING]
ALTER COLUMN [M_LAST_IP] nvarchar(50) NULL
GO

ALTER TABLE [FORUM_REPLY]
ALTER COLUMN [R_IP] nvarchar(50) NULL
GO

ALTER TABLE [FORUM_TOPICS]
ALTER COLUMN [T_IP] nvarchar(50) NULL
GO
<
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 27 June 2008 :  09:15:38  Show Profile
There's a fix for that here.

<

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.11 seconds. Powered By: Snitz Forums 2000 Version 3.4.07