Viewing 15 posts - 706 through 720 (of 1,246 total)
Wow! This is so confusing. I still need date and time dimensions for the...
May 30, 2017 at 1:52 pm
Would you really use a Time datatype for a Time dimension primary key? I guess...
May 30, 2017 at 1:09 pm
You have two queries here and both have "AND art.[Status] = 'Published'" hard coded into the WHERE clause. AND... That is the same status being referenced in both SELECT lists.
May 26, 2017 at 1:49 pm
sgmunson - Thursday, May 25, 2017 6:40 AM... As views don't accept parameters, the ONLY alternative is a stored procedure.
Table valued...
May 26, 2017 at 1:28 pm
Being that the last day of every year is 12/31, why not just use DATEFROMPARTS...
DECLARE @Year INT = 2017;
SELECT LastDayOfYear = DATEFROMPARTS(@Year, 12, 31);
May 26, 2017 at 1:20 pm
Is this what you're looking for?
SELECT
t.EmployeeID,
t.HireDate,
t.TermDate,
NewOrExisting = CASE
WHEN t.HireDate = LAG(t.TermDate, 1) OVER (PARTITION BY t.EmployeeID ORDER BY t.HireDate)...
May 24, 2017 at 7:13 am
Something like this??? (sorry using a jpg... the forum formatting was killing the SSMS formatting)
May 18, 2017 at 10:03 pm
If it was working before, I have to assume that all references to the temp table were also within the dynamic sql.
DECLARE @sql VARCHAR(8000) = '
May 18, 2017 at 9:44 pm
Here's another option that will work in the number of numeric characters can vary...
-- Test Data --
IF OBJECT_ID('tempdb..#TEMP', 'U') IS NOT NULL
DROP TABLE...
May 10, 2017 at 7:33 am
If the data in question ALWAYS has the numeric characters in the last 3 positions, there is no need to get user defined functions dragged into the picture...
It can...
May 8, 2017 at 2:23 pm
Something like the following perhaps?
USE tempdb;
GO
-- Create and populate a 1.5M row TestTable...
IF OBJECT_ID('tempdb.dbo.TestData', 'U') IS NULL
BEGIN
CREATE TABLE dbo.TestData...
May 6, 2017 at 9:41 am
As others have noted in previous comments, there are positives and negatives to all of this. My personal view is that the IoT is coming whether we like it or...
May 6, 2017 at 6:47 am
Well, actually, if you want the true green bar (or blue bar) effect...
May 3, 2017 at 5:17 pm
Apparently there are far too few people who know how to do green bar in an SSRS tablix...
So here's how...
1) Go to the Report Properties dialog box and select the...
May 3, 2017 at 3:46 pm
Viewing 15 posts - 706 through 720 (of 1,246 total)