Viewing 15 posts - 496 through 510 (of 13,463 total)
Gail addressed the performance aspect of it; fragmentation is very low on the "fix it" list as far as performance goes.
If you want to address the fragmentation, here's...
May 30, 2017 at 6:47 am
as far as tracking if it happens again, i''d create an extended event to capture database creation and deletion, and add login disabled, as well as anything else you think...
May 30, 2017 at 5:43 am
I think you need to use a recursive CTE in this case, so that all possible relations are created through joining to the data itself .
if you are not...
May 29, 2017 at 6:46 am
it sounds like they are allowed to query the data with their tools of choice, but often write bad queries; maybe you could use the resource governor in that case;...
May 27, 2017 at 7:14 pm
i believe msdb.dbo.sysmail_allitems will only have a single row per mail_id, along with it's current status (sent/unsent/failed)
when a mail does fail, an entry is created in sysmail_event_log
[code...
May 25, 2017 at 2:36 pm
i've used WinCD Emulator, which mounts an iso as if it were a drive, and also http://wincdemu.sysprogs.org/
and also
Virtual Clone Drive
https://www.elby.ch/en/products/vcd.html
I like...
May 23, 2017 at 1:27 pm
there's no race condition that i see.
Luis's test tests that one table or the other has rows; i thought it was very elegant.
IF EXISTS(SELECT * FROM #temp1)
May 22, 2017 at 2:00 pm
whoops i was assuming Azure SQL, and not DW, my fault, thank you for the clarification Gail!
I read the request too quickly.
May 22, 2017 at 1:07 pm
your code for the function [sys].[dm_db_index_physical_stats] is hardcoded to database_id = 5, is that right?
i prefer to use the db_id and current database context.
object_id('') will resolve to null, just...
May 22, 2017 at 12:56 pm
the structure of a database and dmv's are all exactly the same, whether Azure or SQL
any script that would generate scripts for indexes or users, or anything like that...
May 22, 2017 at 12:41 pm
why not have a new DBA job that now updates any jobs not owned by [sa] to be [sa], and any job steps that are of type SSIS to have...
May 22, 2017 at 10:45 am
seems like the right thing to do is simply replace dbo permissions with something that is almost, but not quite the same. that would address the issue, i would think.
May 22, 2017 at 10:02 am
awesome. that's the way to code defensively.
May 22, 2017 at 9:25 am
did you hard code it to a string 'EXECUTE AS', so 'EXECUTE{CrLf}
AS' would still be allowed?
May 22, 2017 at 8:47 am
nevermind...you explicitly said you toggled 32 bit mode....
May 22, 2017 at 5:47 am
Viewing 15 posts - 496 through 510 (of 13,463 total)