Viewing 15 posts - 1,141 through 1,155 (of 1,464 total)
You need to create an additional variable with forced values for the NULLS.
--Create the dynamic date columns string
declare @cols AS NVARCHAR(MAX)
declare @vals AS NVARCHAR(MAX)
April 24, 2017 at 9:56 pm
April 24, 2017 at 12:19 pm
This seems to be the simplest form of the OP's requirement.
SELECT columns
FROM table
WHERE TYPE <> 14
OR VISIBLE = 0;
April 23, 2017 at 12:29 pm
April 23, 2017 at 12:24 pm
April 21, 2017 at 6:50 am
April 20, 2017 at 3:21 pm
You keep changing the XML. In one post it has a namespace, in the next it has an xsd.
Based on the latest sample, this will work
[code...
April 20, 2017 at 2:57 pm
I believe that this will meet your requirements
WITH T(N) AS (SELECT N FROM (VALUES (0),(0),(0),(0),(0),(0),(0),(0),(0),(0)) AS X(N))
, NUMS(N) AS (SELECT ROW_NUMBER() OVER (ORDER BY...
April 20, 2017 at 1:29 pm
I am currently unable to test this solution,
But I believe the syntax to be correct.
WITH XMLNAMESPACES('http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices' AS rs)
, getxml AS (
...
April 20, 2017 at 1:02 pm
Is this table possibly used as a staging area for processing data.
If it is, are many deletes, and no truncate? That would be one scenario where the IDENTITY gets...
April 20, 2017 at 9:08 am
Viewing 15 posts - 1,141 through 1,155 (of 1,464 total)