Home Forums SQL Server 2005 T-SQL (SS2K5) set timeout in openrowset? RE: set timeout in openrowset?
nzhang6666
SSCrazy
Points: 2217
More actions
August 8, 2012 at 9:19 am
#1523189
It seems trying to add timeout in openrowset is not doable. The workaround is to try to ping to the server use xp cmdshell 'ping -n 2 -w 3000 ip' , -n means number of retries (default is 4), -w means timeout for each try (default may be 4 seconds).