Research on including default schema for Create Login UI for SQL Server
Look under Security-> Logins -> Create New Login UI
1.) We need to figure out what happens when a default schema is assigned to a login ? Currently even though I was able to create a default schema, in the Query Analyzer window, I find the default schema to be dbo. Need to find out if this is hard coded ?
2.) From Customer:
When creating a database login in SQL Server there is no a place to specify a default schema as in Microsoft SQL Server Mgmnt Studio. After creating the login and user it becomes a manual process to create the default schema.
For Create Login, below is the script that gets generated when a default schema is created on a selected database. I selected a default schema ivan for database Northwind. Management Studio created a new user and then altered the newly created user with the default schema.
USE [master]
|
66 KB
|
72 KB
|
47 KB
|
117 KB
|
141 KB
|
56 KB
|
80 KB
Will make these changes for 2005 and above only as we will need to discontinue the use of sp_adduser and use the create user ddl statement.
changes made for sql server 2005 and above. Needs to be tested for all versions...
changes made for sql server 2005 and above. Needs to be tested for all versions...
Rohit, pls verify with the latest v15 build + in all versions mentioned in the comments
Rohit, pls verify with the latest v15 build + in all versions mentioned in the comments
verified in ADS 15.0.0 dev-227 for SQL Server 2005,2008 and 2012
verified in ADS 15.0.0 dev-227 for SQL Server 2005,2008 and 2012
Verified in ADS v15.0.0-dev-351
I attached screen shots with details steps on them which we have done in order to verify this issue.
Verified in ADS v15.0.0-dev-351
I attached screen shots with details steps on them which we have done in order to verify this issue.
Issue #9786 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
No fixed build |
No time estimate |
Will make these changes for 2005 and above only as we will need to discontinue the use of sp_adduser and use the create user ddl statement.