简体   繁体   English

SQL Server:帐户需要访问另一个数据库中的数据

[英]SQL Server : account needs access to data in another database

Scenario : a desktop application connects to a SQL Server database using a restricted account. 方案 :桌面应用程序使用受限帐户连接到SQL Server数据库。 However application now requires them to have access to data in a table in another database (on same server) 但是,应用程序现在要求他们有权访问另一个数据库(在同一服务器上)的表中的数据

How do I grant that account in database 1 to have select access to the table in database 2? 如何授予数据库1中的帐户对数据库2中表的选择访问权限?

grant select on [schema].[table] to [user]另一个数据库中对象的grant select on [schema].[table] to [user]

暂无
暂无

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

相关问题 需要将适用于SQL Server的Google Sitemap脚本转换为Access数据库脚本 - Google Sitemap Script for SQL Server needs to be converted to Access Database Script 在另一台计算机上访问SQL Server数据库 - Access SQL Server database on another computer 将Microsoft Access数据库连接到另一个Sql Server - Connect a Microsoft Access database to another Sql Server 阻止将本地数据库附加到另一个SQL Server中并阻止访问我的数据? - Prevent attachment of my local database in another SQL Server and prevent to access my data? 将SQL Server数据复制到另一台服务器上的另一个数据库 - Copying SQL Server Data to another Database on another Server 将数据从Access数据库插入/更新到SQL Server数据库 - Insert/update data from access database to sql server database 要将数据从sql server数据库传输到同一数据库的另一个副本 - To transfer data from sql server database to another copy of the same database 小时分组需要加上前一小时数据并减去 SQL 服务器中的另一个字段 - Hourly Grouping needs to add with previous hour data and subtract with another field in SQL Server 无法使用 SQL Server 数据库访问 Cloud SQL 上的导入数据 - Unable to access imported data on Cloud SQL with SQL Server database 如何让每个远程桌面用户通过数据库管理员帐户访问 SQL Server,而不是他们自己的凭据 - How to give every Remote Desktop User access to SQL Server via a database admin account, not their own credentials
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM