select 'USE '+ Name +char (10) +'go' +Char (10)+ 'CREATE USER [domain\NtAccoount] FOR LOGIN [domain\NtAccoount] WITH DEFAULT_SCHEMA=[db_datareader]' +char (10) +'go' +Char (10) from sys.sysdatabases where dbid >5
Viewing 0 posts
You must be logged in to reply to this topic. Login to reply