Almost everything in scripting is configurable as to whether a result is scripted or skipped;
spend some time reviewing the many scripting options that are in Tools>>Options;
As I remember, scripting of permissions or indexes are not selected by default, so if you want them, you have to select those options before scripting.
Lowell
--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!