Solved

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

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Track name AutoCorrect info 14 46
Counting connections to SQL Server through C# 3 23
SQL Query Syntax Join 4 25
Error running stored procedure 11 10
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
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…
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…

932 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

13 Experts available now in Live!

Get 1:1 Help Now