连接没有用户名的数据库& SQL Server 2000中的密码 [英] connect Database without username & password in SQL server 2000

查看:49
本文介绍了连接没有用户名的数据库& SQL Server 2000中的密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我不知道SQL Connection的用户名和密码,我可以在VB.net的SQL server 2000中连接没有用户名和密码的数据库吗?

解决方案

可能您可以使用'。'和'integrated security = true'连接'localhost',请参阅connectionstrings.com:



SQL Server的连接字符串 [ ^ ]



类似于:



1)可信连接 [ ^ ]



2)或尝试使用:



数据源=。;初始目录= myDataBase;集成安全性=真; 





记住, 在一个在上述情况下你可以访问数据库,但无法获得'sa'用户权限。





希望它有所帮助!


As I don't know the username & password of SQL Connection, Can I connect Database without username & password in SQL server 2000 in VB.net ?

解决方案

Possibly you can connect with 'localhost' using '.' and 'integrated security = true' see connectionstrings.com:

Connection strings for SQL Server[^]

Something like:

1) Trusted Connection[^]

2) Or try using :

Data Source=.;Initial Catalog=myDataBase;Integrated Security=true;



Remember, in all of the above cases you can access the database but can not get advantage of 'sa' user rights.


Hope it helps!


这篇关于连接没有用户名的数据库& SQL Server 2000中的密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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