Viewing 15 posts - 871 through 885 (of 7,191 total)
This may help you.
John
February 26, 2018 at 7:35 am
Your subquery SELECT Max(D.sent_date)... needs a WHERE clause.
John
February 23, 2018 at 8:10 am
What happens if you move the two lines you added between the penultimate and the final parentheses?
John
February 23, 2018 at 7:37 am
Check what, if anything, is preventing reuse in the log file like this:SELECT log_reuse_wait_desc
FROM sys.databases
WHERE name = 'MyDatabase';
John
February 22, 2018 at 9:14 am
According to the documentation:
The view contains one row per query statement within the cached plan, and the lifetime of the rows are tied to the...
February 22, 2018 at 3:59 am
February 22, 2018 at 2:05 am
If stats are out of date, the query optimizer is more likely to make a poor choice of execution plan. The query will take longer to run and deadlocks will...
February 21, 2018 at 9:53 am
That's one reason, but the main reason is that you don't have statistics on temp tables (except, I assume on indexes created at declaration time). That means that the query...
February 21, 2018 at 9:26 am
(1) You can have an index on a table variable, provided it supports a primary key constraint that's created at the same time as the variable declaration
(2) Table scans...
February 21, 2018 at 8:43 am
Gerald
Yes, that may be the reason. Or it may be a Windows thing. Maybe Windows doesn't bother adding explicit privileges to the ACL for accounts that are already...
February 21, 2018 at 5:47 am
It might be easier to change the service account to another account, then change it back to the original. Make sure you do this in SQL Server Configuration Manager, so...
February 21, 2018 at 5:31 am
Please will you post some table DDL, sample data and expected results? Your query will return the same row count in every row, which I suspect isn't what you want.
February 20, 2018 at 8:11 am
We have SQL Server 2012, On production database SQL job update Stats and Index Organize taking...
February 20, 2018 at 3:20 am
You can't use TOP in the SET clause. You can try something like this - you may have to include GTM_DOC_PROD in the subquery and tweak the PARTITION BY clause...
February 19, 2018 at 8:25 am
Viewing 15 posts - 871 through 885 (of 7,191 total)