This stored procedure will script all indexes, primary keys and foreign keys. It’s useful as a documentation tool and also for being able to generate scripts that can be used while making modifications that require referential integrity to be removed. A full explanation of the switches required to generate the various output options are included in the script.
Updated on 3/4/02 with fixes for a couple of bugs and a minor alteration of the functionality.
Author: John Thorpe
Disclaimer: We hope that the information on these script pages is
valuable to you. Your use of the information contained in these pages,
however, is at your sole risk. All information on these pages is provided
“as -is”, without any warranty, whether express or implied, of its accuracy,
completeness, or fitness for a particular purpose…
Back to Database Journal Home