I am currently working on a html web page that is supposed to visualize the data (with tables, charts, graphs...) saved in a SQL database which lies on a local Microsoft SQL Server 2014.
Is there a common practise to connect the web page to this server? I stumbled upon node.js and ajax, but i could not manage to find a proper way to get the data out of the database.
I'm completely new to this topic since i never had to back up a webpage dynamically by connecting to a database so please take me there in baby steps :)
So far, i'm using nothing else but jQuery.
Thank you in advance!
2条答案
按热度按时间lyr7nygr1#
The most basic way is to install XAMPP on your server. On it's official site there are manuals to installing and configuring it.
To connect PHP to SQL Server your will need to install proper drivers (check PHP version, x64/x86 etc on 'details' part of page).
Basic info how to connect to SQL Server you can find on web or, for example, here to connect via PDO, and here to connect via SQLSRV.
After on installations and configuring is done - you need to create PHP page that will take data from SQL Server and show it to user in proper way.
EDIT
I forgot about SSRS (SQL Server Reporting Services)! Here is an old good guide how to use it.
oalqel3c2#
"Hi, you can do this by creating a DSN using ODBC Data Source: