简体   繁体   中英

SQL Server : account needs access to data in another database

Scenario : a desktop application connects to a SQL Server database using a restricted account. 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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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