Viewing 15 posts - 4,246 through 4,260 (of 8,755 total)
First thing that comes to mind is parameter sniffing and local variables, suggest you read up on the subject, plenty of good articles around covering this.
😎
November 20, 2015 at 7:21 am
rameelster (11/20/2015)
but the database instance contain 2 databases each with size 240 GB and 714 GB respectively. Dont you think that 80 percent memory is very less.
No I don't...
November 20, 2015 at 6:29 am
rameelster (11/20/2015)
November 20, 2015 at 4:53 am
Quick suggestion
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'tempdb..#Test') IS NOT NULL DROP TABLE #Test;
Create Table #Test
(id int identity,C1 bit , C2 Bit , C3 Bit)
insert into #Test Values (0,0,0)
...
November 20, 2015 at 2:54 am
Jeff Moden (11/19/2015)
SELECT {fn NOW()};
SELECT {fn CURRENT_DATE()} + ' ' + {fn CURRENT_TIME()};
EXEC...
November 20, 2015 at 1:16 am
Luis Cazares (11/19/2015)
Eirikur Eiriksson (11/19/2015)
Luis Cazares (11/19/2015)
I feel excluded.How come?
😎
You left my method out
Couldn't fit it in the select statement, too many EXEC'y thingies in there, any alternatives?
😎
November 19, 2015 at 2:47 pm
Alvin Ramard (11/19/2015)
Eirikur Eiriksson (11/19/2015)
Alvin Ramard (11/19/2015)
Eirikur Eiriksson (11/19/2015)
Luis Cazares (11/19/2015)
I feel excluded.How come?
😎
Luis, I'll include you with me. 🙂
That looks way too close to a union all statement...
November 19, 2015 at 2:45 pm
Alvin Ramard (11/19/2015)
Eirikur Eiriksson (11/19/2015)
Luis Cazares (11/19/2015)
I feel excluded.How come?
😎
Luis, I'll include you with me. 🙂
That looks way too close to a union all statement for comfort:-P
😎
November 19, 2015 at 2:25 pm
Luis Cazares (11/19/2015)
I feel excluded.
How come?
😎
November 19, 2015 at 1:59 pm
So to recap, here are 9 different methods for getting the current time, any additions anyone?
😎
SELECT
GETDATE()
,SYSDATETIME()
,SYSDATETIMEOFFSET()
,CURRENT_TIMESTAMP
...
November 19, 2015 at 1:12 pm
Sean Lange (11/19/2015)
Jacob Wilkins (11/19/2015)
jasona.work (11/19/2015)
Luis Cazares (11/19/2015)
jasona.work (11/19/2015)
November 19, 2015 at 12:41 pm
Quick suggestion, convert the year to varchar
😎
November 19, 2015 at 9:02 am
Ed Wagner (11/17/2015)
Steve Jones - SSC Editor (11/17/2015)
8am yesterday
3pm yesterday
8am today
Yep. I've seen that same scenario many times myself. I get it. Welcome to winter.
Coming from a...
November 17, 2015 at 3:37 pm
Ed Wagner (11/16/2015)
GilaMonster (11/16/2015)
Brandie Tarvin (11/16/2015)
Ed Wagner (11/16/2015)
BrainDonor (11/16/2015)
djj (11/16/2015)
November 16, 2015 at 9:22 am
djj (11/16/2015)
Brandie Tarvin (11/16/2015)
Ed Wagner (11/16/2015)
BrainDonor (11/16/2015)
djj (11/16/2015)
November 16, 2015 at 8:40 am
Viewing 15 posts - 4,246 through 4,260 (of 8,755 total)