How to connect to SQL Server database from JavaScript in the browser?

前端 未结 8 2083
萌比男神i
萌比男神i 2020-11-22 00:56

Can anybody give me some sample source code showing how to connect to a SQL Server 2005 database from JavaScript locally? I am learning web programming on my desktop.

<
8条回答
  •  忘了有多久
    2020-11-22 01:21

    As stated before it shouldn't be done using client side Javascript but there's a framework for implementing what you want more securely.

    Nodejs is a framework that allows you to code server connections in javascript so have a look into Nodejs and you'll probably learn a bit more about communicating with databases and grabbing data you need.

提交回复
热议问题