Re: sysdiagrams is marked as user table

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Personally, I think that the diagram objects should be marked as is_ms_shipped = 1, even though they are not installed by default.

I agree...

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/


"Aaron Bertrand [SQL Server MVP]" <ten.xoc@xxxxxxxxxxxxxx> wrote in message news:%234rzuV3$GHA.3380@xxxxxxxxxxxxxxxxxxxxxxx
To wit, as long as you don't mark any of your own objects with the same extended properties:


SELECT o.*
FROM sys.objects o
LEFT OUTER JOIN
sys.extended_properties ep
ON o.[object_id] = ep.major_id
AND ep.class_desc = 'OBJECT_OR_COLUMN'
AND ep.[name] = 'microsoft_database_tools_support'
WHERE
o.is_ms_shipped = 0
AND ep.major_id IS NULL;


Personally, I think that the diagram objects should be marked as is_ms_shipped = 1, even though they are not installed by default.



"Paul Ibison" <Paul.Ibison@xxxxxxxxxxxxx> wrote in message news:eVlIXsz$GHA.1224@xxxxxxxxxxxxxxxxxxxxxxx
Daniel,
SSMS is able to distinguish it as a "pseudo system table" due to an extended property added for this purpose, which you could also use.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com .




.



Relevant Pages

  • Re: Returning a hyperlink in a Stored Procedure
    ... The CAST() function is documented in Books Online, ... >>Tibor Karaszi, SQL Server MVP ... >>> from ClaimInfo c left outer join Transactions t ...
    (microsoft.public.sqlserver.programming)
  • Re: TOP Subselect
    ... can you post something we can reproduce (execute) so we can try ... Tibor Karaszi, SQL Server MVP ... > dbo.EventoPreis2.co_id LEFT OUTER JOIN ...
    (microsoft.public.sqlserver.programming)
  • Re: publication
    ... does sp_helppublication return one or five publications? ... Paul Ibison (SQL Server MVP) ... >> Use refresh in EM on the publications folder and the ...
    (microsoft.public.sqlserver.replication)
  • Re: limited # of dbs?
    ... In BOL under 'maximum capacity specifications' there is ... Paul Ibison (SQL Server MVP) ...
    (microsoft.public.sqlserver.server)
  • RE: Cannot remove replication
    ... (uncheck all boxes). ... > Paul Ibison (SQL Server MVP) ...
    (microsoft.public.sqlserver.server)