开发者

How to identify the culprit in "Error converting data type varchar to numeric"?

An insert statement with a large number of values returns 'Error converting data type varchar to numeric.'

How can I开发者_如何学Go find which value actually triggers the error?

MS SQL Server 2008 is used.


you can use the function ISNUMERIC()

select * from table
where isnumeric(column) = 0

or

declare @v varchar(100)
select @v = 'abd'

select ISNUMERIC(@v)

Also take a look at this IsNumeric, IsInt, IsNumber post to help you further with these kind of problems

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜