Viewing 15 posts - 4,261 through 4,275 (of 8,761 total)
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
Quick question, when emptying the roles of users, do you check for any ownership of those users?
😎
November 13, 2015 at 8:01 pm
Just a quick test to play around with, notice the effect of adding an index
😎
USE TEEST;
GO
SET NOCOUNT ON;
DECLARE @SAMPLE_SIZE BIGINT = 10000000;
DECLARE @INT_BUCKET ...
November 13, 2015 at 1:02 pm
Sean Lange (11/13/2015)
Eirikur Eiriksson (11/13/2015)
Sean Lange (11/13/2015)
November 13, 2015 at 12:35 pm
Sean Lange (11/13/2015)
November 13, 2015 at 12:12 pm
Lowell,
did you find anything useful for this?
😎
November 13, 2015 at 10:40 am
Sean Lange (11/13/2015)
TomThomson (11/13/2015)
Jack Corbett (11/12/2015)
Sean Lange (11/12/2015)
Brandie Tarvin (11/12/2015)
Sean Lange (11/12/2015)
djj (11/12/2015)
Grant Fritchey (11/12/2015)
November 13, 2015 at 10:38 am
Yes the rows will be in a consistent order.
😎
Quick thought, since you are on 2012 it's probably easier to use the OFFSET FETCH rather than the WHERE clause. Further, when...
November 13, 2015 at 9:58 am
Viewing 15 posts - 4,261 through 4,275 (of 8,761 total)