C ++中的ODBC连接 [英] ODBC Connection In C++
本文介绍了C ++中的ODBC连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Microsoft Visual C ++ 6.0中使用ODBC与ADO一起使用ADO连接ADO连接?
How to connect the ADO Connection using ODBC with C++ in Microsoft Visual C++ 6.0?
推荐答案
这个想法是找到合适的连接字符串.仔细搜索可能会有所帮助.
我在这里找到了一些:
http://www.simongibson.com/intranet/adoodbc/ [ http://www.connectionstrings.com/visual-foxpro [ ^ ]
通常,网站 http://www.connectionstrings.com [ ^ ]有很多示例(其中一些是面向.NET的).
您应该阅读另一页:如何在ADO中使用连接对象? [ ^ ]
希望这会有所帮助,
巴勃罗.
The idea is to find the proper connection string. Googling a bit may help.
I found a few here:
http://www.simongibson.com/intranet/adoodbc/[^]
The question is: connect to what? Excel? MS SQL? Access?
MS SQL has a native provider for ADO, you don''t need ODBC for that one.
If you want to connect to FOXPRO, look here: http://www.connectionstrings.com/visual-foxpro[^]
In general, the site http://www.connectionstrings.com[^] has lot of examples (some of them are .NET oriented).
Another page you should read: How Do I Use the Connection Object in ADO?[^]
Hope this helps,
Pablo.
这篇关于C ++中的ODBC连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文