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

dev16 mxpertz 0 Reputation points

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.
11,635 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce ( 49,051 Reputation points

    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