Viewing 15 posts - 2,371 through 2,385 (of 2,610 total)
August 16, 2017 at 10:23 am
adonetok - Wednesday, August 16, 2017 9:04 AMThank you for help.
Got an error
Invalid object name 'dbo.chrSplitList'
Is dbo.chrSplitList a function?
-- Splits a...
August 16, 2017 at 9:22 am
If got a stored procedure I use for searching for a string in a database:IF NOT EXISTS(SELECT 1
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_NAME = 'INFSearchAllTables'
...
August 16, 2017 at 8:36 am
Interestingly there comes a point where the original query using ROW_NUMBER() becomes the fastest. This is when there are not many QueuedAt values for ObjectType/ObjectId combinations. In my test above...
August 16, 2017 at 5:53 am
August 16, 2017 at 5:28 am
August 15, 2017 at 1:52 pm
With these type of query you can sometimes get a lot of success from breaking it up into several queries inserting the data into temporary tables, adding indexes to the...
August 15, 2017 at 11:52 am
August 15, 2017 at 11:36 am
August 14, 2017 at 8:42 am
I've had a lot of success rewriting these type of queries (where it's selecting ROWNUMBER = 1) as a cte with a select distinct followed by another nested query with...
August 14, 2017 at 6:22 am
If you use a temporary table you should get better performance:IF OBJECT_ID('tempdb..#t','U') IS NOT NULL
DROP TABLE #t
CREATE TABLE #t (nId INTEGER IDENTITY, nVal...
August 11, 2017 at 9:38 am
This problem has a massive search space. SQL server won't be the fastest solution. Instead of using a table variable you should use a temporary table. It can be done...
August 11, 2017 at 9:19 am
Another point of optimization would be rewriting the scalar Function dbo.fn_SumRangeOfNumbers() so instead of summing integers from a Tally table the function should use the formula for the sum of...
June 6, 2017 at 5:04 am
/* Using ANSI standard information_schema */IF...April 24, 2017 at 7:25 am
April 18, 2017 at 3:29 pm
Viewing 15 posts - 2,371 through 2,385 (of 2,610 total)