Forums » Toad for SQL Server Beta

Thread: FW: Toad-ss 5.7.0.452 - Create User Like - Not picking up Grant View on Schema Information


Permlink Replies: 1 - Pages: 1 - Last Post: Apr 27, 2012 8:01 AM by: hfreeman
Guest
FW: Toad-ss 5.7.0.452 - Create User Like - Not picking up Grant View on Schema Information
Posted: Apr 27, 2012 8:01 AM
  Click to reply to this thread Reply




hfreeman

Posts: 760
Registered: 3/16/09
FW: Toad-ss 5.7.0.452 - Create User Like - Not picking up Grant View on Schema Information
Posted: Apr 27, 2012 8:01 AM   in response to: Guest
  Click to reply to this thread Reply
Attachment image001.gif (1.1 K)
Attachment image002.jpg (1.3 K)

<style type="text/css"> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style>

 

Alex, I believe this is a bug, for failure to have the Grant information doesn’t complete the job of cloning the userid.

 

 

Hank Freeman

Senior Systems, Database/Data Warehouse Architect

hfreeman@msn.com

678.414.0090 my cell Primary

Hank.Freeman50  (Skype)

Description: Description: Description: cid:_1_0F90A2AC0F909EBC00581EB48525754C

Description: Description: Description: HANK_001.bmp

 

From: Valentin Baev [mailto:Valentin.Baev@quest.com]
Sent: Friday, April 27, 2012 10:12 AM
To: Alexander Maximov; Hank Freeman(MSN)
Subject: Re: Toad-ss 5.7.0.452 - Create User Like - Not picking up Grant View on Schema Information

 

Hank, I think you want to clone user with all the permission settings. Right?

If so – it seems like a good ER, would you mind to submit it or want me to handle?

 

From: Alexander Maximov <Alexander.Maximov@quest.com>
Date: Fri, 27 Apr 2012 18:05:42 +0400
To: "Hank Freeman(MSN)" <hfreeman@msn.com>, Valentin Baev <valentin.baev@quest.com>
Subject: RE: Toad-ss 5.7.0.452 - Create User Like - Not picking up Grant View on Schema Information

 

Hi Hank,

I’m ok to see such reports on the community. Nothing critical for Toad I suppose.

 

Regarding you message, It always worked in this way as I see to previous versions.  Not sure it is a bug though.

 

regards,

Alexander Maximov

 

From: Hank Freeman(MSN) [mailto:hfreeman@msn.com]
Sent: Friday, April 27, 2012 1:54 AM
To: Valentin Baev; Alexander Maximov
Subject: Toad-ss 5.7.0.452 - Create User Like - Not picking up Grant View on Schema Information

 

When running the Wizard Create User Like ConvDev2 and new ID = 'ConvDev2_HF.

The wizard doesn’t pick up the schema permission syntax that you see below.

 

Please advise if you want these type of security issues published on the forum or sent in directly.

 

  USE[CMA_AIT];-- updated 25-April-2012.

  GO

  CREATEUSER[ConvDev2]FORLOGIN[ConvDev2];

  GO

  EXEC sys.sp_addrolemember  @rolename=N'db_datareader', @membername=N'ConvDev2';

  EXEC sys.sp_droprolemember @rolename=N'db_datawriter', @membername=N'ConvDev2';

    GRANT VIEW DEFINITIONONschema::[dbo]  TO[ConvDev2];

    GrantExecuteonSchema::[dbo]to[ConvDev2];

 

 

USE[CMA_AIT];

GO

CREATEUSER[ConvDev2_HF]FORLOGIN[ConvDev2_HF];

GO

EXEC sys.sp_addrolemember  @rolename=N'db_datareader', @membername=N'ConvDev2_HF';

EXEC sys.sp_droprolemember @rolename=N'db_datawriter', @membername=N'ConvDev2_HF';

 

Hank Freeman

Senior Systems, Database/Data Warehouse Architect

hfreeman@msn.com

678.414.0090 my cell Primary

Hank.Freeman50  (Skype)

Description: Description: Description: cid:_1_0F90A2AC0F909EBC00581EB48525754C

Description: Description: Description: HANK_001.bmp

 




Legend
Guru: 2001 + pts
Expert: 751 - 2000 pts
Enthusiast: 31 - 750 pts
Novice: 0 - 30 pts
Moderators
Helpful answer (5 pts)
Answered (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums