使用我自己的App C从考勤机数据库中获取数据# [英] Fetch data from Attendance machine database with my own App C#

查看:123
本文介绍了使用我自己的App C从考勤机数据库中获取数据#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好吧

i有一个考勤机具有数据库类型:Access

名为Att2000.mdb

i做了我自己的应用程序C#

但我想输入连接字符串,访问机器的数据库(Att2000.mdb)

使用我的应用程序

_____

考勤机已经

IP地址

港口号

____

我试图通过我的连接字符串输入IP,但我的应用程序无法正常工作

所以任何人都可以帮助我让我的应用程序从考勤机中获取数据

Hi All
i have an attendance machine that has database type : Access
called "Att2000.mdb"
i did my own application with C#
but i wanna enter the connection String that access the machine''s database ("Att2000.mdb")
using my app
_____
Attendance machine has
IP Address
Port Number
____
I tried to enter the IP through my Connection String but my app did''t work properly
so any one can help me to make my application fetch the data from Attendance machine

推荐答案

在不确切知道你尝试连接字符串的情况下,除了提供一般建议之外,很难做任何其他事情:

尝试在VS中设置与服务器的连接资源管理器窗格:

1)打开服务器资源管理器。

2)右键单击数据连接并选择添加连接

3)在对话框ows,选择你的数据源和数据库,指定安全信息,然后按测试连接按钮。

4)当连接工作时,按OK

5)在服务器资源管理器窗格中突出显示数据库,然后查看属性窗格。将显示连接字符串的工作示例,您可以将其复制并粘贴到您的应用程序或配置文件中。
Without knowing exactly what you tried as a connection string, it is difficult to do anything other than give general advice:
Try setting up a connection in VS with the Server Explorer pane:
1) Open Server Explorer.
2) Right click "Data connections" and select "Add connection"
3) In the dialog that follows, select your DataSource, and database, specify the security info, and press the "Test connection" button.
4) When the connection works, press "OK"
5) Highlight your database in the Server Explorer pane, and look at the Properties pane. A working example of the connection string will be shown, which you can copy and paste into your app or config file.


这篇关于使用我自己的App C从考勤机数据库中获取数据#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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