Viewing 15 posts - 76 through 90 (of 7,368 total)
btw: if you also want an inventory of all members of db group db_owner in all db, you'll need to provide the account Connect to all db.
use...
August 20, 2024 at 2:09 pm
To see the actual db owner of a db, you only need a login.
CREATE LOGIN [test] WITH PASSWORD=N'123Test...........', DEFAULT_DATABASE=[master];
When logged in as that account, the following query...
August 20, 2024 at 8:08 am
Did you try:
Select 'Restored' as source, AppUser.UserId, usergroup.Name, AppUser.UserName
from AppUser
INNER JOIN RestoredDatabase.dbo.AppUser_UserGroup
ON AppUser.UserId = AppUser_UserGroup.UserId
INNER JOIN RestoredDatabase.dbo.UserGroup
...
August 1, 2024 at 6:03 am
Glad you already got a solution.
The flaw / bug in my script was that I hard coded "'production' as source,".
If you remove that "source" column from both queries, you'll get...
July 30, 2024 at 12:17 pm
Did you try:
Select 'Restored' as source, AppUser.UserId, usergroup.Name, AppUser.UserName
from AppUser
INNER JOIN RestoredDatabase.dbo.AppUser_UserGroup
ON AppUser.UserId = AppUser_UserGroup.UserId
INNER JOIN RestoredDatabase.dbo.UserGroup
ON...
July 30, 2024 at 8:16 am
Can you post the exact error message?
July 22, 2024 at 9:50 am
After long hours, days and weeks the system back to healthy state. The biggest problem was bad developers code that had to be changed. That was killing...
July 18, 2024 at 7:45 am
Isn't that the whole "reason to be" for Ag's ?
When the partner instance comes back online and is visible to the primary instance, it will pickup log-processing from primary to...
July 9, 2024 at 10:29 am
Capture failed logins using extended events !
This may get you started: "Logon monitoring in SQL Server and Azure Managed Instances - Adopting Extended Events" as it gives you more...
June 26, 2024 at 5:31 pm
Jep .... that's also part of life 🙂
June 13, 2024 at 1:10 pm
I copy-pasted your text and commented all but the ddl and the queries.
Works just file.
Off course, in SSMS you need to keep the consequences of any "GO" line in mind...
June 13, 2024 at 11:38 am
Talk with your db's consumers if they changed usage / implement new stuff / have faulty processes recently / ...
June 12, 2024 at 11:48 am
btw: If you hover over the icon, you’ll get an explanation of it
June 11, 2024 at 5:53 am
explained at: "What is a contained availability group?"
June 8, 2024 at 5:33 pm
Viewing 15 posts - 76 through 90 (of 7,368 total)