简体   繁体   English

ASP.NET SQL Server连接别名

[英]ASP.NET SQL Server connection alias

Probably an amateur question, but I have taken over consulting for an application a previous consulting used to do. 可能是一个业余问题,但我已经接管了以前咨询工作所需要的应用程序咨询。

His ASP.NET connection strings appear to work in a way I have never seen before. 他的ASP.NET连接字符串似乎以我从未见过的方式工作。 The connection string points to a server, username, password as usual yet when I look for the SQL Server account to the DB it doesn't exist nor does it appear in a UDL test file and the only account that exists in the database is a windows account. 连接字符串照常指向服务器,用户名,密码,但是当我在数据库中查找SQL Server帐户时,它不存在,也不出现在UDL测试文件中,并且数据库中唯一的帐户是Windows帐户。

Is there some sort of aliasing happening, and if so, where and how would I find it? 是否发生某种混叠,如果出现这种情况,我在哪里以及如何找到它?

If a duplicate the database for testing using the same credentials but different db name, it fails. 如果使用相同的凭据但使用不同的数据库名称来复制要测试的数据库,则该数据库将失败。

Thanks in advance! 提前致谢!

Resolved. 解决。 The customer had hidden the SQL account (that was being used by the application) from our viewing even though we originally created the account. 即使我们最初创建了该帐户,客户也从我们的视图中隐藏了该SQL帐户(该应用程序正在使用该帐户)。

Because the account did exist but was orphaned to the db copy, we were unable to view the database. 因为该帐户确实存在,但是被孤立到数据库副本,所以我们无法查看数据库。 Once added, we could access the database. 添加后,我们可以访问数据库。

I found it very interesting that even using a UDL file, we could not see this hidden SQL account. 我发现非常有趣的是,即使使用UDL文件,我们也看不到此隐藏的SQL帐户。 Only Admin's (we aren't an admin) and IIS could see the account. 只有管​​理员(我们不是管理员)和IIS才能看到该帐户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM