How can I connect my flutter web app to microsoft sql server database without API layer

dev16 mxpertz 0 Reputation points
2023-04-29T05:48:40.6866667+00:00

I want to connect my flutter app without API layer because I don't want to use API in this I have made the connection of my database and ODBC drive but not got the way how can I connect my ODBC to flutter.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,789 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 65,206 Reputation points
    2023-04-29T15:32:50.2333333+00:00

    As a flutter web app compiles to JavaScript that runs in the browser, you would need a JavaScript library that can call sqlserver. While there is a node version, it does not support be hosted in the browser. You might find a WASM port callable from js.

    also your Sqlserver would need to accessible from the browser client. Typically not a good idea.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.