Viewing 15 posts - 1,951 through 1,965 (of 7,608 total)
Maybe as below. No directly usable data so I can't test it. This code takes advantage of the fact that df1.host is known to be equal to df2.pc.
January 20, 2021 at 2:39 am
I don't think there is a single "best" CPU%. But I would be OK with generally 80-90%, as long as there weren't periods where it spiked above 95% and stayed...
January 17, 2021 at 4:32 am
thanks. It was vendor supported application. We are not allowed to change any query though
I'm confused then. When you originally asked:
Any suggestion to tune this query?
Did you expect we...
January 16, 2021 at 6:00 am
You really should not use a temp table for this. It's a lot of overhead copying rows to the temp table, esp. if you then separately build an index afterward. ...
January 16, 2021 at 5:55 am
It shouldn't be clustered, but you do need an index, as I noted above, on:
( user_id, allowed_member_id )
January 15, 2021 at 6:26 pm
If the user has a restriction on the members he can view, we're inserting into a temp table only the members he is allowed to see;
Isn't the list of allowed...
January 15, 2021 at 3:07 pm
contains (PRODUCTS, 'Product1 OR Product2 OR Product3 OR Product4 OR ...')
January 15, 2021 at 9:08 am
kind of you can.
- View any database
- connect any database
- view any definition
- select all user securables
Nice. I was familiar with the others but not with "select all user...
January 14, 2021 at 5:41 pm
You specified an INNER JOIN. That means SQL must check to see if a matching row(s) exist in the other table because, if not, SQL can't return the row. YOU...
January 14, 2021 at 5:38 pm
Your understanding is correct, I think. As Grant noted, since tables, views, etc., exist only within a database, and not at the instance level, you can't grant permissions to them...
January 13, 2021 at 11:30 pm
1) You need another table with just ID and NAME. Repeating the same name in multiple rows is a 1NF violation.
2) The clustering key to this table should be (ID,...
January 13, 2021 at 9:58 pm
For example, please provide us the table structure in code and sample data in code form, as INSERT statements:
IF OBJECT_ID('tempdb.dbo.#Employee') IS NOT NULL
DROP... January 13, 2021 at 9:49 pm
Yes, I also thought about it, but the following example shows it doesn't matter - SQL Server implicitly converts NULL to the correct type, no?
DECLARE...
January 13, 2021 at 9:41 pm
It's completely dependent on the indexes. I know Minion lets you pick lists of indexes & break up the process. I suppose Ola's script must too. Do that....
January 13, 2021 at 7:49 pm
And you never want the log to autogrow during index maintenance because it's such a slow process.
Instead, pre-grow the log to the total size you'll need. If you really must,...
January 13, 2021 at 3:30 pm
Viewing 15 posts - 1,951 through 1,965 (of 7,608 total)