How to check a SQL Server CE database for indexes?

前端 未结 2 1131
无人共我
无人共我 2021-02-13 20:40

Is there a way to list all SQL Server CE database table indexes, or at least for individual tables?

相关标签:
2条回答
  • 2021-02-13 21:02

    -- Retrieves information about the indexes contained in the database. SELECT * FROM INFORMATION_SCHEMA.INDEXES

    -- Retrieves all the Tables in the database including the System tables. SELECT * FROM INFORMATION_SCHEMA.TABLES

    Arjuna Chiththananda - Retrieving Schema Information of SQL CE Database

    0 讨论(0)
  • 2021-02-13 21:08

    Thank you Arjuna! you pointed me in the right direction..... The following works.

    SELECT 'Y' FROM INFORMATION_SCHEMA.INDEXES
    where table_name = 'PP_JOB_TICKET_LIVE'
    

    and index_name = 'PP_JOB_TICKET_LIVE_PK'

    Thanks so much for your time.

    0 讨论(0)
提交回复
热议问题