连接数据库的问题 [英] Problem on connecting to the database

查看:62
本文介绍了连接数据库的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在连接到数据库时遇到问题
我该怎么办???????

i have a problem connecting to my database
what should i do???????

public partial class Form1 : Form
    {
public partial class Login : Form
    {
        private SqlDataAdapter da;
        private SqlConnection con;
        private SqlConnectionStringBuilder b = new SqlConnectionStringBuilder();
        string SqlConnection = @"Data Source=.\sqlexpress;Initial Catalog=wkdl;Integrated Security=True;Pooling=False";
        Random rnd = new Random();

推荐答案

请尊重该论坛和相关人员为了帮助他们,他们正在贡献自己的宝贵时间.

阅读以下有关如何使用SqlConnection类的内容: http://www.dotnetperls.com/sqlconnection [ ^ ]
Please respect this forum and the people trying to help, they are donating their valuable time.

Read the following on how to use the SqlConnection class : http://www.dotnetperls.com/sqlconnection[^]


这篇关于连接数据库的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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