Dear All,
Could someone suggest, how processes can be killed across multiple databases across multiple servers.
I know solution to do by doing on one server as below:
USE master;GO
ALTER DATABASE <databasename>
SET SINGLE_USER
WITH ROLLBACK IMMEDIATE;
ALTER DATABASE AdventureWorks
SET MULTI_USER;
but syntex to connect to multiple servers in the same session is an issue? and if I am connecting differnt servers and run the above code is not required.
I have LinkedServers but when I try to use
USE [Servername].dbo.master
ofcourse it gives error becaue USE requires database name without servername.
Could someone help giving simple solution please.
Kind Regards
Adnan