-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
If you create a table with this:
CREATE TABLE [dbo].[sysblah](
[name] [sysname] NOT NULL,
[principal_id] [int] NOT NULL,
[diagram_id] [int] IDENTITY(1,1) NOT NULL,
[version] [int] NULL,
[definition] [varbinary](max) NULL
)
And then create the extended-property to "hide" it, by making it look like a system-table:
EXEC sys.sp_addextendedproperty @name=N'microsoft_database_tools_support', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'sysblah'
If you then use MSDE (or SMO via API), if you script the entire database (i.e. all objects) . . .
Then . . . you'll notice that the resultant script doesn't contain [dbo].[sysblah].
This seems like a bug. The intent is just to hide the table, not treat it as as "system table".
Weirdly, I've just SMO via C#, and even though you include the table in SelectedObjects, it (i) will NOT create the table but (ii) attempts to create the extended-property, which immediately fails because the table does not exist.
Thanks!
Sean
Metadata
Metadata
Assignees
Labels
No labels