Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Chinwa
Starting Member
20 Posts |
Posted - 2006-12-19 : 08:44:27
|
| I can enter a new user login with the CREATE LOGIN T-SQL statements:CREATE LOGIN [xxxxx] WITH PASSWORD='xxxxx', DEFAULT_DATABASE=[xxxxx], DEFAULT_LANGUAGE=[us_english], CHECK_EXPIRATION=OFF, CHECK_POLICY=ONHowever, if I go through the Create user wizard I also have the ability to map other databases to the user at the same time.Anyone know how I can map all the databases for a new user login along with the default database using T-SQL? |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2006-12-19 : 09:06:07
|
| Have a look at the create user statement.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
Chinwa
Starting Member
20 Posts |
Posted - 2006-12-19 : 09:24:37
|
| Thank you! |
 |
|
|
|
|
|