Permission required for SP_UpdateStats


To update the statistics on the database you should either be DBO of that database or SysAdmin on SQL instance.
SPUpdateStats

If you want to grant the least permission instead of server level permission you make the user DBO of the database. You can do it from database properties windows as below.

DBO

You can also make the user DBO using below command.

USE [My_Policy]
GO
EXEC dbo.sp_changedbowner @loginame = N’jugal’, @map = false
GO

Advertisements

Thanks for the comment, will get back to you soon... Jugal Shah

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s