Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Restricted data type attribute violation" error and SQLS 2017, ODBC Drivers 11 & 13 f

Status
Not open for further replies.

manalyticsdev

Programmer
Feb 26, 2019
1
US
Dear all,

This issue occurs repeatedly with a table with columns that are somewhat managed dynamically in the sense that columns may be added or removed on occasion. The application attempts to bind with the table using a CRecordset class (dynamically bound). The issue is that this recordset class will fail to open the table with the error "Restricted data type attribute violation". This error will repeat twice in a row and then will not replicate again for a while. "A while" is an unknown length of time. While the time has not fully passed, the recordset will attach, open, and operate on this table like nothing is wrong. Once that time has passed "restricted data type attribute violation" error comes back. I have already attempted using different API conversions for dates.

Any help will be greatly appreciated...

Application framework: MFC/C++

SQL Server drivers tested/replicated:

- SQL Server 2017 (14.0.3049.1), OS - MS Windows Server 2016 Standard 64-bit

- Application Server OS Windows Server 2012R2 64-bit

- ODBC Driver for 11 for SQL Server

- ODBC Driver for 13 for SQL Server



Column types used:

- varchar

- datetime

- float

- int
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top