Connection between Ionic and ODBC

Hi, Im working on an Ionic app. I need to connect my app with a sql server database. Is there any kind of documentation to do it? Someone told me that I need to use ODBC to connect them.

Thank you

I’m assuming you are wanting to connect to a Microsoft SQL Server? Someone else can correct me if I’m wrong, but I don’t think that is possible on the client side in Javascript. You are most likely going to have to have a backend web server with some API endpoints that your Ionic app can connect to and query the data required.

1 Like

Exactly. I want to connecct my app with a sql server. The problem is that I can’t find documentation to do it :frowning:

As I mentioned, I don’t think it is possible directly from Ionic (client side Javascript). You’ll need to create a backend API with your server side language of choice. My top choice would be Laravel (PHP). But there is also .NET Core, Node.js, and more… Node has this mssql package that I found with a quick search.

1 Like

Thank you. I will check it