Connecting SQL server 2008 using VS2010 c++

I need help in making connection to SQL server 2008 using Visual C++. I want to connect to database using User_id and password; execute simple queries and display the data.

I am sure there are people here that can answer your question, however I might suggest you try a Visual C++ forum.

try the SqlConnection Class