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

前端 未结 8 2090
萌比男神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:24

    I dont think you can connect to SQL server from client side javascripts. You need to pick up some server side language to build web applications which can interact with your database and use javascript only to make your user interface better to interact with.

    you can pick up any server side scripting language based on your language preference :

    • PHP
    • ASP.Net
    • Ruby On Rails

提交回复
热议问题