all groups > sql server programming > august 2007 >
You're in the

sql server programming

group:

Scripting Extended Properties


Scripting Extended Properties Mark Assousa
8/31/2007 7:34:41 PM
sql server programming: I am running on SQL Server 2000 SP4.

I am attempting to generate SQL Script and include extended properties.
When doing so, the extended properties for one table (i.e. Column
Description) are not generated. Extended properties for all other tables
script just fine. I've even gone so far as to script the table without
extended properties, import it into a new database, manually add column
descriptions, and generate script again with "Include extended
properties" checked. No joy.

Re: Scripting Extended Properties Andrew J. Kelly
8/31/2007 8:57:06 PM
Do you get an error? Can you post the DDL for the table? Are you using any
reserved words for any of the object names?

--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


[quoted text, click to view]
Re: Scripting Extended Properties Mark Assousa
9/1/2007 1:16:13 PM
[quoted text, click to view]
No error is generated. I simply get "Scripting was completed
successfully." I don't believe I'm using any reserved words. The only
column names in the table that don't have underscore in them (and thus
*might* be reserved) are common to other tables which don't exhibit the
problem to the best of my knowledge. The DDL is attached. It's bloody
huge. Come to think of it, could the shear size of the table be giving
the script generating logic a problem?

Re: Scripting Extended Properties Andrew J. Kelly
9/1/2007 5:53:00 PM
Yeah my guess is that the size does indeed have something to do with the
issues. Try creating the table (under a diff name) with only a partial list
of columns and see if they all work in smaller pieces. But I would spend my
time on normalizing that table in the first place. That will cause you
nothing but trouble in the long run.

--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


[quoted text, click to view]


--------------------------------------------------------------------------------


[quoted text, click to view]
Re: Scripting Extended Properties Mark Assousa
9/1/2007 9:44:37 PM
[quoted text, click to view]
Apparently, size *does* matter. Splitting the table allowed extended
properties to be generated during the scripting process.

As for normalizing the data and shrinking the table, Andrew, you're
preaching to the choir. I'm just forced to replicate a horrible data
AddThis Social Bookmark Button