开发者

Getting started with SQL express from a c++ console application

开发者 https://www.devze.com 2023-02-15 07:44 出处:网络
Right now I am writing a little c++ console program using VS2010 Express. The next thing I want to do is to access a SQL database from within this program.

Right now I am writing a little c++ console program using VS2010 Express. The next thing I want to do is to access a SQL database from within this program.

I've downloaded SQL server 2008 express. I've managed to set up a little db using the db gui. My question now is, how do I access this db from within my program. Which header files do I need, how do I connect? About the basic tempering with the db itself I have found many tutorials, but this tiny bit that closes the gap between a program and the connection to the db drives me nuts... If any one has a nice tip to a tutorial or book, please let me know.

I开发者_StackOverflow've also tried to start a new project in VS, and was hoping to find some kind of setup wizard for a "sql project" that would get me one the way but did not find such a wiz...


Microsoft doesn't provide much for SQL connectivity from C++ console applications. There are a number of libraries such as SOCI and DTL that can help though.

0

精彩评论

暂无评论...
验证码 换一张
取 消