About 50,800 results
Open links in new tab
  1. CREATE INDEX (Transact-SQL) - SQL Server | Microsoft Learn

    Creates a relational index on a table or view. Also called a rowstore index because it is either a clustered or nonclustered B-tree index. You can create a rowstore index before there is data in the table.

  2. SQL CREATE INDEX Statement - W3Schools

    The CREATE INDEX statement is used to create indexes in tables. Indexes are used to retrieve data from the database more quickly than otherwise. The users cannot see the indexes, they are just used to speed up searches/queries.

  3. sql - Creating an index on a table variable - Stack Overflow

    May 20, 2009 · Just execute CREATE TABLE #T1(X INT); CREATE TABLE #T2(X INT); CREATE INDEX IX ON #T1(X); CREATE INDEX IX ON #T2(X); The question is tagged SQL Server 2000 but for the benefit of people developing on the latest version I'll address that first. SQL Server 2014.

  4. SQL Server CREATE INDEX

    Summary: in this tutorial, you will learn how to use the SQL Server CREATE INDEX statement to create nonclustered indexes for tables. A nonclustered index is a data structure that improves the speed of data retrieval from tables. Unlike a clustered index, a nonclustered index sorts and stores data separately from the data rows in the table.

  5. Using SQL CREATE INDEX to create clustered and non ... - SQL

    Jan 10, 2020 · To create a clustered index in SQL Server, you can modify SQL CREATE INDEX. Here is the syntax: Let’s now create a custom clustered index that physically sorts the record in the Books table in the ascending order of the price.

  6. SQL SERVER – Create Index Without Locking Table - SQL

    Nov 16, 2019 · However, if you using the enterprise version of SQL Server you can easily create an index that is online and does not lock your table. For most of the index creation process, your table and the associated index will be available for you …

  7. Creating Indexes with SQL Server Management Studio

    Aug 20, 2018 · Indexes allow queries to run faster for data selection and are a key part of high performance for SQL Server. In this tip, will see the types of indexes used in SQL Server such as clustered indexes, non-clustered indexes, filtered indexes and how to create, modify and delete indexes. We will look at:

  8. SQL CREATE INDEX Statement - GeeksforGeeks

    Jan 10, 2025 · The CREATE INDEX statement is used to create indexes in tables, enabling quicker searches and improving database efficiency. In this article, we will explain how to use the SQL CREATE INDEX Statement, when to create indexes, and why they are important for enhancing query performance.

  9. Create an Index in SQL Server - PopSQL

    In this tutorial, you will learn how to create an index in SQL Server, and various types of indexing that you can do. To create indexes, use the CREATE INDEX command: on table_name(column1, column2, .., columnN); -- create index on one column create index products_category. on products(category); You can create an index on multiple columns.

  10. Indexes in SQL Server with Examples - Dot Net Tutorials

    Whenever you create an index (or indexes) on some column (s) of a table in SQL Server then what happens internally is, it creates a B-Tree structure. In the B-Tree structure, the data is divided into three sections i.e. Root Node, Non-Leaf Nodes, and Leaf Nodes.

Refresh