SQL Server错误'无法找到数据类型'

时间:2014-08-30 20:59:40

标签: sql sql-server sql-server-2008

从c#保存/更新表时,我收到此错误消息。

  

列,参数或变量#6:找不到数据类型MyDataType。

User defined data-type MyDataType is numeric(18,2)

在重新安装安装了SQL Server 2008的计算机之前,一切正常。

已经尝试过设置compatibility_level,但问题仍然存在。

1 个答案:

答案 0 :(得分:1)

尝试re-create the type

create type MyDataType from numeric(18,2) not null