March 27, 2023 at 2:51 pm
Hi,
Kindly some one share the script or query to get the login information used for the sql database in the instance.
InstanceName,DatabaseName,HostName,LoginName,Program,date used etc
Thanks,
Jo
March 28, 2023 at 8:25 am
I would use "sp_whoisactive" and store this in a table frequently, have a job to run it every 10 seconds or so to capture what you need and then you can report on it.
http://whoisactive.com/docs/25_capturing/
Other wise you're into extended event for the LOGIN event or server side logon triggers.
March 28, 2023 at 5:49 pm
Hi,
Kindly some one share the script or query to get the login information used for the sql database in the instance.
InstanceName,DatabaseName,HostName,LoginName,Program,date used etc
Thanks,
Jo
Why? What actual problem are you trying to solve?
--Jeff Moden
Change is inevitable... Change for the better is not.
March 29, 2023 at 6:01 am
have a look at "Logon monitoring in SQL Server and Azure Managed Instances - Adopting Extended Events"
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply