How to use the c++ to connect sql server 2005?
-
When in the .net platform, it is easy to operate database, but when in the unmanaged c++, how to operate the sql server 2005? Can someone give me a example link?
Google has plenty of samples[^].
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
Google has plenty of samples[^].
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
you can connect your table to display in data format to make possible for it. So Sql(Sequence query language) to use,we do in edit,delete and update our data into the table.
-
you can connect your table to display in data format to make possible for it. So Sql(Sequence query language) to use,we do in edit,delete and update our data into the table.
I think the OP would be more interested in this information.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
When in the .net platform, it is easy to operate database, but when in the unmanaged c++, how to operate the sql server 2005? Can someone give me a example link?
As well as Richard's link if you do a search for ODBC you'll find (IMHO) the best interface to use databases through while programming in C or C++. While there are other methods to plug into databases ODBC has the advantage of being portable at both ends of the connection - so your C++ code can use any RDBS that has an ODBC connector AND your C++ code can be compiled on another compiler or operating system. And instead of a concrete link I'd like to recommend a very good book - "Inside ODBC" by Kyle Geiger - instead. It's out of print but you can pick up cheap second hand copies on Amazon marketplace [1]. It's well worth a read and got me started on the rocky road to being an informed C++ DB programmer. Cheers, Ash [1] At least you could 20 minutes ago when I recommended it as part of an answer to another question. I might have caused a run on them.