Solved

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

Posted on 2014-01-17
2
1,177 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now