• I tweaked both procs to quotename the index column names, and also to replace unix style code to end with vbCrLf;

    same links as below, cna you retry by downloading the latest (again)

    Lowell (10/18/2011)


    wierd, gotta be an issue i have not seen;

    when i scripted your table and index, i get good, clean results.

    can you try the latest sp_GetDDLa to be sure, this is the exact version i used:

    sp_GetDDLa_Latest.txt (Returns Table)

    sp_GetDDL_Latest.txt (Returns varchar(max) )

    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!