Viewing 15 posts - 1,096 through 1,110 (of 7,614 total)
Within other quotes, you have to double up the single quotes around the date, like so:
SET @Where = @Where + ' T0.U_DATE BETWEEN ''20210301'' and ''20210331'' '
December 16, 2021 at 5:36 pm
For doing single row lookups, a nonclustered index (NI) on a heap is no worse performance than a clustered index (CI). However, as Grant noted, SQL does truly prefer CIs.
If...
December 16, 2021 at 4:23 pm
IF you want to extract the value after 'number="' in the string:
SELECT *,
SUBSTRING(string, NULLIF(CHARINDEX('number="', string), 0) + 8,
...
December 16, 2021 at 12:31 am
No sample data, so unable to test. You might have to include DATENAME(WEEKDAY, CA1.[Start Time]) in the GROUP BY, but I don't think that's required. I can't remember for sure...
December 15, 2021 at 9:09 pm
"I review it". How long does THAT take?
And why does it need reviewed for "safety" if they don't have the permissions to change anything...
December 14, 2021 at 9:30 pm
"I review it". How long does THAT take?
And why does it need reviewed for "safety" if they don't have the permissions to change anything on the instance??
What on...
December 14, 2021 at 3:58 pm
Hold on. I explicitly stated that auditors should not be able to change anything on the system. Talking about giving auditors "sysadmin" is a straw man.
Scripts that...
December 14, 2021 at 1:20 am
Hold on. I explicitly stated that auditors should not be able to change anything on the system. Talking about giving auditors "sysadmin" is a straw man.
Scripts that capture full...
December 13, 2021 at 9:05 pm
Hold on. I explicitly stated that auditors should not be able to change anything on the system. Talking about giving auditors "sysadmin" is a straw man.
Scripts that capture full...
December 13, 2021 at 9:02 pm
One of the annoying things about the $(ESCAPE macros is that they are recognized only in job code (at least the last time I checked this).
So you'll have to run...
December 13, 2021 at 8:57 pm
An "audit" that only allows what the DBA wants to run is not a true audit.
Correct. That's why I have them witness the runs. And, as a...
December 13, 2021 at 8:32 pm
And in neither case did all inquiries go thru and be approved by the DBA, correct?
An "audit" that only allows what the DBA wants to run is...
December 13, 2021 at 8:28 pm
Viewing 15 posts - 1,096 through 1,110 (of 7,614 total)