Viewing 15 posts - 436 through 450 (of 1,988 total)
You could try something like this,
CREATE TABLE #TESTY(COL_ONE datetime)
DECLARE @seconds int = 31536000 --total seconds in the year
INSERT INTO #TESTY
SELECT DATEADD(second, CAST(FLOOR(RAND(CAST(NEWID() AS varbinary )) *...
April 15, 2019 at 6:41 pm
April 15, 2019 at 3:32 pm
I'll add one, please add the forum a post is in back to the most active threads page, it's really helpful. I know you're going for a more mobile centric...
April 15, 2019 at 3:16 pm
You can add multiple schedules to a job, just make two schedules that run M-F one that runs at 7 and and on 1PM.
April 12, 2019 at 7:30 pm
It's as much MS fault as anyone for being so inconsistent with when you need a semi colon. For example with CTE's they could have made it so...
April 12, 2019 at 4:01 pm
It's as much MS fault as anyone for being so inconsistent with when you need a semi colon. For example with CTE's they could have made it so CTE's also...
April 12, 2019 at 3:24 pm
Run just the query from the first CTE 🙂
April 12, 2019 at 3:12 pm
Well what happens when you run this,
DECLARE @Attachments VARCHAR(MAX);
SET @Attachments = 'E:\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Scripts\QMfiles\MedQuest\BH_' + 'CONVERT(VARCHAR(12), GETDATE(), 107' + '.xlsx) '
SELECT @Attachments
April 11, 2019 at 6:45 pm
Great name for a beer!
Well, with the new leaderboard (https://www.sqlservercentral.com/contributors), we have our first millionaire.
Yay. Um, so what are those points redeemable...
April 10, 2019 at 3:47 pm
Indexed views can't reference other views, you'll have to put the nested view directly in the view you want to index.
April 2, 2019 at 1:35 pm
There doesn't seem to be a recent posts option anymore, there's only latest topics which doesn't help if you want to see recent responses to older topics.
April 1, 2019 at 3:46 pm
Does the Latest Topics section not include this thread/forum anymore?
April 1, 2019 at 2:30 pm
One option might be to normalize all your dates back to starting on 1/1 then just use DATEDIFF week, there's some trickier here since you'd have to account for leap...
March 29, 2019 at 9:01 am
March 29, 2019 at 7:42 am
March 28, 2019 at 3:16 pm
Viewing 15 posts - 436 through 450 (of 1,988 total)