使用Windows Forms客户端应用程序访问远程服务器oledb数据库服务器 [英] Access remote server oledb database server using windows forms client application

查看:202
本文介绍了使用Windows Forms客户端应用程序访问远程服务器oledb数据库服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Windows窗体客户端应用程序访问远程服务器oledb数据库服务器

Access remote server oledb database server using windows forms client application

推荐答案

使用ODBC DSN(数据源名称)是一个两步过程.

1)您必须首先通过计算机控制面板"中的"ODBC数据源管理器"程序创建DSN.使用ASP时,请确保创建SYSTEM DSN(而不是USER DSN).

2)然后使用以下连接字符串-当然使用您自己的DSN名称.
Using an ODBC DSN (Data Source Name) is a two step process.

1) You must first create the DSN via the "ODBC Data Source Administrator" program found in your computer''s Control Panel. Make sure to create a SYSTEM DSN (not a USER DSN) when using ASP.

2) Then use the following connection string - with your own DSN name of course.
oConn.Open "DSN=mySystemDSN;" & _ 
           "Uid=myUsername;" & _ 
           "Pwd=myPassword"


这篇关于使用Windows Forms客户端应用程序访问远程服务器oledb数据库服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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