Viewing 15 posts - 4,246 through 4,260 (of 8,753 total)
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
Can you please elaborate on the purpose of the subquery in the select statement (bold)? Any reason for not joining to the wheeltravelcard table?
😎
SELECT top 1 RFID
from wheeltravelcard...
November 15, 2015 at 4:02 am
Quick question, can you post the DDL (create table), some sample data as an insert statement and the expected results, without that one can only guess. The subquery in the...
November 15, 2015 at 1:17 am
Viewing 15 posts - 4,246 through 4,260 (of 8,753 total)