简体   繁体   中英

Can i create a user in a database with the same name as SQL USER?

I have a user under SQL Server -> Security-> Logins as 'testuser'.

Can i create a database, TestDB and attempt to create a user in the TestDB with name 'testuser' Using sql code?

No, but you can set user 'testuser' user rights to access the database to some extent (owner, writer, reader, etc.) I assume it is MS SQL Server.

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