Lembrando que quando você executar esse script, verifique em qual ambiente está executando. Use com moderação.
CREATE TABLE #tempwhois ( spid INT, ecid INT, status VARCHAR(150), loginame VARCHAR(150), hostname VARCHAR(150), blk INT, dbname VARCHAR(150), cmd VARCHAR(150) ) INSERT INTO #tempwhois EXEC Sp_who DECLARE @spid INT DECLARE @tString VARCHAR(15) DECLARE @getspid CURSOR SET @getspid = CURSOR FOR SELECT spid FROM #tempwhois WHERE dbname = 'mydb' OPEN @getspid FETCH next FROM @getspid INTO @spid WHILE @@FETCH_STATUS = 0 BEGIN SET @tString = 'KILL ' + Cast(@spid AS VARCHAR(5)) EXEC(@tString) FETCH next FROM @getspid INTO @spid END CLOSE @getspid DEALLOCATE @getspid DROP TABLE #tempwhois go
Blackjack, additionally known as twenty-one, is just one of one of the most popular gambling…
If you are a fan of online gambling, then you must have come across gry…
On the internet online casinos have transformed the betting industry, enabling players to vegas.hu online…
Casinos online offer free spins to draw new customers. These bonuses are usually very profitable,…
In recent times, online casino sites have actually obtained enormous appeal among gamers, providing a…
Bitcoin, the most preferred cryptocurrency worldwide, has reinvented lots of industries, including the on baixar…