Viewing 15 posts - 496 through 510 (of 13,460 total)
Lowell
May 31, 2017 at 5:14 am
GailW here's something I wrote to enumerate the people who inherit permissions from a group, and do not have an explicit login in sys.server_principals
IF OBJECT_ID('[dbo].[sp_help_adusers]') IS...
Lowell
May 30, 2017 at 2:25 pm
one day back on 07/28/2016 i was inspired to create a procedure to do this;
as everyone has already identified, the problem is keeping up with releases. how many patches, CU's...
Lowell
May 30, 2017 at 1:39 pm
if the columns are already varbinary, are you using procedures to return unencrypted data for selects? if you are already doing that, you should use procs for insert/update/delete as well. Lowell
--help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!
May 30, 2017 at 10:40 am
so much of encryption depends on the data type of the destiantion column, and the type of encryption you care to use.
most encryption methods expect a varbinary column, so...
Lowell
May 30, 2017 at 7:56 am
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...
Lowell
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...
Lowell
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...
Lowell
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;...
Lowell
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...
Lowell
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...
Lowell
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. Lowell
IF EXISTS(SELECT * FROM #temp1)
--help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!
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.
Lowell
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...
Lowell
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...
Lowell
May 22, 2017 at 12:41 pm
Viewing 15 posts - 496 through 510 (of 13,460 total)