How to update statistics after creating index

Discussion in 'Windows / IIS' started by wheelsimcom, Apr 2, 2010.

  1. Hi,

    when i try to update statistics it says me user doesn't have permission..

    can u pls rely how to do that?


    Thanks
     
  2. dmitri

    dmitri DiscountASP.NET Staff

    You can update statistics by executing the following T-SQL statement:
    Code:
    USE [YourDataBaseName]
    GO
    EXEC sp_updatestats 
    
    Replace YourDataBaseName with your actual database name.
     
  3. 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?
     
  4. dmitri

    dmitri DiscountASP.NET Staff

    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.
     

Share This Page