Viewing 15 posts - 2,341 through 2,355 (of 59,098 total)
Scratched the answer that was here... I didn't read the post correctly.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 8, 2022 at 1:38 am
The source table has 2 billion but not all records are chosen since it does a lookup ql.Tag_ID = sd.tagid
Any example of a script to do it in batches...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 8, 2022 at 1:31 am
Heh... you're the one touting the handle of "sqlguru". You should be teaching us how you fixed the issue. 😀
If you want help with a performance issue, we need more...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 8, 2022 at 1:24 am
No problem Jeff. Were it not for Coffee, I would never have survived the 20 years in the Navy!
I only did 8 1/2 in the Navy... Silent Service on...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 7, 2022 at 7:58 pm
Yeah... I just made that realization. Like I said in my edit of my previous post, the low level alarms for caffeine have sounded. 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
December 7, 2022 at 7:21 pm
Have you tried running the queries with a hint to force the use of the legacy cardinality estimator?
Also... when you migrated the data to the new server, did indexes get...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 7, 2022 at 7:14 pm
LOL! Ok.
The LPKCX are Cranes. The date and times are the location of the cranes as indicated by the Lat/Long. Calculating the distance between the given LPKCX location and...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 7, 2022 at 7:02 pm
DROP TABLE IF EXISTS #T;
SELECT *
INTO #T
FROM (VALUES ('1A','E'),('1A','IR'),('1A','N'),('1A','SC'),('1A','SCIR'),
...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 7, 2022 at 3:12 am
Post withdrawn. Found something odd.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 7, 2022 at 1:41 am
So do you have another column that would enforce the order of the data you posted or doesn't the order in the resulting rows matter?
--Jeff Moden
Change is inevitable... Change for the better is not.
December 6, 2022 at 11:20 pm
Awesome info, Grant. Thanks.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 6, 2022 at 11:11 pm
Post withdrawn. Found something odd.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 6, 2022 at 6:35 pm
From the original results posted for sys.db_db_index_physical_stats, I think it's pretty clear that ghost rows are an issue. The fast inserts "feature" may also be an issue.
You first need to...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 6, 2022 at 2:47 pm
Neither a Pivot nor a nasty fast CROSSTAB can be done without an aggregate. The good new for you is, MAX() is an aggregate. Do the Pivot using MAX(). You'll...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 6, 2022 at 2:32 pm
If you want to post a query plan use something like:
https://www.brentozar.com/pastetheplan/
Would you download a unknown file from the internet?
The trouble with that is that can go away and...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 6, 2022 at 2:29 pm
Viewing 15 posts - 2,341 through 2,355 (of 59,098 total)