显示对话框以连接到SQL Server. [英] Displaying Dialog box to connect to SQL server.

查看:140
本文介绍了显示对话框以连接到SQL Server.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我有一种情况想要在C#应用程序中以SQL Server 2005的形式显示登录对话框.我知道可以通过使用SQL Server管理对象来实现,但是我无法获得有关实现该目标的任何示例或信息.

Hello Everybody,
I have a situation in which I want to display the log in dialog box as that of SQL server 2005 in my application in C#. I know that is possible by using SQL server management object but I could not get any sample or information on who to achieve that. Could any one of you please help me.

推荐答案

您始终可以设计自己的类似于SQL Server登录表单的表单.
使用输入的凭据创建连接字符串,并检查登录是否成功.
You can always design your own form similar to SQL Server login form.
Create connection string using the entered credentials and check if login is successful or not.


这篇关于显示对话框以连接到SQL Server.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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