Viewing 15 posts - 1 through 15 (of 42 total)
The view used to create the view left out the age column, therefore the insert statements that include age should fail.
April 23, 2024 at 10:46 pm
I wonder if instead of using literal number 8000, you could limit the number of rows in the first CTE
to count the number of delimiters in the string, but adding...
September 5, 2022 at 8:07 pm
You ABSOLUTELY do not want to use SELECT *.
That alone with cause all kinds of performance problems. There are multiple articles explaining why. You will have to generate the list...
October 28, 2019 at 3:46 pm
Did you try putting db name master in single quotes?
February 25, 2017 at 1:54 pm
Or, based on what I'm seeing in my database, the order of hierarchy is reversed, so it may be that the tables could be truncated in the order of
ORDER...
August 12, 2016 at 11:13 am
This has gotten way off topic and has become a rant on something not even related to SQL Server.
January 27, 2016 at 6:17 am
If you can't talk sense into him, find another company.
January 18, 2016 at 12:52 pm
Also, if programmers were not allowed to write SQL code.
January 18, 2016 at 11:16 am
I hope that stripping whitespace at the expense of proper indenting to make the code readable (and thus more maintainable) is not what that guy did.
January 18, 2016 at 10:40 am
I hope you were not advising to turn the power throttling during low cpu usage back on. Keeping CPU at full power and ready to handle spike without having...
January 18, 2016 at 6:05 am
Also, to continue, there is another discussion that seems to expand on the OVER (ORDER BY ...) technique, adding that using function ROW_NUMBER on large tables can be counterproductive. ...
June 6, 2015 at 6:52 pm
I just read the original article and wanted to add comment.
I believe if one wanted to "fix" the original SQL query
SELECT
Employee.EmpID,
Employee.EmpName,
...
June 6, 2015 at 6:47 pm
CASE in WHERE clause might cause optimizer to ignore indexes and in some cases might cause RBAR processing and/or full table scans, such as calling functions in a WHERE clause.
...
June 6, 2015 at 4:33 pm
Just need to avoid using a CASE statement in a WHERE clause (or ON condition).
June 5, 2015 at 9:50 am
SELECT ROW_NUMBER( ) OVER (ORDER BY
...
June 5, 2015 at 9:48 am
Viewing 15 posts - 1 through 15 (of 42 total)