Viewing 15 posts - 91 through 105 (of 129 total)
Thanks all for your comments
as long as the point is clear - mixing TRY with @@error can cause subtle problems
and this point is not made in BOL, breaking changes, etc.
and...
July 8, 2010 at 3:46 am
Again, take a deep breath. You're not thinking. Everyone is telling you the same thing and you're not listening. If a higher severity error is unhanded in...
July 7, 2010 at 5:56 pm
bteraberry (7/7/2010)If you want 'Y' to happen regardless of what happens with 'X' then don't put it in the same TRY.
that is what I *am* doing! X and Y are...
July 7, 2010 at 5:20 pm
The Dixie Flatline (7/7/2010)In your example, change the error severity to 9 instead of 16 and you get the consistent behavior you are after. The various behaviors...
July 7, 2010 at 3:33 pm
Nils Gustav Stråbø (7/7/2010)
WHERE [field]< {dateadd formula here}
Putting your SARGable columns in functions (like datediff, substring,...
July 7, 2010 at 2:28 pm
I'm sorry to have to say it - but you still do not understand
OO
July 7, 2010 at 1:01 pm
Grant Fritchey (7/7/2010)
July 7, 2010 at 9:14 am
Grant Fritchey (7/7/2010)
July 7, 2010 at 7:01 am
Mr_Bacon (7/7/2010)Doobya, thanks for your feedback. Just for my info what do you mean when you say ‘you can't use datediff() like that - it will force a table scan’...
July 7, 2010 at 4:06 am
Matt Miller (#4) (7/6/2010)I do find it has some flaws, but still - it seems to be to be a huge step forward from continuously having to check @@ERROR after...
July 6, 2010 at 4:32 pm
the problem is that it changes the behaviour of OTHER pre-existing stored procedures
that already have a defined and tested behaviour
it breaks them
a simple example:
if @@error <> 0 goto label_do_something_else
won't work...
July 6, 2010 at 4:21 pm
if you are trying to achieve this:
Year, Course, Year, Course
08/09 Math09/10 English
08/09 Physics09/10 Math
08/09 Chemistry
I think you are trying to do a layout job in SQL ... that isn't right
return...
July 6, 2010 at 2:14 pm
when you say "not updated" ... do you mean as in:
update table
set [field] = 'value'
where 1 = 0
type of not updated?
update stuff
if @@rowcount < 1 raiserror('oh no', 16, 1)
July 6, 2010 at 1:43 pm
alter database set restricted_user
I always wished for:
alter database set single_restricted_user
July 6, 2010 at 1:39 pm
for 5
5 * 4 * 3 * 2 * 1 = 120
for 4
5 * 4 * 3 * 2 = 120
for 3
5 * 4 * 3 = 60
for 2
5 *...
July 6, 2010 at 12:46 pm
Viewing 15 posts - 91 through 105 (of 129 total)