In our free SDU Tools for developers and DBAs, there's a tool that makes it easy to create a script for creating SQL Server database users. No surprise, it's called ScriptDatabaseUsers .
One key advantage of having these scripting procedures and functions is that you incorporate them into other applications, and programmatically perform the scripting if you need to.
But if you just want to create a script, that works too.
You can see it in use in the main image above, and you can watch it in action here:
To become an SDU Insider and to get our free tools and eBooks, please just visit here:
本文数据库（mssql）相关术语:熊片数据库 mssql数据库 oracle数据库 pubmed数据库 access数据库 万方数据库