Viewing 15 posts - 50,311 through 50,325 (of 59,099 total)
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
avipenina (5/21/2008)
hi,how can i decrypt a stored procedure in sql server 2005?
THX
I'm curious... where is your source code? Or are to trying to break in on someone else?
--Jeff Moden
Change is inevitable... Change for the better is not.
May 24, 2008 at 6:13 pm
sharma (5/24/2008)
[font="Arial Black"]TblMaster[/font]
ID NAME
100 James
101 Joseph
102 Felix
103 bernadsha
[font="Arial Black"]TblChild[/font]
ID NAME LOCATION
100 James New Jersy
101 Joseph California
102 Felix New York
103...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 24, 2008 at 6:10 pm
Obviously, the following creates a zero somewhere...
TalkTime + HoldTime + WrapTime + WaitTime + PreviewTime + DeadTime
What do you want to do when you have a zero in that simple...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 24, 2008 at 6:06 pm
Viewing 15 posts - 50,311 through 50,325 (of 59,099 total)