Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Alter PROC sp_PingServer
AS
DECLARE @strCmd VARCHAR(60)
DECLARE @strServerIP VARCHAR(50)
Create Table #Temp(Data VarChar(1000))
SET @strServerIP = '172.16.2.222'
SELECT @strCmd = 'ping ' + @strServerIP
Insert Into #Temp EXEC Master..xp_cmdShell @strCmd
If Exists(Select * From #Temp Where Data Like '%Lost = 0%')
Select Convert(Bit, 1) As Result
Else
Select Convert(Bit, 0) As Result
Drop Table #Temp