“受限制的数据类型属性违规”错误和SQLS 2017,ODBC驱动程序11& 13 for SQL Server [英] "Restricted data type attribute violation" error and SQLS 2017, ODBC Drivers 11 & 13 for SQL Server

查看:128
本文介绍了“受限制的数据类型属性违规”错误和SQLS 2017,ODBC驱动程序11& 13 for SQL Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

这个问题会反复出现,其中的列会在某种意义上动态管理,有时可能会添加或删除列。 应用程序尝试使用CRecordset类(动态绑定)与表绑定。
问题是此记录集类无法打开包含错误"限制数据类型属性违规"的表。 此错误将连续重复两次,然后暂时不会再次复制。  "一会儿"是
未知的时间长度。 虽然时间尚未完全通过,但记录集将在此表上附加,打开和操作,就像没有错误一样。 一旦该时间过去了"受限数据类型属性违规"错误回来了。 
我已尝试为日期使用不同的API转换。

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 really appreciated...

应用程序框架:MFC / C ++

Application framework: MFC/C++

测试/复制的SQL Server驱动程序:

SQL Server drivers tested/replicated:

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

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

- Application Server OS Windows Server 2012R2 64位

- Application Server OS Windows Server 2012R2 64-bit

- 用于SQL Server的11的ODBC驱动程序

- ODBC Driver for 11 for SQL Server

- 用于SQL Server的13的ODBC驱动程序

- ODBC Driver for 13 for SQL Server

 

使用的列类型:

- varchar

- varchar

- datetime

- datetime

- float

- float

- int

 




推荐答案

Hi
manalyticsdev

 

请参考这篇文章:
FIX:Microsoft SQL Server ODBC驱动程序无法检索远程的输出参数
a链接服务器上的存储过程

 

希望它可以帮到你。

 

最好的问候,

Rachel


这篇关于“受限制的数据类型属性违规”错误和SQLS 2017,ODBC驱动程序11& 13 for SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆