Подія
31 бер., 23 - 2 квіт., 23
Найбільший навчальний захід SQL, Fabric і Power BI. 31 березня – 2 квітня. Щоб заощадити 400 грн, скористайтеся кодом FABINSIDER.
Реєструйтеся сьогодніЦей браузер більше не підтримується.
Замініть його на Microsoft Edge, щоб користуватися перевагами найновіших функцій, оновлень безпеки та технічної підтримки.
Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
Azure Synapse Analytics
Analytics Platform System (PDW)
SQL database in Microsoft Fabric
You can modify existing statistics in SQL Server by using SQL Server Management Studio or Transact-SQL.
In This Topic
Before you begin:
To modify statistics, using:
Requires that:
The user has ALTER permission on the table or view.
The user be the table or indexed view owner, or a member of one of the following roles: sysadmin fixed server role, db_owner fixed database role, or the db_ddladmin fixed database role.
In Object Explorer, click the plus sign to expand the database in which you want to modify a statistic.
Click the plus sign to expand the Tables folder.
Click the plus sign to expand the table in which you want to modify a statistic.
Click the plus sign to expand the Statistics folder.
Right-click the statistics object that you wish to modify and select Properties.
In the Statistics Properties - statistics_name dialog box, on the General page, click Add, Remove, Move Up, or Move Down, or any combination, to alter the properties of the statistics. Remember that a column's location within the Statistics Columns grid can substantially impact the usefulness of the statistics.
Click OK.
To modify statistics
This task cannot be performed using Transact-SQL statements. To modify statistics using Transact-SQL, you must first delete the existing statistic and then re-create it with new attributes.
For more information, see DROP STATISTICS (Transact-SQL) and CREATE STATISTICS (Transact-SQL).
Подія
31 бер., 23 - 2 квіт., 23
Найбільший навчальний захід SQL, Fabric і Power BI. 31 березня – 2 квітня. Щоб заощадити 400 грн, скористайтеся кодом FABINSIDER.
Реєструйтеся сьогодніНавчання
Сертифікація
Microsoft Certified: Azure Database Administrator Associate - Certifications
Адмініструйте інфраструктуру баз даних SQL Server для хмарних, локальних і гібридних реляційних баз даних за допомогою пропозицій реляційних баз даних Microsoft PaaS.