0

Is it possible to use the SQL query that I have written and outputted to a web part through JS and display it as a table in a SharePoint 2013 web part?

1 Answer 1

0

You can't directly query a database in JavaScript. Among other things it would expose the connection details. You have two options:

  1. Build a server side .NET web part.
  2. Build a secure web service, hosted somewhere in your network, and call that from your JavaScript.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.