我有一个proc使用临时表,然后在最后插入select语句。 我收到以下错误:
Arithmetic overflow error converting numeric to data type numeric
有没有办法可以找出select语句用于列的数据类型,以便我可以将它与临时表定义进行比较,以便我可以看到哪些列可能有问题?
我想另一种方式,我怎么能告诉哪些记录导致这个问题? 我想如果我可以在select语句的每一列中获取数据类型并与临时表进行比较,那么它将帮助我找到问题。
I have a proc that uses a temp table and then at the end inserts into that from a select statement. I'm getting the following error:
Arithmetic overflow error converting numeric to data type numeric
Is there a way that I can find out what data type the select statement is using for the columns so I can compare that to the temp table definition so I can see what column(s) may be having the issue?
I guess another way to put it, how can I tell which records are causing this problem? I figured if I could get the data type in each column in the select statement and compare to the temp table then it would help lead me to finding the issue.
请发表评论