About 9,090,000 results
Open links in new tab
  1. 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 …

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

    Jul 6, 2011 · 140 Lets say in the employee table, I have created an index (idx_name) on the emp_name column of the table. Do I need to explicitly specify the index name in select clause …

  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. sql server - IndexOf function in T-SQL - Stack Overflow

    Given an email address column, I need to find the position of the @ sign for substringing. What is the indexof function, for strings in T-SQL? Looking for something that returns the position of a

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

  6. sql - When should I use primary key or index? - Stack Overflow

    May 20, 2010 · When should I use a primary key or an index? What are their differences and which is the best?

  7. sql server - What do Clustered and Non-Clustered index actually …

    With a clustered index the rows are stored physically on the disk in the same order as the index. Therefore, there can be only one clustered index. With a non clustered index there is a second …

  8. How can I quickly detect and resolve SQL Server Index …

    Apr 28, 2017 · Here is a SQL query solution that works in SQL Server 2005 and up, that will let you 1) first find all the indexes that need to be rebuilt or reorganized to reduce fragmentation, …

  9. sql - Rebuild all indexes in a Database - Stack Overflow

    Sep 10, 2015 · I have a very large SQL Server 2008 R2 database (1.5TB) and will be copying some data from column to column within the same table. I've been told that the schema has a …

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