How to check a SQL Server CE database for indexes?

放肆的年华 提交于 2019-12-21 03:45:39

问题


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


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/619168/how-to-check-a-sql-server-ce-database-for-indexes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!