简体   繁体   中英

Connecting to SQL from client-side javascript

Is it possible to connect to a SQL database, eg a SQL Server database , from javascript (client-side). Preferably using an ODBC or OLEDB connection.

I know this normally isn't recommended, and you should always connect from the server-side, but I want people to connect to their own SQL databases on their own local machines.

I have found examples to do this using ActiveX objects, but this only works in Internet Explorer, and I don't want to be restricted by this.

我不知道任何浏览器端数据库驱动程序,但也许可以查看PostgREST: https//github.com/begriffs/postgrest它将PostgreSQL包装在一个简单的REST API中,因此您不需要任何其他服务器软件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM