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

    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 most be …

  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 clustered index …

  3. 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 create a …

  4. ¿Cual es la mejor práctica para crear un Index en SQL Server?

    Es importante que el índice sea por lo que más se busca. Y un detalle, en SQL Server podes tener dos tipos de índices. Clúster (Es uno solo, y debería ser el campo/campos por los que más se accede a …

  5. 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).

  6. What is the difference between OFFLINE and ONLINE index rebuild in …

    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 acquired …

  7. 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.

  8. 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?

  9. sql server - How do you check if a certain index exists in a table ...

    Apr 22, 2010 · Something like this: SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE CONSTRAINT_NAME …

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

    May 20, 2009 · Can you create an index on a table variable in SQL Server 2000? i.e.