May 17, 2006 #1 icemel MIS Oct 17, 2005 463 US Hi, Does anyone have a script for detecting missing indexes on all tables for a given database? Thanks much
Hi, Does anyone have a script for detecting missing indexes on all tables for a given database? Thanks much
May 17, 2006 #2 gmmastros Programmer Feb 15, 2005 14,909 US That's like asking for a script that shows threads with missing stars. How do you know there's supposed to be a star if it's missing. -George Strong and bitter words indicate a weak cause. - Fortune cookie wisdom Upvote 0 Downvote
That's like asking for a script that shows threads with missing stars. How do you know there's supposed to be a star if it's missing. -George Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
May 17, 2006 1 #3 SQLDenis Programmer Oct 1, 2005 5,575 US SELECT sysobjects.name as TableName FROM sysobjects WHERE type = 'U' AND OBJECTPROPERTY(sysobjects.id , 'TableHasIndex' ) = 0 Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/ Personal Blog:http://otherthingsnow.blogspot.com/ Upvote 0 Downvote
SELECT sysobjects.name as TableName FROM sysobjects WHERE type = 'U' AND OBJECTPROPERTY(sysobjects.id , 'TableHasIndex' ) = 0 Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/ Personal Blog:http://otherthingsnow.blogspot.com/
May 17, 2006 Thread starter #4 icemel MIS Oct 17, 2005 463 US Thank you SQLDenis, I knew there was a way to do this Upvote 0 Downvote