Avoid ODBC Truncation Warnings From MS SQL Server

You can use ODBC settings to avoid truncation warnings from MS SQL Server. These warnings occur when the application tries to insert or update data that is larger than its length in the database. The default behavior of the ODBC driver is to return these warnings to the application.You can change this behavior using ODBC DSN configuration settings. The ODBCData Source Administrator is present in the control panel of Windows NT 4.0 and Windows 95 machines. The dialog box shows the setting as a check box with the caption “Use ANSI nulls, paddings and warnings.” If this check box is unchecked then the ODBC driver will not return truncation warnings to the application if connected to this configured DSN.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: