Link to home
Start Free TrialLog in
Avatar of RickEpnet
RickEpnetFlag for United States of America

asked on

Endless SQL Loop for test

I have a server I want to test the SQL connection to see if it drops connection to the SQL.

I was thinking of running an endless loop in the query from a remote machine. Would that work if so I need some help with the Query. If not please help me with a way to test it.

Thank you
ASKER CERTIFIED SOLUTION
Avatar of David Todd
David Todd
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,

I just spotted a missing comment mark, so for completeness

while 1 = 1 begin -- infinite loop
  waitfor delay '0:00:30' -- delay for 30seconds
end

Open in new window


Regards
  David