I have the exact Query Text and the exact time & date the Query was executed, how can I find the Host Name that executed this query?
I'm using SQL Server 2008.
Do you need @@SERVERNAME
SELECT @@SERVERNAME
will return the server name where the query was executed.
HOST_NAME will return the workstation name
SELECT HOST_NAME()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With