Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
skchaman
Starting Member
6 Posts |
Posted - 2004-11-20 : 04:38:32
|
| Is it possible to hide the messages likeWarning: Null Value eliminated from AggregateIf yes, please tell me how.Thanks |
|
|
Kristen
Test
22859 Posts |
Posted - 2004-11-20 : 07:02:13
|
Ther eis an ansi warning flag which will let you do this. However, I think you'd be better to fix the problem otherwise other warnings might crop up which get ignored.For exampleSELECT SUM(MyColumn)FROM MyTableWHERE MyColumn IS NOT NULLor SELECT SUM(CASE WHEN MyColumn IS NOT NULL THEN MyColumn ELSE 0 END)FROM MyTable Kristen |
 |
|
|
|
|
|