Viewing 15 posts - 50,311 through 50,325 (of 59,102 total)
Believe it or not, it means it's connected and working fine. I had the same problem when I first saw it... Red usually means something is wrong.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 26, 2008 at 9:19 am
I'm pretty sure that you just shot yourself in the head performance wise... the myth that all CLR's are faster than T-SQL is just that... a myth. Most of...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 26, 2008 at 9:14 am
If you want the data automatically from the previous month based on today's date, do NOT use BETWEEN because it will either miss most of the last day of the...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 26, 2008 at 9:09 am
I agree... shared locks on a set of reporting tables aren't much more expensive than using a WITH (NOLOCK), and WITH (NOLOCK) will not prevent deadlocks. Don't forget that...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 26, 2008 at 8:51 am
I can't get over the gut feeling that it's a bad idea, but here goes...
First, make sure that some other user, preferably some DBA (yourself?) has SA privs.
Second, open SSMS...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 26, 2008 at 7:17 am
One more quick question... which table are all the times (and other columns) coming from? I can't tell because you're not using table aliases on the columns. The...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 26, 2008 at 7:07 am
I agree with Gus... multiple-choice questions make a test easy to grade and that's all. My "favorite" multiple choice question looks something like the following...
Which of the following roles...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 25, 2008 at 7:24 pm
I don't see why you need a CASE statement to begin with...
CONVERT(DECIMAL(6,2),ISNULL(SUM(CONVERT(NUMERIC,CRC.Contact))/NULLIF(SUM(TalkTime+HoldTime+WrapTime+WaitTime+PreviewTime+DeadTime)/3600.0,0),0))
--Jeff Moden
Change is inevitable... Change for the better is not.
May 25, 2008 at 5:56 pm
One simple forumla will return correctly whether the domain is present or not...
DECLARE @MyDomainName SYSNAME
SET @MyDomainName = 'firstname.lastname'
SELECT SUBSTRING(@MyDomainName,CHARINDEX('\',@MyDomainName)+1,128)
SET @MyDomainName = 'DOMAIN\firstname.lastname'
SELECT...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 25, 2008 at 10:00 am
p.s.
I don't know what the code is actually trying to do nor why you feel you need dynamic SQL to do it, but if you break all the lines just...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 25, 2008 at 9:29 am
Issam,
Are you simply trying to slice a given number into slices containing 3 digits each?
--Jeff Moden
Change is inevitable... Change for the better is not.
May 25, 2008 at 9:09 am
Yes, but that bit of math is the divisor in a larger formula...
CASE WHEN (SUM(CONVERT(NUMERIC,CRC.Contact))*100) <> 0.0 THEN ISNULL(CONVERT(DECIMAL(6,2),(SUM(CONVERT(NUMERIC,CRC.Contact))/(CONVERT(DECIMAL(6,2),(SUM(TalkTime + HoldTime + WrapTime + WaitTime + PreviewTime +...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 25, 2008 at 9:01 am
If you simply rip the SA rug out from under them, you'll make a lot of enemies... you need to get management to buy into a good security plan where...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 25, 2008 at 8:55 am
Ok... thanks...
Like the others have said, if you do a Google or other search, you'll find several articles on how to do this. It's just not something that most...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 25, 2008 at 8:49 am
Marvin,
So, is the CTE a good enough solution for you?
Shifting gears a bit... its pretty clever how they put the test question assessment list together so that it works against...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 24, 2008 at 8:43 pm
Viewing 15 posts - 50,311 through 50,325 (of 59,102 total)