PDA

View Full Version : is there some way to use JS and SQL Server?



batman
10-12-2006, 06:28 PM
i need to query a database from a AJAX/JavaScript page.

i have a database with information about user preferences and i need my page to query this info. is this possible?

thanks,

matt.

Twey
10-12-2006, 06:36 PM
Not with pure client-side Javascript, no. The usual procedure is to have the Javascript call a server-side page, which fetches the results from the database and returns them to the script.