将Mfc应用程序连接到远程SQL Server [英] Connecting Mfc application to remote Sql server

查看:133
本文介绍了将Mfc应用程序连接到远程SQL Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在需要数据库连接的MFC应用程序中工作...我曾经使用过 C#和数据库,VB和数据库,其中使用了连接字符串 IP地址,用户ID,密码以访问数据库.但是我一直在尝试寻找类似的方法来建立我的MFC应用程序和远程Sql服务器之间的连接.但是我找不到任何..有些文章说使用ODBC,有些说DBO ...我完全困惑... 请帮助我应该从哪里开始?谁能给我简单的示例链接...?哪一个是ODBC或DBO更好的ODBC?

I''ve been working in a MFC application Which requires a database connectivity... I''ve Worked with C# and database, VB and database where i used Connection string IP Address, User Id,Password to access database. But I''ve been trying to find similar way to establish connection between My MFC application and remote Sql server.. But I couldn''t find any.. Some articles say Use ODBC some say DBO... I''m totally Confused... Please HELP Where do i start?? Can Any one get me simple example links...?? Which one is better ODBC o DBO??

推荐答案

它是基于对话框的应用程序!我使用CDatabase类完成了它....
As It Was Dialog based application!! I Completed it by using CDatabase Class....


这篇关于将Mfc应用程序连接到远程SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆