cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

How to ping Database server using javascript code in thingworx service ?

UY_9515947
6-Contributor

How to ping Database server using javascript code in thingworx service ?

How to ping Database server using javascript code in thingworx service ?

1 ACCEPTED SOLUTION

Accepted Solutions

Okay got it, so in that case here is my 2 possible idea

 

1. Use other apps to communicate with cmd to ping the destination server, for example using node-red and ThingWorx can communicate with Node-RED via REST Call or other programming language would also works, I find it easier just using node-red. The apps can be deployed on the same server as ThingWorx

 

2. Validate after creating the Things

 

Thanks

View solution in original post

4 REPLIES 4

HI @UY_9515947 

 

Usually, we ping it from the server that hosts ThingWorx. Can't you access the server?

 

Thanks

UY_9515947
6-Contributor
(To:danmorin)

I can access both ThingWorx hosting and Database server.

 

Let me explain the case :

we are creating multiple MSSQL Things with JDBC Settings Parmeters as inputs.

so, wanted to Validate JDBC Settings Parmeters before creating the Things by pinging the database.

 

 

 

 

Okay got it, so in that case here is my 2 possible idea

 

1. Use other apps to communicate with cmd to ping the destination server, for example using node-red and ThingWorx can communicate with Node-RED via REST Call or other programming language would also works, I find it easier just using node-red. The apps can be deployed on the same server as ThingWorx

 

2. Validate after creating the Things

 

Thanks

HI @UY_9515947,

Create a Thing with DataBase ThingTemplate, go to the Configuration Tab, and do the following configuration for MSSQL.

Shashi_Preetham_0-1664047414879.png
Thanks,

 

Shashi Preetham,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.
Top Tags