Skip to main content
Aug 27, 2019 8:21 AM UTC
Solved

Unable to Connect to MsSql External Database

Unable to connect ThingWorx 8.3.0-b349 to MS SQL external Database. I use the extension pointed by the various tutorials about, then I create a thing using the ThingTemplate MsSQL server. I've tried to change different parameters for the configuration tab. In the application log i receive the messages :

[message: Entity Not Found : [JdbcCreator]]
[message: Entity Not Found : [MySqlServer]] (note that I use the Template and parameters for Ms SQl not MySql)
[message: Unable To Convert From java.lang.String to NUMBER]

I verified that in the Tomcat folder lib there is the MsSql.jar file.
I used a similar procedure for Postgres Database and works, but I keep failing with MsSql.

vangneAnswer
Aug 27, 2019 3:08 PM UTC

Hi @darcudarcu 

 

I found these 2 articles which might be helpful, please check.

1.CS297147

2. CS295944

 

Thanks,

Vibhuti

7 replies

Aug 27, 2019 9:10 AM UTC

Hi @darcudarcu 

 

You may refer this community post External-database-connection-guide-for-ThingWorx-v8 for more information.

Also, please check these two articles.

  1. CS243088
  2. CS310222

Thanks,

Vibhuti

Aug 27, 2019 12:10 PM UTC

Thanks, 

I can connect now.

However, in my DataBase I have two tables, I can query one table successfully but querying the other one gives me the error : Connection Closed.

Commands not related to a specific table (such as getdate()) work. The query is corrected because is tested  and copied and pasted from the database. 

The two tables have the same connection properties.

Aug 27, 2019 2:25 PM UTC

@darcudarcu 

 

Thanks for letting know that the connection issue is resolved.

Could you please provide the exact error/screenshot about the querying error?