SELECT
New_accountid AS AccountId
FROM
BingMapsPlatform_MSCRM.dbo.FilteredAccount WITH (NOLOCK)
WHERE
new_islicensed = 1
AND new_accountid NOT IN (SELECT DISTINCT CONVERT(INT,New_AccountId)
FROM BingMapsPlatform_MSCRM.dbo.New_keydenylistExtensionBase WITH (NOLOCK)
WHERE New_AccountId IS NOT NULL)
我从此脚本中收到此错误。请帮帮我 。将nvarchar转换为int时出错
ErrorMessage : State 1, Line 1
Conversion failed when converting the nvarchar value 'account 1' to data type int.
更改为WHERE new_islicensed ='1'。更好的办法是更新你的数据类型,比特tho – 2013-03-19 09:11:07
我试过这个,但我仍然得到相同的错误。任何其他解决方法 – 2013-03-19 09:25:04
看起来像您有一个无法转换的列的值,并且该值为'account 1'..请检查列中的所有值都可以转换为整数。 – Mortalus 2013-03-19 09:33:51