Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2014-01-17
2
Medium Priority
?
1,218 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
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…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

596 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