架构对象在 SQL Server Management Studio 2008 中不可见
我在 SQL 登录时遇到一个奇怪的问题。当我使用此帐户连接到 Microsoft SQL Server Management Studio (2008) 中的服务器时,我看不到此帐户应有权访问特定数据库的任何表、存储过程等。
当我使用相同的帐户连接到 Visual Studio (2008) 中的同一服务器时,一切都在那里。当我在虚拟机上使用同一帐户连接时,一切都在那里。我还有一位同事使用相同的登录名连接到服务器,他也可以查看所有内容。
我整天使用 Microsoft SQL Server Management Studio 连接到不同的服务器和数据库,但从未遇到过此问题。
有人对我如何诊断这个问题有任何建议吗?
我已检查以确保我没有任何表过滤器等。
此服务器上有多个数据库,我可以很好地看到该帐户在其他数据库中可以访问的正确表。
运行此查询会列出我期望看到的表。
SELECT * FROM INFORMATION_SCHEMA.TABLES
I'm experiencing a weird problem with a SQL login. When I connect to the server in Microsoft SQL Server Management Studio (2008) using this account, I cannot see any of the tables, stored procedures etc. that this account should have access to on a particular database.
When I connect to the same server within Visual Studio (2008) with the same account everything is there. When I connect with the same account on a Virtual Machine everything is there. I've also had a co-worker connect to the server using the same login and he's able to view everything as well.
I use Microsoft SQL Server Management Studio all day connecting to different servers and databases and I've never experienced this problem.
Does anyone have any suggestions on how I can diagnose this problem?
I've checked to make sure I don't have any Table filters etc.
There's several database on this server and I'm able to see the correct tables that this account has access to in the other databases just fine.
Running this query lists the tables I'm expecting to see.
SELECT * FROM INFORMATION_SCHEMA.TABLES
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我已经解决了我的问题。这是一个错误... 以下是详细信息
I've solved my problem. It's a bug... Here are the details
启动 SQL Profiler,然后刷新 SQLSMS 中的数据库列表,看看它用于列出数据库的查询是什么。
fire up SQL Profiler then refresh the database list in SQLSMS and see what the query is that it uses to list the databases.
您可以重新启动sql管理来修复它。
you can restart sql management to fix it.