Viewing 15 posts - 916 through 930 (of 1,838 total)
June 7, 2017 at 11:46 am
June 5, 2017 at 12:49 pm
Since this is in a 2008 forum, you should be aware that auto-update statistics settings is often not enough for large tables. There's a known condition since SQL Server will...
June 5, 2017 at 12:01 pm
A case where I've seen it works best to divide and conquer, is when you have a query with a large number of joins (it's relative I suppose, I don't...
June 5, 2017 at 10:58 am
If the disks are being sourced from a SAN, having separate drives for each tempdb file wouldn't matter, as each "drive" would probably be carved out of the same RAID...
June 2, 2017 at 10:00 am
The problem with your last query is each MAX() function is evaluated separately over the GROUP. To really solve this, we'd need to understand your data more, is it possible...
June 1, 2017 at 8:43 am
David.Poole - Wednesday, May 31, 2017 9:28 AMAre we actually a walking talking backup system for a higher intelligence?
based on my memory...
May 31, 2017 at 1:42 pm
Having connections that are sleeping is not necessarily a bad thing, there might be connection pooling going on, where an application doesn't physically close the database connection, just leaves it...
May 31, 2017 at 1:25 pm
I'd agree with Ed's solution, the only difference is depending on how many rows you need to process for this, it may make more sense to do the ROW_NUMBER() OVER...
May 31, 2017 at 9:56 am
VSSGeorge - Wednesday, May 31, 2017 7:02 AMHi Chris,
Just wanted to know, why the index was created. Please explain
The index isn't...
May 31, 2017 at 9:39 am
There's a free tool from Idera Software which I use that does this kind of work:
https://www.idera.com/productssolutions/freetools/sql-instance-check
and they keep track of the patches and updates available for all...
May 30, 2017 at 2:11 pm
I think I understand what you're doing, you should just need another join back to table2:
SELECT T2max.LinkingKey AS Max_K_Key, T2min.LinkingKey AS Min_K_Key
FROM #TEMP1 T
May 26, 2017 at 2:15 pm
SELECT DATEADD(yyyy, DATEDIFF(yyyy
May 26, 2017 at 12:05 pm
May 26, 2017 at 9:04 am
you can try something like this:
--nonpartitioned
SELECT SCHEMA_NAME(t.schema_id) AS schema_name, t.name AS table_name, p.partition_number, ps.used_page_count * 8 AS total_KB,
ds.name AS data_space, f.name AS...
May 25, 2017 at 2:48 pm
Viewing 15 posts - 916 through 930 (of 1,838 total)