Installationsobjekte identifizieren

USE MASTER
GO
SELECT
	CASE OBJECTPROPERTY(id, 'IsMSShipped')
		WHEN 1 THEN 'Bei Installation erzeugt'
		WHEN 0 THEN 'Nicht bei Installation erzeugt'
	END AS [Bei Installation Erzeugt]
	, CAST(name AS CHAR(30)) AS [name]
FROM
	sysobjects 
WHERE
	name = 'sp_helpdb'
OR
	name = 'sp_MBL_SORT'

Bei Installation Erzeugt       name                           
------------------------------ ------------------------------ 
Bei Installation erzeugt       sp_helpdb                     
Nicht bei Installation erzeugt sp_MBL_SORT                   

(2 row(s) affected)

Noch kein Feedback
Einen Kommentar hinterlassen

Ihre E-Mail-Adresse wird nicht auf dieser Seite angezeigt.
SchlechtExzellent
(Zeilenumbrüche werden zu <br />)
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)
Trackback-Adresse für diesen Eintrag

http://www.insidesql.org/blogs/htsrv/trackback.php?tb_id=1254