Viewing 15 posts - 31 through 45 (of 45 total)
I've not ever had to do this before. I started at sys.schemas and worked by way up to the other two sys views but, like I said, I've not...
April 8, 2023 at 11:13 am
right, temp table is optional but i feel it's a cleaner look result. whereas the grid is hard to see. thank you
February 16, 2023 at 3:27 pm
something like this:
CREATE TABLE #tempdblogin
(DBName nvarchar (100),
PrincipalName nvarchar(100),
PrincipalType nvarchar(100),
GrantedBy nvarchar(100),
permission_name nvarchar(100),
state_desc nvarchar(100),
...
February 16, 2023 at 2:34 pm
SELECT prin.name, perm.permission_name
FROM sys.server_principals prin
INNER JOIN sys.server_permissions perm
ON prin.principal_id = perm.grantee_principal_id
WHERE prin.type = 'R' and prin.name = 'test'
Replace 'test' with the name of the role you...
February 13, 2023 at 4:17 pm
hi jeff, i have a script to list all SPs that invokes xp_cmdshell.
our db security team has identify xp_cmdshell as a security finding. they want us to disable this xp.
as...
September 20, 2022 at 9:49 am
i found a script. this can be close
September 19, 2022 at 10:39 pm
@johan - wow, alot to unpack here 🙂
i just join the team and relatively new to sql server/dba. i should have said our current team backup practice, not me specifically. ...
September 14, 2022 at 10:59 pm
no other server role beside public. mystery to me
September 14, 2022 at 9:38 am
@grant - yes, member of public role.
September 13, 2022 at 1:42 pm
Thanks so much Steve. it worked.
thanks sandwich.
September 2, 2022 at 2:57 pm
The top part of this screenshot is what it showing up after i use that last select statement. Notice the DBnamd keeps saying ABC.
the bottom portion is...
September 2, 2022 at 12:22 am
@steve-2 - the script to find the datawriter works fine. however, i'd like to include another column to drop the members of this result.
this is what i have...
September 1, 2022 at 11:59 pm
good question.
basically the database security audit team ran guardium scan and found a finding that say fixed db roles such as datawriter, datareader, etc must not be assigned directly to...
September 1, 2022 at 7:04 am
Viewing 15 posts - 31 through 45 (of 45 total)