Skip to main content
1-Visitor
July 7, 2020
Solved

Unable to connect to SQL server

  • July 7, 2020
  • 2 replies
  • 1831 views

Hi TW Gurus,

Need to know, How to connect to SQL server from a thing, I have created using base thing as database.

I was using trial version of TW.

 

Driver Class: com.microsoft.sqlserver.jdbc.SQLServerDriver

Connection String: jdbc:sqlserver://XXXXXXXX:1433;databaseName=XXXX

Privided user and password

 

in the log - I am getting this below error:

Unable to start thing ConnectSQlServer, JDBC Driver Class Not Found: com.microsoft.sqlserver.jdbc.SQLServerDriver

 

am I missing anything?

~PC

 

Best answer by Rocko

I see, you're using the PTC-hosted trial. In that case you're out of luck.

But there is also a 90 days trial with local installation available which you could use.

 

2 replies

Rocko
19-Tanzanite
July 8, 2020

Have you dropped the JDBC jar file into <TOMCAT_HOME>/lib and restarted Tomcat?

Check section "Configuring ThingWorx for MSSQL" in TWX Help of your version.

1-Visitor
July 8, 2020

Thanks for the Reply @Rocko !

However, I am using PTC's 30 days trial version of TWX to connect to SQL server. Is there any default settings for that or it is not possible unless I install TWX locally.

 

Thanks!

~PC

Rocko
Rocko19-TanzaniteAnswer
19-Tanzanite
July 8, 2020

I see, you're using the PTC-hosted trial. In that case you're out of luck.

But there is also a 90 days trial with local installation available which you could use.

 

Community Manager
July 9, 2020

Hi @pchowdhury.

 

If you feel your question has been answered, please mark the appropriate response as the Accepted Solution for the benefit of others in the community.

 

Thank you for participating in our community!

 

Regards.

 

--Sharon