February 2, 2011 at 12:44 pm
Hi,
I have granted a user with db_datareader rights and when that user tried to perform SCRIPT TABLE AS->CREATE TO->New Query Window,
then he is getting the below error:
TITLE: Microsoft SQL Server Management Studio
------------------------------
Script failed for Table 'dbo.docAssemble'. (Microsoft.SqlServer.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1540+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Script+Table&LinkId=20476
------------------------------
ADDITIONAL INFORMATION:
Property Text is not available for DefaultConstraint '[doc_Assembly']. This property may not exist for this object, or may not be retrievable due to insufficient access rights. (Microsoft.SqlServer.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1540+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.PropertyCannotBeRetrievedExceptionText&EvtID=Text&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
What other permissions do I need to grant to that user?
Thanks
February 2, 2011 at 2:07 pm
did you try "grant view definition to ;" in the correct database ?
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply