Viewing 8 posts - 1 through 8 (of 8 total)
Bottom line, syntax error should be the correct answer. I saw the infinite loop, but figured that was a rouse to hide the fact that there were no "go" separators...
March 1, 2013 at 8:23 am
sknox (12/30/2010)
Daniel Ruehle (12/30/2010)
... casewhen Age > 90 then 1
when Age < 5 then 0
when Gender...
December 30, 2010 at 2:34 pm
Gianluca Sartori (12/30/2010)
Daniel Ruehle (12/30/2010)
select
*
from
Person
where
1 = 1
...
December 30, 2010 at 11:04 am
One easy way to make sure short circuiting works the way you want it is using case statements:
select
*
from
Person
where
1 = 1
and CreateDateTime >...
December 30, 2010 at 8:23 am
The main issue with using the "Log to table" option without the "Append" option is that each execution overwrites the previous output. If you have a job that executes...
September 9, 2009 at 7:35 am
Could you not have just added:
set transaction isolation level read committed
after the "set nocount on" in the trigger to set the isolation level for the duration of the trigger execution....
December 15, 2008 at 12:39 pm
What if someone sells a product whose only purpose is to kill people? Should they be shut down?
Definately not! Gun manufacturers should certainly not be shut down because they sell...
March 30, 2005 at 11:01 pm
Couldn't you simply create a function:
create function dbo.fnViewDate() returns datetime as declare @ret datetime select @ret = date from tableA where id = host_id() if @ret is null set @ret = getdate() return @ret go
and then your...
October 26, 2004 at 9:09 pm
Viewing 8 posts - 1 through 8 (of 8 total)