Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: String or binary data would be truncated in microsoft.public.sqlserver.programming

Started 4 weeks ago by SQL Programmer
Hello: I'm getting this error message in SQL 2005 Standard when I run the attached code: Msg 8152, Level 16, State 14, Line 1 String or binary data would be truncated. The statement has been terminated. I did not get this error the first time that I ran this, but I did the second time. The code ...
Site: Discussions in microsoft.public.sqlserver.programming  Discussions in microsoft.public.sqlserver.programming - site profile
Forum: microsoft.public.sqlserver.programming  microsoft.public.sqlserver.programming - forum profile
Total authors: 2 authors
Total thread posts: 2 posts
Thread activity: no new posts during last week
Domain info for: microsoft.com

Other posts in this thread:

Q replied 4 weeks ago
123456123456712345678 UNIVTR0000000ORDDOCID 6 + 7 + 8 = 21 21 is bigger than 15 to me. ([NXTSPNUM] [char](15) NOT NULL) To fix the problem, you need to extend the column NXTSPNUM to at least 21 char. However, I think your codes mean adding leading zeros to ORDDOCID and not adding 7's zeros in between. If...

 

Top contributing authors

Name
Posts
SQL Programmer
1
user's latest post:
String or binary data would be...
Published (2009-11-06 11:10:00)
  Hello: I'm getting this error message in SQL 2005 Standard when I run the attached code: Msg 8152, Level 16, State 14, Line 1 String or binary data would be truncated. The statement has been terminated. I did not get this error the first time that I ran this, but I did the second time. The code is designed to increment the NXTSPNUM field in our IV40100 table by one greater than any ORDDOCID field in the SVC00700 or SVC30700...
Q
1
user's latest post:
String or binary data would be...
Published (2009-11-06 15:26:00)
  123456123456712345678 UNIVTR0000000ORDDOCID 6 + 7 + 8 = 21 21 is bigger than 15 to me. ([NXTSPNUM] [char](15) NOT NULL) To fix the problem, you need to extend the column NXTSPNUM to at least 21 char. However, I think your codes mean adding leading zeros to ORDDOCID and not adding 7's zeros in between. If that is so, you need to change your codes to: Set NXTSPNUM=(SELECT 'UNIVTR' + right(replicate('0',7) +...

Related threads on "Discussions in microsoft.public.sqlserver.programming":

Related threads on other sites:

Thread profile page for "String or binary data would be truncated in microsoft.public.sqlserver.programming" on http://www.microsoft.com/communities/newsgroups.... This report page is a snippet summary view from a single thread "String or binary data would be truncated in microsoft.public.sqlserver.programming", located on the Message Board at http://www.microsoft.com/communities/newsgroups.... This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity