Viewing 15 posts - 5,131 through 5,145 (of 6,486 total)
Joe -
Just in case you were wondering: the difference between your syntax (the so-called "simple case" syntax) and Andras' is that the "simple" version of the syntax assumes that...
January 21, 2008 at 9:04 am
Like Jeff said - a lot. By getting to be both dev and DBA you get to fine-tune that fine line between "ivory tower normalization" (the DBA voice) and...
January 20, 2008 at 8:36 am
That's usually the way Software Assurance works (you're allowed to upgrade to whatever version), but keep in mind that SA is time-limited (meaning - you must be within the SA...
January 19, 2008 at 10:16 am
Once you find the offending code however - restart the server and see what size the tempDB naturally grows to. Once you have a stable number - make that...
January 19, 2008 at 10:08 am
Actually - I'm not sure what you plan on getting with that. The numbers are going to be all over the place aren't they?
January 18, 2008 at 7:02 pm
I'd have to agree there with Brandie. I tried this on two "wide" (180 columns) tables with NO records:
declare @i int
select @i =0
while @i<1000000
begin
insert...
January 18, 2008 at 1:01 pm
I'm slow but I still get there at times:)
It's that time of the week where I need the "hands bypass" mechanism. The thought's there - but the...
January 18, 2008 at 12:38 pm
IIF is not a legal construct in Transact-SQL. You need to use the CASE statement instead.
CASE when condition THEN true_value else False_value END
January 18, 2008 at 12:13 pm
you're right about the same number of columns...which is why the first SELECT of mine was padding with NULLS (as you said). Just make the number of columns the...
January 18, 2008 at 12:02 pm
As long as you stay with MAX or MIN - I agree with Antares' solution. All of the other aggregate functions will get wrecked by a join before you...
January 18, 2008 at 11:47 am
That's not a whole lot of info to go on, but - yes you could. If I understand your request correctly - you'd want to explore something like a...
January 18, 2008 at 11:41 am
unless you are dumping the results of the profiler trace to a table like nic_aud_trace, in which case your script would in fact "kill" that profiler session
IF EXISTS (SELECT...
January 18, 2008 at 11:25 am
I prefer to reset the right value by using:
dbcc checkident('MyTable', reseed, 0)
dbcc checkident('MyTable', reseed)
The reseed with no arguments will change the seed to the next higher number not used in...
January 18, 2008 at 10:57 am
Did you somehow kick yourself out of the "publisher" role? The account creating the reports would need publisher or Content manager access in order to publish/deploy to the server.
January 18, 2008 at 10:52 am
Viewing 15 posts - 5,131 through 5,145 (of 6,486 total)