Viewing 15 posts - 181 through 195 (of 1,244 total)
You're going to need to query the "latest date" separately from the main query.
Something like one of the following...
DECLARE @begdate DATE = (SELECT DATEADD(MONTH, -12,...
November 15, 2018 at 7:56 am
In addition to what others have said, if you want the columns marked as 'NULL' to actually have null values rather than text columns with the word "NULL" you'll need...
November 14, 2018 at 7:24 am
Is there a way of optimizing(/workaround) the performance of a LIKE '%text%' query, on a...
November 9, 2018 at 10:00 am
I'm not a GUI programmer nor do I use SSAS, SSIS, SSRS, DW, etc,...
November 9, 2018 at 7:20 am
I'm not sure what you're looking for... Error codes do get generated for specific AG events.
For example :
1480 = role change
35264 = data movement suspended
35265...
November 7, 2018 at 1:06 pm
November 6, 2018 at 1:18 pm
Looks like you're trying to over complicate things...
DECLARE @month INT = 12;
SELECT CONVERT(CHAR(7), DATEADD(MONTH, 2, DATEFROMPARTS(YEAR(GETDATE()), @month, 1)), 21);
November 6, 2018 at 10:30 am
These should get you pretty close...
USE CodeTest;
GO
IF OBJECT_ID('tempdb..#President') IS NOT NULL
DROP TABLE #President;
CREATE TABLE #President (
PresidentID INT IDENTITY (1, 1)...
November 4, 2018 at 2:28 am
I always have a nice flower box with purpose, usage notes, and...
November 1, 2018 at 8:26 pm
November 1, 2018 at 5:57 pm
November 1, 2018 at 4:53 pm
with X as
(
select id, max(R) over (order by...
November 1, 2018 at 2:35 pm
Viewing 15 posts - 181 through 195 (of 1,244 total)