Viewing 15 posts - 391 through 405 (of 26,487 total)
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...
April 12, 2019 at 3:27 pm
The problem is that people are taught to do this as a crutch to insure that the previous statement is terminated by a semicolon instead of being taught...
April 12, 2019 at 3:25 pm
How are the parameters for the procedure declared? Are they declared as VARCHAR(somevalue) or as DATETIME?
April 12, 2019 at 3:20 pm
Give the following a try:
WITH [Cte1] AS (
SELECT
[T].[Term]
,[T].[TermEnd]
,[RowNum] = ROW_NUMBER() OVER(ORDER BY [T].[TermSort])
FROM
[Term] AS [T]
WHERE
RIGHT([T].[Term],2) IN ('SP','FA')
AND [T].[TermReportingYear] >= 2010
)
,[Cte2]...
April 12, 2019 at 3:16 pm
This is one reason why I dislike people being taught that a CTE "starts" with a semi-colon (;
), because it doesn't. ;
is a statement terminator, not a statement...
April 12, 2019 at 3:05 pm
Take a really close look at your JOIN clause in the final select. I am not sure what you are trying to do as you have commas after the names...
April 12, 2019 at 3:00 pm
My only complaint about your code is the semicolon preceding the WITH for your CTE. When creating a CTE it is required that the PREVIOUS statement be terminated with a...
April 12, 2019 at 2:54 pm
Please post the code, not a picture of your code.
Also, trying to read your picture of your code I see part of your problem. CTEs do not START with a...
April 12, 2019 at 2:50 pm
Problem is that the person doing this doesn't care and doesn't test. He thinks he knows it all and doesn't listen to my recommendations when I can demonstrate that what...
April 11, 2019 at 2:40 pm
Yea, I can't do that as the production server is at CENTCOM.
April 10, 2019 at 8:36 pm
Here is the name: Missing_IXNC_auditDetails_processedDate_total_890D7
April 10, 2019 at 8:15 pm
How about people that just implement missing index recommendations that create a nonclustered index that is a covering index and recreates the entire table? Yes, I found one in a...
April 10, 2019 at 8:02 pm
Now, if you also have to deal with data changes in the tables, that is something completely different and probably shouldn't be done in a DDL trigger.
The other option is...
April 8, 2019 at 9:29 pm
Read about DDL triggers, the information you would need is available in the event data returned to the trigger.
April 8, 2019 at 9:26 pm
You could create a DDL trigger that would be able to duplicate the create table statements in the other schemas. You would want to be sure the DDL trigger only...
April 8, 2019 at 7:20 pm
Viewing 15 posts - 391 through 405 (of 26,487 total)