× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
tariqrahiman reported 2013-08-15T22:21:36Z  · nileshhmali last modified 2014-06-30T13:29:38Z

Include default schema for Create Login UI


customer request
Priority Low
Complexity Unknown
Component App - Visual Editing
Version 15.0

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]

GO
CREATE LOGIN [jjpizzle] WITH PASSWORD=N'jjpizzle', DEFAULT_DATABASE=[NORTHWIND], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
GO
USE [NORTHWIND]
GO
CREATE USER [jjpizzle] FOR LOGIN [jjpizzle]
GO
USE [NORTHWIND]
GO
ALTER USER [jjpizzle] WITH DEFAULT_SCHEMA=[ivan]
GO
 
7 attachments

Issue #9786

Closed
Fixed
Resolved 2013-10-13T23:38:00Z
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017