Viewing 15 posts - 17,731 through 17,745 (of 22,214 total)
I'd have to say it falls into it depends. I don't mind reading a bit, but sometimes people post several hundred lines of code and, quite frankly, I don't want...
April 13, 2009 at 9:01 pm
That sure sounds like a pretty standard INNER JOIN.
Try this:
CREATE TABLE #Parent
(ParentId INT IDENTITY(1,1) NOT NULL
,Val NVARCHAR(50) NOT NULL
,CONSTRAINT pkParent PRIMARY KEY CLUSTERED (ParentId))
CREATE TABLE #Child
(ChildId INT IDENTITY(1,1) NOT NULL
,ChildVal...
April 13, 2009 at 7:06 am
DISTINCT is killing your peformance. You should try to find away around it. Plus, from the execution plan provided, it was five rows going in and five rows coming out....
April 13, 2009 at 6:58 am
If your page life expectancy is high, there's not to do but sip some coffee and look for other causes of poor performance. A high page life means that the...
April 13, 2009 at 6:11 am
Someone or some process such as a SQL Agent job must be switching it to simple recovery. I'm not aware of anything that does it automatically in the background.
Which model...
April 12, 2009 at 6:51 am
Darn. And I'm hungry too. Ah well. Life is full of these little disappointments.
First round of scotch is on me!
April 11, 2009 at 3:14 pm
I agree with the others but feel the need to express it a different way.
If you're simply learning SQL Server, no. It's conceptually beyond the basics a bit.
If you're using...
April 11, 2009 at 3:11 pm
I think my issue with doing it the "interesting" way as opposed to using JOINs is that, while this time, the performance and plan is likely to be identical, far...
April 11, 2009 at 3:04 pm
Jeff Moden (4/11/2009)
I...
April 11, 2009 at 2:58 pm
radek (4/11/2009)
Hi,
really you need all columns (*)
So you can create nonclustered index on macaddress is key of index and this index will have inlcude other colums, try this....
April 11, 2009 at 9:29 am
I used to use it for error handling back in SQL Server 6.5 & 7.0. But I came out of the VB coding camp back then, so I did lots...
April 11, 2009 at 8:26 am
It sounds like you've set up the maintenance jobs or the sql agent, or both, to run under the 'sa' login and the password is not correct. Try running under...
April 11, 2009 at 4:31 am
I'm afraid I don't understand the question. Are you concerned that your system is not using enough memory or too much?
One measure that will tell you if memory is a...
April 11, 2009 at 4:28 am
kim.talley (4/10/2009)
Is it more efficient to use multiple joins in a...
April 10, 2009 at 11:31 am
It really could be almost anything. Since you don't know, you need to investigate systematically. I like the recommendation to capture a trace. That's something I always do. I'd also...
April 10, 2009 at 5:35 am
Viewing 15 posts - 17,731 through 17,745 (of 22,214 total)