While a web server handles HTTP requests and exchanges documents over the network, a data server takes similar requests, but instead of sending documents, it sends data.
Usually, a web server will communicate with a data server to store or retrieve information, rather than allowing the visiting user direct access to the data server.