About 691,000 results
Open links in new tab
  1. sql - Why use the Where clause when creating an index? - Stack …

    Jun 23, 2019 · Create index `<index_name>` on `<table_name>` Where (`<Conditions>`) But I do not know what the benefits are? What are the benefits of a filtered index ? Which of columns …

  2. indexing - What is an index in SQL? - Stack Overflow

    Jun 2, 2010 · An index is used to speed up the performance of queries. It does this by reducing the number of database data pages that have to be visited/scanned. In SQL Server, a …

  3. What is the difference between OFFLINE and ONLINE index …

    Dec 30, 2024 · The main differences are: 1) OFFLINE index rebuild is faster than ONLINE rebuild. 2) Extra disk space required during SQL Server online index rebuilds. 3) SQL Server locks …

  4. Why use the INCLUDE clause when creating an index?

    CREATE INDEX idx1 ON MyTable (Col1) INCLUDE (Col2, Col3) The INCLUDE clause is new to me. Why would you use it and what guidelines would you suggest in determining whether to …

  5. Create a nonclustered non-unique index within the CREATE TABLE ...

    145 It is possible to create a primary key or unique index within a SQL Server CREATE TABLE statement. Is it possible to create a non-unique index within a CREATE TABLE statement?

  6. sql server - What columns generally make good indexes? - Stack …

    If you create an index on the column, the index will create it's own data structure that will simply reference the actual items in your table without concern for stored order (a non-clustered index).

  7. sql - How do I create an index based on a subquery? - Stack …

    Jun 2, 2025 · An index can be seen as a table storing the indexed value, possibly for only a subset of rows of the table it indexes. I suppose this is this last part that you're interested in …

  8. sql - When should I create database indexes? - Stack Overflow

    When to set index for a table, during table creation or on performance tuning? What are the advantages and disadvantages of indexing?

  9. sql - How to use index in select statement? - Stack Overflow

    Jul 6, 2011 · Generally, when you create an index on a table, database will automatically use that index while searching for data in that table. You don't need to do anything about that.

  10. sql - Is it better to create an index before filling a table with data ...

    Sep 25, 2020 · I have a table of about 100M rows that I am going to copy to alter, adding an index. I'm not so concerned with the time it takes to create the new table, but will the created …