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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

MSSqlServer Extension Example

byutz
12-Amethyst

MSSqlServer Extension Example

Hey Everyone,

I can't seem to find many examples in the way of using the MSSqlServer extension.  I have my thing setup, with the MSSql Thing template, and my connection is made, I am just not sure how to proceed with creating a service to do a simple query.  Thank you for the help!

2 REPLIES 2
PaiChung
22-Sapphire I
(To:byutz)

After saving it, go back into edit mode and start a new service.

then for the type of service which defaults to JavaScript, select SQL Query (to bring back data) or SQL Command (to enact on the Database)

Then just built a proper SQL

The Thingworx Fundamentals course has a good chapter on this.

Aanjan
12-Amethyst
(To:byutz)

Brian, as Pai suggested, the Introduction to ThingWorx course has a separate section called 'Connecting to External Data Sources'. It has examples on how to connect to a SQL database, create queries (and commands) and then bind them to a Mashup.

Announcements


Top Tags