Viewing 15 posts - 2,311 through 2,325 (of 7,608 total)
Would you please provide directly usable data, i.e. CREATE TABLE and INSERT statement(s) for the sample data. [A splat of data on the screen does us no good to try...
September 1, 2020 at 10:21 am
Congrats, very nice article. Informative and to the point. And it's so great to see an intersection ("bridge") table without an identity column, instead keyed by the parent's keys, the...
August 31, 2020 at 7:20 pm
There was very likely different activity on the two servers. That could cause SQL's missing index recommendations to change, which would in turn likely cause BlitzIndex's recommendations to change. (Note:...
August 31, 2020 at 5:59 pm
I think there was a bit of a typo there, CR + LF is (13)+(10), not (10)+(13). You probably also want to replace single CHAR(10)/CHAR(13) chars, to be safe, like...
August 28, 2020 at 3:29 pm
No, on a non-partitioned table, there is no way to build chunks / parts of indexes (frankly I think there should be, but there isn't).
August 28, 2020 at 4:37 am
Typically people use a NULLIF like below, to avoid a CASE statement -- whether you prefer that or not is, of course, up to you:
ISNULL(((JobInfo.EstHrs / NULLIF(JobHrs.ActualHrs, 0)) * 100),...
August 25, 2020 at 5:50 pm
If the NULL determination was not a 1-time thing, but needed to be periodically available, I'd use triggers to maintain a counter per column in another table that "told" me...
August 25, 2020 at 3:11 pm
That's what I assumed it meant. Other interpretations didn't make sense. I suppose writing the table name and column name to at least a temporary table and then...
August 25, 2020 at 3:08 pm
I'm not sure specifically what the OP meant by "records [presumably meaning rows] for only the columns that have data in them".
Does that mean rows with NO null columns at...
August 24, 2020 at 6:34 pm
Nice. Don't feel bad, we have views that do this:
SELECT ...
FROM OPENQUERY(remoteserver1, '...')
UNION ALL
SELECT...
FROM OPENQUERY(removeserver2, '...')
UNION ALL
SELECT ...
FROM dbo.local_table
No way to match up all the sources to the destination for...
August 24, 2020 at 1:28 pm
Does the function use schema binding?
Please provide the text of the function, naturally first obscuring any names you need to protect.
August 21, 2020 at 4:54 pm
I don't see any way to do this. A view could have columns from several different referenced entities and from no referenced entity at all (such as CREATE VIEW dbo.view_name...
August 21, 2020 at 4:50 pm
SQL has an easy built-in way. When the analysts are given SELECT permission, the DBA can add the "WITH GRANT OPTION" to their permissions. That gives them permissions to grant...
August 20, 2020 at 4:09 am
No, that should do it, it must be something else.
Can you copy out the statements around where the error occurs and parse those directly and see if you can spot...
August 19, 2020 at 6:43 pm
Or maybe you need this?!:
...
AND SOURCE_ID <> 100 AND ADDRESS <> 'NOT APPLICABLE'
August 19, 2020 at 6:42 pm
Viewing 15 posts - 2,311 through 2,325 (of 7,608 total)