I have a c++ machine (the middle-man) that I have to connect to an outside server (client) through websockets, but also to a MSSQL database. How can I do this (C++<->DB) with VisualStudio?
There are three ways to talk to a database using C/C++ are ODBC, OLEDB and ADO (the last is much more commonly done from VB and ASP than from C++). I wound suggest you refer to the following articles regarding this issue:
Connect / use SQL server in C/C++: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/94ab0a86-f3d0-45ee-b384-d905420eb5ff/connect-use-sql-server-in-cc?forum=sqldataaccess
C++ connect to a MS SQL DB:
TechNet Community Support
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?