Hi
I am running SQL Express (SSMS) under the server name Colin\SQLExpress
If I use this script I cannot log into the SSMS using the SQL login created.
CREATE LOGIN [colinp] WITH PASSWORD=N'leeds'
, CHECK_EXPIRATION=ON, CHECK_POLICY=ON,
DEFAULT_DATABASE=[Adventureworks], DEFAULT_LANGUAGE=[English];
If I change the code to Default_Database=[Master] it lets me log in but then I have to allow permission to the Adventureworks database manually when I log in.
What code can I use that will give me login and also gove me rights to the Adventureworks database also.
Thanks
I am running SQL Express (SSMS) under the server name Colin\SQLExpress
If I use this script I cannot log into the SSMS using the SQL login created.
CREATE LOGIN [colinp] WITH PASSWORD=N'leeds'
, CHECK_EXPIRATION=ON, CHECK_POLICY=ON,
DEFAULT_DATABASE=[Adventureworks], DEFAULT_LANGUAGE=[English];
If I change the code to Default_Database=[Master] it lets me log in but then I have to allow permission to the Adventureworks database manually when I log in.
What code can I use that will give me login and also gove me rights to the Adventureworks database also.
Thanks