rwallacej
asked on
email when SQL/VPN fails
I have server connected over vpn to second server so it can read Sql data (required as second server is different company)
The vpn sometimes fails /times out
How can I monitor this and send email when vpn /sql fails ?
Thanks
The vpn sometimes fails /times out
How can I monitor this and send email when vpn /sql fails ?
Thanks
You could have a scheduled job running every x minutes that pings the other SQL and if it fails then it should alert you. Look at Splunk as it could do all kinds of wonderful things.
ASKER
Jason,
Thank-you. Please help some more with example of the stored procedure / checking for fail.
Example query could be
SELECT TOP(1) DataDate AS 'Date' FROM dbo.tbPlatformAllocationMs g 121, Level 20, State 0,
There error received if I drop VPN connection is
"A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The semaphore timeout period has expired.)"
Thank-you
Thank-you. Please help some more with example of the stored procedure / checking for fail.
Example query could be
SELECT TOP(1) DataDate AS 'Date' FROM dbo.tbPlatformAllocationMs
There error received if I drop VPN connection is
"A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The semaphore timeout period has expired.)"
Thank-you
ASKER
also, I do not know how a job could be created, I do not have access to create jobs on the database, only read only access to tables
for example if I create in local SQL server instance this doesn't work, it gives
Invalid object name 'clientDatabaseName.dbo.tb PlatformAl location'.
for example if I create in local SQL server instance this doesn't work, it gives
Invalid object name 'clientDatabaseName.dbo.tb
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
can't setup SMTP (I do have SMTP on local database, but can't setup on client database)
ASKER
looks like might not be able to do this after all.....I'll maybe have to write app
You'd have to look up the proper error code. You can try select * from sysmessages.