knowram Posted August 20, 2008 Share Posted August 20, 2008 Can someone give me the syntex to connect to a mssql database and run a query with javascript please? Thank you for all the help. Quote Link to comment https://forums.phpfreaks.com/topic/120600-pull-data-from-mssql-with-javascript/ Share on other sites More sharing options...
Mchl Posted August 20, 2008 Share Posted August 20, 2008 No one can. JavaScript cannot connect to databases. Quote Link to comment https://forums.phpfreaks.com/topic/120600-pull-data-from-mssql-with-javascript/#findComment-621459 Share on other sites More sharing options...
PFMaBiSmAd Posted August 20, 2008 Share Posted August 20, 2008 Directly, no. Javascript runs in a browser and can only make http requests to a web server and a database exists on a database server. It would take some sort of server side helper application to make the bridge between the http request from a browser/javascript and the database server. Perhaps if you state what you are trying to accomplish, someone can provide direction on how to do it. Quote Link to comment https://forums.phpfreaks.com/topic/120600-pull-data-from-mssql-with-javascript/#findComment-621468 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.