Viewing 15 posts - 11,491 through 11,505 (of 14,953 total)
I doubt whatever server SSC is using could hold a complete list of everyone who has ever deserved one of Jeff's porkchops! There just plain isn't that much disk...
January 16, 2009 at 8:51 am
Your case statement appears to do what you say you want. What problem are you running into?
January 16, 2009 at 8:46 am
noeld (1/16/2009)
Now that being said...
January 16, 2009 at 8:44 am
Calendar table, definitely.
For second best, something like this should do:
;with
Numbers (Number) as
(select top 7 row_number() over (order by object_id)
from sys.all_objects)
Week (Date) as
...
January 16, 2009 at 8:38 am
I'm not at all clear on what you're asking for.
January 16, 2009 at 8:30 am
Update, and if @@Rowcount = 0, then insert. That's more efficient.
The difference is that, if it's an update, you only access the data once that way, but twice if...
January 16, 2009 at 8:27 am
An interesting addendum to this article would be data on the proper and improper use of Cross/Outer Apply. That, by definition, is pretty much a guaranteed triangle join, but...
January 16, 2009 at 7:47 am
I think that if a company started out that way, and stayed that way, regardless of size, it would be fine. There would have to be clear and definite...
January 16, 2009 at 7:38 am
I just tried your test case, and it returned all rows. That seems to be the opposite of what you posted. What am I reading incorrectly?
January 16, 2009 at 7:28 am
Garadin (1/15/2009)
January 15, 2009 at 2:53 pm
I'm assuming that you mean that users lost their rights to execute procs. That can happen from a number of things. Someone may have been adding permissions to...
January 15, 2009 at 2:44 pm
ScottPletcher (1/15/2009)
select isdate(col1), *
from #t
where isdate(col1) = 0
or datepart(year, col1) = 2001 --sql treats yr "1" as "2001"
SQL will definitely short circuit when it knows...
January 15, 2009 at 2:40 pm
I'm not clear on what you just wrote. Sorry, just can't understand it. Maybe someone else can.
January 15, 2009 at 2:38 pm
It depends on a number of things.
Is the database in full recovery mode, and do you have a product that can parse the transaction log?
or
Do you have any sort of...
January 15, 2009 at 2:36 pm
Viewing 15 posts - 11,491 through 11,505 (of 14,953 total)