cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • DownloadSemiconductor Toolkit: Tools to create wafer maps, add wafer geometry to graphics, explore die defects & compare wafers.
  • Discovery Summit 2026: Early User Edition - September 23-24.Register. It's free.
  • See how to use JMP Pro to analyze and predict using entire data set rather than selected points in a curve. Register for Nov. 6 Mastering JMP.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
PowerOx327
Level II

How do I create a script which retries to connect to SQL?

Hi,

 

The database which I am using is very unstable, so it fails a lot mid-way when tries to connect to SQL. How do I script it so that when it fails, it retries unitil it connects or until a maximum of five times.

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
tsl
tsl
Level III

Re: How do I create a script which retries to connect to SQL?

You might be able to use the LogCapture() function which allows you capture messages sent back to the JMP log by function calls.

Something like this :

RetryCount = 0
ErrMsg = LogCapture(<your SQL connection string>);
while( contains(ErrMsg, <some error string you're looking for>) & RetryCount < 5,
++RetryCount;
ErrMsg = LogCapture(<your SQL connection string>);
)

 

 

View solution in original post

1 REPLY 1
tsl
tsl
Level III

Re: How do I create a script which retries to connect to SQL?

You might be able to use the LogCapture() function which allows you capture messages sent back to the JMP log by function calls.

Something like this :

RetryCount = 0
ErrMsg = LogCapture(<your SQL connection string>);
while( contains(ErrMsg, <some error string you're looking for>) & RetryCount < 5,
++RetryCount;
ErrMsg = LogCapture(<your SQL connection string>);
)

 

 

Recommended Articles