如何将Windows窗体应用程序与sql数据库连接? asp.net [英] connect windows form application with sql database how ? asp.net

查看:94
本文介绍了如何将Windows窗体应用程序与sql数据库连接? asp.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表的数据库,我需要在GV上显示该表

如何通过代码连接它
我无法获取连接字符串

i have database of one table and i need to show that table on GV

how do i connect with it by code
i cant get the connection string
so how?

推荐答案

如果没有连接字符串,那么您将无法使用数据库.
If you have no connection string then you will not be able to use the database.


它将如果您提供了一些有关数据库的信息(例如,它的类型,它的位置等),则将提供帮助.这是一个旨在帮助创建连接字符串的网站:^ ]
It would help if you gave some information on database, such as what type it is, where it is at, etc. Here is a web site that is suppose to help with creating connections strings: http://www.connectionstrings.com/[^]


这篇关于如何将Windows窗体应用程序与sql数据库连接? asp.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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