Solved

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

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

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

Suggested Solutions

Title # Comments Views Activity
SQL server 2014 replication error 35 45
SQL R 21 29
Microaoft Access on a SBS 2011 Server 4 19
Access Creating a report using a date range 11 13
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

828 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