View Full Version : How to update statistics after creating index
wheelsimcom
04-02-2010, 06:45 AM
Hi,
when i try to update statistics it says me user doesn't have permission..
can u pls rely how to do that?
Thanks
dmitri
04-02-2010, 07:13 AM
You can update statistics by executing the following T-SQL statement:
USE [YourDataBaseName]
GO
EXEC sp_updatestats
Replace YourDataBaseName with your actual database name.
wheelsimcom
04-04-2010, 10:10 PM
Hye dmitri,
I am using above your mentioned thing to update statistics.. but below is error that i m facing...
"User does not have permission to perform this action"
so can u pls tell me how to do that?
dmitri
04-05-2010, 07:47 AM
Are you logged in with the primary SQL Login? Is this login properly mapped to a database user and is that user a member of db_owner role? You have to be at least db_owner to run this command against your database. If you still have the problem, please open a ticket with our support department so we can take a closer look at the issue you are running into.
vBulletin® ©Jelsoft Enterprises Ltd.