MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 10th, 2004, 07:27 PM
scienco scienco is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 44 scienco User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 20 m 9 sec
Reputation Power: 5
TEXT field in MSSQL

"String or binary data would be truncated. "

Is the error thrown by my .NET app. However, I'm thinking this might be as a result of a problem with one of the fields in my MSSQL DB.

I have a TEXT field on the database (apparently with a length of 16 ? - Which it seems to set by default). Right, when I tried to insert the following message..... (from quote open to quote end)

"dbahhh hello!.

Have I made myself clear?!?%£$%£$%£$%"$%"££^""£$%"£$%£$"%£$%£%$$%"$£%£$%£$%

special chars.

I."

I got the error "String or binary data would be truncated. " when I try to read that text field back in my .NET app. Can anybody give me even a hint as to why it's not happy to let me view this? Does anybody think this has anything to do with the way SQLS is storing the data? Could it be the special chars? How does the TEXT field handle special chars? Or doesn't it?

I've tried inserting data without the special chars, e.g. :

"Hi, hello , goodbye...

Thanks " - and that works fine - it's just the above that seems to be an issue.

Any help is much appreciated. And I apologise - this is a borderline .net / mssql question, which unforunately doesn't fit cleanly under either forum.

Thanks in advance!

I.
__________________
<%Questions of Science%>

Reply With Quote
  #2  
Old March 11th, 2004, 05:39 PM
scienco scienco is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 44 scienco User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 20 m 9 sec
Reputation Power: 5
I have fixed this now - was something to do with the length of one of my fields.....

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > TEXT field in MSSQL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway