Viewing 15 posts - 4,606 through 4,620 (of 8,731 total)
There´s a button in the Variables pane which allows you to move the variable. It´s the one with an arrow.
July 23, 2015 at 5:11 pm
My guts tell me that the non-clustered indexes are redundant and certainly seem to come from the DTA which will suggest covering indexes for the query without considering modifications to...
July 23, 2015 at 2:47 pm
I agree with Sean, this is kind of weird. However, here's a way to accomplish it.
IF OBJECT_ID('SampleData', 'U') IS NOT NULL
DROP TABLE SampleData;
CREATE TABLE SampleData(
ID int,
Name varchar(100),
Identifier varchar(100)
);
INSERT INTO...
July 23, 2015 at 2:38 pm
Be sure that you're under the correct scope.
Are you missing the variables or the variables panel?
July 23, 2015 at 2:11 pm
lsalih (7/23/2015)
Luis - Can you please tell me how you go about the max between start and end date?
I unpivoted the dates, so I wouldn't care which column has the...
July 23, 2015 at 1:47 pm
This seems to be what you're asking for. However, it seems awkward that you consider the enddate as an enrollment date.
SELECT EMP.ID,
EMP.NAME,
...
July 23, 2015 at 1:37 pm
Alvin Ramard (7/22/2015)
WayneS (7/22/2015)
That's his signature... it's put on all of the posts automatically.It's not the first time an OP has shared his opinion about the signature. 🙂
I just edited...
July 23, 2015 at 12:33 pm
Technically, you don't take it and insert it back, you just update it. It might be the same thing worded differently, but it gives you the syntax needed.
UPDATE AnnualClassifiedPAFs
SET ROUND...
July 23, 2015 at 11:10 am
For instance, you have to remove the RAM.Capacity and Disk.DiskSize from your GROUP BY. You might also need to aggregate the values before joining the tables. This can be done...
July 23, 2015 at 9:30 am
Sioban Krzywicki (7/23/2015)
July 23, 2015 at 9:18 am
In the properties section when you are positioned on the variable.
July 23, 2015 at 9:14 am
Ed Wagner (7/23/2015)
eccentricDBA (7/23/2015)
J Livingston SQL (7/22/2015)
SQLRNNR (7/22/2015)
MoreauScaramouche
Quixote
Don
Juan
July 23, 2015 at 8:29 am
thenewbee (7/22/2015)
NO because they wont allow to install 3rd party tools
If no 3rd party tools are allowed, you're stuck with the 3 versions of execution plans (plain text, xml, graphic)....
July 23, 2015 at 7:40 am
sunil88_pal88 (7/22/2015)
Many thanks Luis
You're welcome.
Do you understand how it works? Please post any questions that you have about this.
Here are some references:
Unpivot using CROSS APPLY: http://www.sqlservercentral.com/articles/CROSS+APPLY+VALUES+UNPIVOT/91234/
Cross tabs: http://www.sqlservercentral.com/articles/T-SQL/63681/
July 23, 2015 at 7:35 am
I'm seriously impressed.
Not only you managed to get things done by reading the article, understanding it and adapt it to your needs, you also took the time to read...
July 23, 2015 at 7:32 am
Viewing 15 posts - 4,606 through 4,620 (of 8,731 total)