SQL 2008/2012のデバッガーを使用して、レコード内のnull値をキャッチするにはどうすればよいですか?
見る:
drop table abc
create table abc(
a int
)
go
insert into abc values(1)
insert into abc values(null)
insert into abc values(2)
select max(a) from abc
(1 row(s) affected)
Warning: Null value is eliminated by an aggregate or other SET operation.
これは、次のようにして修正できます。
SELECT max(isNull(a,0)) FROM abc
which is fine, until I come to to 200 line queries with several levels of nesting,and a result set of 2000 odd records. -- And then have no clue which column is throwing the warning.
How do I add conditional breakpoints ( or break on warning ) in the SQL debugger? ( if it is even possible )