如何将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/[^]