Solved

Access error saving comments, odbc sql server driver string or binary data would be truncated

Posted on 2014-01-17
2
1,203 Views
Last Modified: 2014-01-17
We have an application and our developer is out of town until next week. However we have a major problem saving comments in a certain field.

Yesterday before he left we were getting this error everytime we try to save new comments as seen in the image below. The developer said "this is working now after I refresh the database connection". Im not sure what this means.

Today:
In the comments, I can type TEST and save. One user typed “Received payment and mailed out records to office” and it would throw the odbc error. I would remove the word “office”, and it would save. I tried typing just the word office and it would save… real random.

I have some programming experience and web development experience. Can someone assist me in resolving?
0
Comment
Question by:cnl83
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:cnl83
ID: 39789224
I figured out that field is limited to 255 characters. I changed the max characters in SQL, but do I need to restart SQL server?
0
 
LVL 38

Accepted Solution

by:
Jim P. earned 500 total points
ID: 39789967
You shouldn't have to restart the SQL for that change. But it the 255 limit is dependent on how the table is linked through to the form. If it is a table linked into the Access DB then it will probably have to be relinked. And then it still may truncate anyway.

The problem is that Access has a max length of 255 characters for a text field (but not memo). The max length in SQL is 8000 for a varchar text field.

But if the field is being processed on the form or query it may still cut it down to 255.

It gets twitchy depending on SQL and Access versions and programming methods. So you may have to wait for the dev to solve it.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
Viewers will learn how the fundamental information of how to create a table.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question