Viewing 15 posts - 466 through 480 (of 562 total)
Grant Fritchey (3/22/2013)
March 26, 2013 at 3:57 am
Grant Fritchey (3/22/2013)
Can you get both actual execution plans and post them so we can see what the optimizer is doing?
I'll type it out,
First
Select
...
March 22, 2013 at 9:36 am
David McKinney (3/19/2013)
I don't expect it will change your life, but you never know!
This is a very valuable tip.
Most people do not know this. So spread the tip around.
For Excel...
March 19, 2013 at 4:30 am
Lynn Pettis (3/1/2013)
I'll have to disagree with you and side with Jeff. I have learned much from him and scalability and reuse actually come hand in hand. If...
March 4, 2013 at 4:10 am
Erin Ramsay (2/26/2013)
Greg Larsen has an excellent article about query metrics here:http://www.sql-server-performance.com/2008/Query-Execution-Statistics/
Thanks for the link.
Allthough with the profiler you can get results for individual statements, the profiler does not make...
March 1, 2013 at 9:18 am
Jeff Moden (2/26/2013)
March 1, 2013 at 7:50 am
And another alternative solution, based on 'strings'
declare @Month int = 2, @Year int = 2013
declare @ThisDate datetime = convert(varchar(8),@year*10000+@month*100+01)
select CONVERT(varchar(7),@thisdate,121)+'-01'
select CONVERT(varchar(7),dateadd(mm,1,@thisdate),121)+'-01'
ben brugman
February 26, 2013 at 5:09 am
GilaMonster (2/22/2013)
ben.brugman (2/22/2013)
GilaMonster (2/22/2013)
If the PLE is 400, then on average a page is expected to remain in cache for a total of 400 seconds. 400 seconds from the time...
February 22, 2013 at 11:31 am
GilaMonster (2/22/2013)
ie, if PLE is 400, then on average a page is expected to remain in cache for 400 seconds.
Is that from the moment we measure. Or from the moment...
February 22, 2013 at 11:07 am
Gazareth (2/22/2013)
ben.brugman (2/22/2013)
The average time a page remains in the cache is two times the time it has been in the cache at any moment.Is it?
Sorry but with any...
February 22, 2013 at 10:39 am
GilaMonster (2/22/2013)
PLE is a historical average of how long a page remained in cache after having been read in.
The average time a page remains in the cache is two...
February 22, 2013 at 10:05 am
Gazareth (2/22/2013)
I think you're looking at PLE from the wrong side - it's a measure of what has happened on your system, not what will happen.
The E stands for expectancy....
February 22, 2013 at 9:33 am
DECLARE @TODAY DATETIME = CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),126))
SELECT @TODAY
DECLARE @TOMORROW DATETIME = @TODAY+1
--
-- Alternative
-- DECLARE @TOMORROW DATETIME = DATEADD(DD,1,@TODAY)
-- DECLARE @TOMORROW DATETIME = DATEADD(HH,24,@TODAY)
--
SELECT @TOMORROW
SELECT * FROM TheTable WHERE TheDate >= @TODAY AND...
February 22, 2013 at 8:56 am
GilaMonster (2/15/2013)
the clustered index should be created with the UNIQUE keyword
Thanks, and yes this was clear to me from your posts.
Ben
February 18, 2013 at 3:07 am
GilaMonster (2/15/2013)
... ... UNIQUE ... ... (and identity column does not guarantee uniqueness).
Thanks, most or all other tables have the UNIQUE 'constraint', this table should have the UNIQUE constraint. Thanks...
February 15, 2013 at 8:17 am
Viewing 15 posts - 466 through 480 (of 562 total)