连接到sql express添加连接形式 [英] connecting to sql express add connection form

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

问题描述

我想打开sql express的添加连接形式以使用c#编码连接到选定的数据库...


它很紧急

I want to open the add connection form of sql express to connect to selected database using c# coding...


Its urgent

推荐答案

使用此算法
1)列出网络中所有可用的数据库并填充一个组合框
2)提供两个文本框Username,Password
3)然后使用StringBuild构建连接字符串并连接数据库
4)实际上尝试连接数据库.如果连接成功,则将成功的消息提供给用户,否则将错误的消息提供给用户


如果您需要连接字符串格式,请参阅此

www.connectionstrings.com
Use this algorithm
1) List all the database available in network and populate one combo box
2) provide two text box Username , Password
3) Then using StringBuild build the connection string and connect the database
4) actually try to connect the database .If connection successful then give successful msg to user other wise provide error msg to user


if you need connection string format see this

www.connectionstrings.com


这篇关于连接到sql express添加连接形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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