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 |
venkath
Posting Yak Master
202 Posts |
Posted - 2006-06-05 : 05:31:42
|
Hi guyswhen i am inserting columns in a table, some of the rows are getting afftected correctly while some other are showing the following warning.Warning: Null value is eliminated by an aggregate or other SET operation.could any one give the reason why it is coming...Thanks in advance. |
|
mr_mist
Grunnio
1870 Posts |
Posted - 2006-06-05 : 05:37:05
|
The message tells you why.You must be doing some kind of SELECT with an aggregate function the result of which is being inserted. The message means that part of the result set was a NULL, but that is being ignored because of other data being SUMed (or similar).-------Moo. :) |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-06-05 : 07:05:51
|
That is just a warning and wont affect the resultsetMadhivananFailing to plan is Planning to fail |
|
|
TG
Master Smack Fu Yak Hacker
6065 Posts |
Posted - 2006-06-05 : 07:49:20
|
That message can be suppressed by issueing this statment:set ansi_warnings offhowever, if that statement is in an SP then the SP will be recompiled every time it is executed. Alternatively, you can issue the set statement in the session that is executing the stored procedure for the same result but with no recompile. But as madhivanan says, unless it is causing a problem with your application, you can just ignore it.Be One with the OptimizerTG |
|
|
|
|
|