Edit C:\Windows\assembly\tmp\QU23CZLA\Microsoft.SqlServer.SqlEnum.Resources.dll
MZ? ?? ? @ ? ? ? ?!?L?!This program cannot be run in DOS mode. $ PE L ?? ? ! ? ? @ ` ? P K ? ? @ H .text ? ? `.rsrc ? @ @.reloc @ @ B ? H ? ?$ P ? ? ? k <?xml version="1.0"?> <EnumObject type="ErrorLog" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="msdb.dbo.sysmail_event_log er"/> </settings> <properties> <property name="LogID" type="int">er.log_id</property> <property name="EventType" type="sysname">er.event_type</property> <property name="LogDate" type="datetime">er.log_date</property> <property name="Description" type="nvarchar" size="max">er.description</property> <property name="ProcessID" type="int">er.process_id</property> <property name="MailItemID" type="int">er.mailitem_id</property> <property name="AccountID" type="int">er.account_id</property> <property name="LastModifiedDate" type="datetime">er.last_mod_date</property> <property name="LastModifiedUser" type="sysname">er.last_mod_user</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="DatabaseDiagram" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_sp_helpdiagrams" alias="tshd"/> <prefix> create table #tmp_sp_helpdiagrams ([Database] sysname not null, Name sysname not null, ID int not null, Owner sysname null, OwnerID int not null) insert into #tmp_sp_helpdiagrams exec dbo.sp_helpdiagrams </prefix> <postfix> drop table #tmp_sp_helpdiagrams </postfix> </settings> <properties> <property name="Urn" type="nvarchar" size="900"> 'Server[@Name=' + quotename(cast(serverproperty(N'Servername') as sysname),'''') + ']/Database[@Name=' + quotename(db_name(),'''') + ']/DatabaseDiagram[@Name=' + quotename(tshd.Name,'''') + ' and @OwnerID=' + quotename(cast(tshd.OwnerID as nvarchar(30)),'''') + ']' </property> <property name="Name" type="nvarchar" size="256">tshd.Name</property> <property name="DiagramID" type="int" access="Read">tshd.ID</property> <property name="Owner" type="nvarchar" size="256" access="Read">tshd.Owner</property> <property name="OwnerID" type="int" access="Read">tshd.OwnerID</property> </properties> </EnumObject> ? <?xml version="1.0" encoding="utf-8"?> <EnumObject type="NotificationComputedField" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Id" local="NotificationClassId"/> </parent_link> <request_parent_select> <field name="NotificationClassId"/> </request_parent_select> <property_link table="#tmp_computed_field" alias="cf"/> <prefix> CREATE TABLE #tmp_computed_field( ComputedFieldId int, NotificationClassId int, FieldName nvarchar(255), SqlExpression nvarchar(4000), FieldDigestGrouping bit ) INSERT #tmp_computed_field EXEC [SchemaPrefix].NSGetComputedFields </prefix> <postfix> DROP TABLE #tmp_computed_field </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="ID" type="int">cf.ComputedFieldId</property> <property name="NotificationClassId" type="int" hidden="true">cf.NotificationClassId</property> <property name="Name" type="nvarchar" size="255">cf.FieldName</property> <property name="SqlExpression" type="nvarchar" size="4000">cf.SqlExpression</property> <property name="DigestGrouping" type="bit">cf.FieldDigestGrouping</property> </properties> </EnumObject> ? <?xml version="1.0" encoding="utf-8"?> <EnumObject type="NotificationField" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Id" local="NotificationClassId"/> </parent_link> <request_parent_select> <field name="NotificationClassId"/> </request_parent_select> <property_link table="#tmp_notification_field" alias="nf"/> <prefix> CREATE TABLE #tmp_notification_field( NotificationFieldId int, NotificationClassId int, FieldName nvarchar(255), FieldType nvarchar(255), FieldDigestGrouping bit ) INSERT #tmp_notification_field EXEC [SchemaPrefix].NSGetNotificationFields </prefix> <postfix> DROP TABLE #tmp_notification_field </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="ID" type="int">nf.NotificationFieldId</property> <property name="NotificationClassId" type="int" hidden="true">nf.NotificationClassId</property> <property name="Name" type="nvarchar" size="255">nf.FieldName</property> <property name="Type" type="nvarchar" size="255">nf.FieldType</property> <property name="DigestGrouping" type="bit">nf.FieldDigestGrouping</property> </properties> </EnumObject> ? <?xml version="1.0" encoding="utf-8"?> <EnumObject type="EventField" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Id" local="EventClassId"/> </parent_link> <request_parent_select> <field name="EventClassId"/> </request_parent_select> <property_link table="#tmp_event_field" alias="ef"/> <prefix> CREATE TABLE #tmp_event_field( EventFieldId int, EventClassId int, FieldName nvarchar(255), FieldType nvarchar(255), FieldTypeMods nvarchar(255) ) INSERT #tmp_event_field EXEC [SchemaPrefix].NSGetEventFields </prefix> <postfix> DROP TABLE #tmp_event_field </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="ID" type="int">ef.EventFieldId</property> <property name="EventClassId" type="int" hidden="true">ef.EventClassId</property> <property name="Name" type="nvarchar" size="255">ef.FieldName</property> <property name="Type" type="nvarchar" size="255">ef.FieldType</property> <property name="TypeModifier" type="nvarchar" size="255">ef.FieldTypeMods</property> </properties> </EnumObject> ? <?xml version="1.0" encoding="utf-8"?> <EnumObject type="SubscriptionChronicle" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Id" local="SubscriptionClassId"/> </parent_link> <request_parent_select> <field name="SubscriptionClassId"/> </request_parent_select> <property_link table="#tmp_subscription_chronicle" alias="sch"/> <prefix> CREATE TABLE #tmp_subscription_chronicle( SubscriptionChronicleId int, ChronicleName nvarchar(255), SubscriptionClassId int, SqlStatementsXml nvarchar(max) ) INSERT #tmp_subscription_chronicle EXEC [SchemaPrefix].NSGetSubscriptionChronicles </prefix> <postfix> DROP TABLE #tmp_subscription_chronicle </postfix> <post_process fields="#SqlStatements#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessXmlToList" triggered_fields="#SqlStatementsXml#"/> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Id" type="int" hidden="true">sch.SubscriptionChronicleId</property> <property name="SubscriptionClassId" type="int" hidden="true">sch.SubscriptionClassId</property> <property name="Name" type="nvarchar" size="255">sch.ChronicleName</property> <property name="SqlStatements" type="int" report_type2="System.Object">null</property> <property name="SqlStatementsXml" type="nvarchar" size="max" hidden="true">sch.SqlStatementsXml</property> </properties> </EnumObject> 9 <?xml version="1.0" encoding="utf-8"?> <EnumObject type="SubscriptionConditionScheduledRule" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Id" local="SubscriptionClassId"/> </parent_link> <request_parent_select> <field name="SubscriptionClassId"/> </request_parent_select> <property_link table="#tmp_condition_scheduled_rule" alias="csr"/> <prefix> CREATE TABLE #tmp_condition_scheduled_rule( RuleId int, RuleName nvarchar(255), RuleType tinyint, Action ntext, ActionTimeout int, EventClassId int, SubscriptionClassId int, EventClassName nvarchar(255), InputTypeName nvarchar (128), InputTypeSchema nvarchar (128), SqlUserName nvarchar (128), SqlLoginName nvarchar (128) ) INSERT #tmp_condition_scheduled_rule EXEC [SchemaPrefix].NSGetRulesOnType @RuleType = 4 </prefix> <postfix> DROP TABLE #tmp_condition_scheduled_rule </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Id" type="int" hidden="true">csr.RuleId</property> <property name="Name" type="nvarchar" size="255">csr.RuleName</property> <property name="SqlExpression" type="ntext">csr.Action</property> <property name="ActionTimeout" type="int">csr.ActionTimeout</property> <property name="SubscriptionClassId" type="int" hidden="true">csr.SubscriptionClassId</property> <property name="InputTypeName" type="nvarchar" size="255">csr.InputTypeName</property> <property name="InputTypeSchema" type="nvarchar" size="255">csr.InputTypeSchema</property> <property name="SqlUserName" type="nvarchar" size="255">csr.SqlUserName</property> <property name="SqlLoginName" type="nvarchar" size="255">csr.SqlLoginName</property> </properties> </EnumObject> ) <?xml version="1.0" encoding="utf-8"?> <EnumObject type="SubscriptionScheduledRule" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Id" local="SubscriptionClassId"/> </parent_link> <request_parent_select> <field name="SubscriptionClassId"/> </request_parent_select> <property_link table="#tmp_subscription_scheduled_rule" alias="ssr"/> <prefix> CREATE TABLE #tmp_subscription_scheduled_rule( RuleId int, RuleName nvarchar(255), RuleType tinyint, Action ntext, ActionTimeout int, EventClassId int, SubscriptionClassId int, EventClassName nvarchar(255), InputTypeName nvarchar (128), InputTypeSchema nvarchar (128), SqlUserName nvarchar (128), SqlLoginName nvarchar (128) ) INSERT #tmp_subscription_scheduled_rule EXEC [SchemaPrefix].NSGetRulesOnType @RuleType = 2 </prefix> <postfix> DROP TABLE #tmp_subscription_scheduled_rule </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Id" type="int" hidden="true">ssr.RuleId</property> <property name="Name" type="nvarchar" size="255">ssr.RuleName</property> <property name="SubscriptionClassId" type="int" hidden="true">ssr.SubscriptionClassId</property> <property name="Action" type="ntext">ssr.Action</property> <property name="ActionTimeout" type="int">ssr.ActionTimeout</property> <property name="EventClassId" type="int" hidden="true">ssr.EventClassId</property> </properties> </EnumObject> ? <?xml version="1.0" encoding="utf-8"?> <EnumObject type="SubscriptionConditionEventRule" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Id" local="SubscriptionClassId"/> </parent_link> <request_parent_select> <field name="SubscriptionClassId"/> </request_parent_select> <property_link table="#tmp_condition_event_rule" alias="cer"/> <prefix> CREATE TABLE #tmp_condition_event_rule( RuleId int, RuleName nvarchar(255), RuleType tinyint, Action ntext, ActionTimeout int, EventClassId int, SubscriptionClassId int, EventClassName nvarchar(255), InputTypeName nvarchar (128), InputTypeSchema nvarchar (128), SqlUserName nvarchar (128), SqlLoginName nvarchar (128) ) INSERT #tmp_condition_event_rule EXEC [SchemaPrefix].NSGetRulesOnType @RuleType = 3 </prefix> <postfix> DROP TABLE #tmp_condition_event_rule </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Id" type="int" hidden="true">cer.RuleId</property> <property name="Name" type="nvarchar" size="255">cer.RuleName</property> <property name="SqlExpression" type="ntext">cer.Action</property> <property name="ActionTimeout" type="int">cer.ActionTimeout</property> <property name="EventClassName" type="nvarchar" size="255">cer.EventClassName</property> <property name="SubscriptionClassId" type="int" hidden="true">cer.SubscriptionClassId</property> <property name="InputTypeName" type="nvarchar" size="255">cer.InputTypeName</property> <property name="InputTypeSchema" type="nvarchar" size="255">cer.InputTypeSchema</property> <property name="SqlUserName" type="nvarchar" size="255">cer.SqlUserName</property> <property name="SqlLoginName" type="nvarchar" size="255">cer.SqlLoginName</property> </properties> </EnumObject> <?xml version="1.0" encoding="utf-8"?> <EnumObject type="SubscriptionEventRule" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Id" local="SubscriptionClassId"/> </parent_link> <request_parent_select> <field name="SubscriptionClassId"/> </request_parent_select> <property_link table="#tmp_subscription_event_rule" alias="ser"/> <prefix> CREATE TABLE #tmp_subscription_event_rule( RuleId int, RuleName nvarchar(255), RuleType tinyint, Action ntext, ActionTimeout int, EventClassId int, SubscriptionClassId int, EventClassName nvarchar(255), InputTypeName nvarchar (128), InputTypeSchema nvarchar (128), SqlUserName nvarchar (128), SqlLoginName nvarchar (128) ) INSERT #tmp_subscription_event_rule EXEC [SchemaPrefix].NSGetRulesOnType @RuleType = 1 </prefix> <postfix> DROP TABLE #tmp_subscription_event_rule </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Id" type="int" hidden="true">ser.RuleId</property> <property name="Name" type="nvarchar" size="255">ser.RuleName</property> <property name="Action" type="ntext">ser.Action</property> <property name="ActionTimeout" type="int">ser.ActionTimeout</property> <property name="EventClassName" type="nvarchar" size="255">ser.EventClassName</property> <property name="SubscriptionClassId" type="int" hidden="true">ser.SubscriptionClassId</property> </properties> </EnumObject> ? <?xml version="1.0" encoding="utf-8"?> <EnumObject type="SubscriptionField" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Id" local="SubscriptionClassId"/> </parent_link> <request_parent_select> <field name="SubscriptionClassId"/> </request_parent_select> <property_link table="#tmp_subscription_field" alias="sf"/> <prefix> CREATE TABLE #tmp_subscription_field( SubscriptionFieldId int, SubscriptionClassId int, FieldName nvarchar(255), FieldType nvarchar(255), FieldTypeMods nvarchar(255) ) INSERT #tmp_subscription_field EXEC [SchemaPrefix].NSGetSubscriptionFields </prefix> <postfix> DROP TABLE #tmp_subscription_field </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="ID" type="int">sf.SubscriptionFieldId</property> <property name="SubscriptionClassId" type="int" hidden="true">sf.SubscriptionClassId</property> <property name="Name" type="nvarchar" size="255">sf.FieldName</property> <property name="Type" type="nvarchar" size="255">sf.FieldType</property> <property name="TypeModifier" type="nvarchar" size="255">sf.FieldTypeMods</property> </properties> </EnumObject> <?xml version="1.0" encoding="utf-8"?> <EnumObject type="SubscriptionClass" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_subscription_class" alias="sc"/> <prefix> CREATE TABLE #tmp_subscription_class( SubscriptionClassId int, SubscriptionClassName nvarchar(255), FileGroup nvarchar(128), IndexSqlStatementsXml nvarchar(max) ) INSERT #tmp_subscription_class EXEC [SchemaPrefix].NSGetSubscriptionClasses </prefix> <postfix> DROP TABLE #tmp_subscription_class </postfix> <post_process fields="#IndexSqlStatements#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessXmlToList" triggered_fields="#IndexSqlStatementsXml#"/> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Id" type="int" hidden="true">sc.SubscriptionClassId</property> <property name="Name" type="nvarchar" size="255">sc.SubscriptionClassName</property> <property name="FileGroup" type="nvarchar" size="128">sc.FileGroup</property> <property name="IndexSqlStatements" type="int" report_type2="System.Object">null</property> <property name="IndexSqlStatementsXml" type="nvarchar" size="max" hidden="true">sc.IndexSqlStatementsXml</property> </properties> </EnumObject> - <?xml version="1.0" encoding="utf-8"?> <EnumObject type="ProtocolField" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Id" local="NotificationClassProtocolId"/> </parent_link> <request_parent_select> <field name="NotificationClassProtocolId"/> </request_parent_select> <property_link table="#tmp_protocol_field" alias="pf"/> <prefix> CREATE TABLE #tmp_protocol_field( ProtocolFieldId int, NotificationClassProtocolId int, FieldName nvarchar(255), FieldReference nvarchar(255), SqlExpression nvarchar(4000) ) INSERT #tmp_protocol_field EXEC [SchemaPrefix].NSGetProtocolFields </prefix> <postfix> DROP TABLE #tmp_protocol_field </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="255">pf.FieldName</property> <property name="ID" type="int">pf.ProtocolFieldId</property> <property name="NotificationClassProtocolId" type="int" hidden="true">pf.NotificationClassProtocolId</property> <property name="SqlExpression" type="nvarchar" size="4000">pf.SqlExpression</property> <property name="FieldReference" type="nvarchar" size="255">pf.FieldReference</property> </properties> </EnumObject> ? <?xml version="1.0" encoding="utf-8"?> <EnumObject type="ProtocolRetrySchedule" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Id" local="NotificationClassProtocolId"/> </parent_link> <request_parent_select> <field name="NotificationClassProtocolId"/> </request_parent_select> <property_link table="#tmp_protocol_retry_schedule" alias="prs"/> <prefix> CREATE TABLE #tmp_protocol_retry_schedule( ProtocolRetryScheduleId int, NotificationClassProtocolId int, IntervalOrdinal tinyint, Interval int ) INSERT #tmp_protocol_retry_schedule EXEC [SchemaPrefix].NSGetProtocolRetrySchedules </prefix> <postfix> DROP TABLE #tmp_protocol_retry_schedule </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="sysname" cast="true">prs.ProtocolRetryScheduleId</property> <property name="NotificationClassProtocolId" type="int" hidden="true">prs.NotificationClassProtocolId</property> <property name="Interval" type="int">prs.Interval</property> <property name="ID" type="tinyint">prs.IntervalOrdinal</property> </properties> </EnumObject> ? <?xml version="1.0" encoding="utf-8"?> <EnumObject type="NotificationClassProtocol" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Id" local="NotificationClassId"/> </parent_link> <request_parent_select> <field name="NotificationClassId"/> </request_parent_select> <property_link table="#tmp_protocols" alias="p"/> <prefix> CREATE TABLE #tmp_protocols( NotificationClassProtocolId int, NotificationClassProtocolName nvarchar(255), NotificationClassId int, FailureEventLogInterval int, FailuresBeforeEventLog int, FailuresBeforeAbort int, MulticastRecipientLimit int, WorkItemTimeout int ) INSERT #tmp_protocols EXEC [SchemaPrefix].NSGetNotificationClassProtocols </prefix> <postfix> DROP TABLE #tmp_protocols </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="255">p.NotificationClassProtocolName</property> <property name="Id" type="int">p.NotificationClassProtocolId</property> <property name="NotificationClassId" type="int" hidden="true">p.NotificationClassId</property> <property name="FailureEventLogInterval" type="int">p.FailureEventLogInterval</property> <property name="FailuresBeforeEventLog" type="int">p.FailuresBeforeEventLog</property> <property name="FailuresBeforeAbort" type="int">p.FailuresBeforeAbort</property> <property name="MulticastRecipientLimit" type="int">p.MulticastRecipientLimit</property> <property name="WorkItemTimeout" type="int">p.WorkItemTimeout</property> </properties> </EnumObject> ? <?xml version="1.0" encoding="utf-8"?> <EnumObject type="ContentFormatterArgument" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Id" local="ContentFormatterId"/> </parent_link> <request_parent_select> <field name="ContentFormatterId"/> </request_parent_select> <property_link table="#tmp_content_formatter_argument" alias="cfa"/> <prefix> CREATE TABLE #tmp_content_formatter_argument( ContentFormatterArgumentId int, ContentFormatterId int, ArgumentName nvarchar(255), ArgumentValue nvarchar(4000) ) INSERT #tmp_content_formatter_argument EXEC [SchemaPrefix].NSGetContentFormatterArguments </prefix> <postfix> DROP TABLE #tmp_content_formatter_argument </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="255">cfa.ArgumentName</property> <property name="Value" type="nvarchar" size="4000">cfa.ArgumentValue</property> <property name="Id" type="int" hidden="true">cfa.ContentFormatterArgumentId</property> <property name="ContentFormatterId" type="int" hidden="true">cfa.ContentFormatterId</property> </properties> </EnumObject> ? <?xml version="1.0" encoding="utf-8"?> <EnumObject type="ContentFormatter" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Id" local="NotificationClassId"/> </parent_link> <request_parent_select> <field name="NotificationClassId"/> </request_parent_select> <property_link table="#tmp_content_formatter" alias="cf"/> <prefix> CREATE TABLE #tmp_content_formatter( ContentFormatterId int, NotificationClassId int, ClassName nvarchar(255), AssemblyName nvarchar(max) ) INSERT #tmp_content_formatter EXEC [SchemaPrefix].NSGetContentFormatter </prefix> <postfix> DROP TABLE #tmp_content_formatter </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="sysname" cast="true">cf.ClassName</property> <property name="Id" type="int" hidden="true">cf.ContentFormatterId</property> <property name="AssemblyName" type="nvarchar" size="260">cf.AssemblyName</property> <property name="NotificationClassId" type="int" hidden="true">cf.NotificationClassId</property> </properties> </EnumObject> l <?xml version="1.0" encoding="utf-8"?> <EnumObject type="NotificationClass" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_notification_class" alias="nc"/> <prefix> CREATE TABLE #tmp_notification_class( NotificationClassId int, NotificationClassName nvarchar(255), DigestDelivery bit, MulticastDelivery bit, ExpirationAge int, FileGroup nvarchar(128), NotificationBatchSize int, ContentFormatterId int, ClassName nvarchar(255), AssemblyName nvarchar (260) ) INSERT #tmp_notification_class EXEC [SchemaPrefix].NSGetNotificationClasses </prefix> <postfix> DROP TABLE #tmp_notification_class </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="255">nc.NotificationClassName</property> <property name="Id" type="int" hidden="true">nc.NotificationClassId</property> <property name="DigestDelivery" type="bit">nc.DigestDelivery</property> <property name="MulticastDelivery" type="bit">nc.MulticastDelivery</property> <property name="ExpirationAge" type="int">nc.ExpirationAge</property> <property name="NotificationBatchSize" type="int">nc.NotificationBatchSize</property> <property name="FileGroup" type="nvarchar" size="128">nc.FileGroup</property> <property name="ContentFormatterId" type="int">nc.ContentFormatterId</property> <property name="ClassName" type="nvarchar" size="255">nc.ClassName</property> <property name="AssemblyName" type="nvarchar" size="260">nc.AssemblyName</property> </properties> </EnumObject> ? <?xml version="1.0" encoding="utf-8"?> <EnumObject type="HostedEventProviderArgument" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Id" local="ProviderId"/> </parent_link> <request_parent_select> <field name="ProviderId"/> </request_parent_select> <property_link table="#tmp_hosted_event_provider_argument" alias="hepa"/> <prefix> CREATE TABLE #tmp_hosted_event_provider_argument( ProviderArgumentId int, ProviderId int, ArgumentName nvarchar(255), ArgumentValue nvarchar(4000) ) INSERT #tmp_hosted_event_provider_argument EXEC [SchemaPrefix].NSGetProviderArguments </prefix> <postfix> DROP TABLE #tmp_hosted_event_provider_argument </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="255">hepa.ArgumentName</property> <property name="Id" type="int" hidden="true">hepa.ProviderArgumentId</property> <property name="ProviderId" type="int" hidden="true">hepa.ProviderId</property> <property name="Value" type="nvarchar" size="4000">hepa.ArgumentValue</property> </properties> </EnumObject> ? <?xml version="1.0" encoding="utf-8"?> <EnumObject type="HostedEventProvider" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_hosted_event_provider" alias="hep"/> <prefix> CREATE TABLE #tmp_hosted_event_provider( ProviderId int, ProviderName nvarchar(255), ProviderClassName nvarchar(255), AssemblyName nvarchar(260), SystemName nvarchar(255), StartTime datetime, Interval int, Timeout int, ActivationState tinyint ) INSERT #tmp_hosted_event_provider EXEC [SchemaPrefix].NSGetProviders 'HostedOnly' </prefix> <postfix> DROP TABLE #tmp_hosted_event_provider </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="255">hep.ProviderName</property> <property name="Id" type="int">hep.ProviderId</property> <property name="ClassName" type="nvarchar" size="255">hep.ProviderClassName</property> <property name="AssemblyName" type="nvarchar" size="260">hep.AssemblyName</property> <property name="SystemName" type="nvarchar" size="255">hep.SystemName</property> <property name="StartTime" type="datetime">hep.StartTime</property> <property name="Interval" type="int">hep.Interval</property> <property name="Timeout" type="int">hep.Timeout</property> <property name="ActivationState" type="tinyint" report_type="NSActivationState" access="Read">hep.ActivationState</property> </properties> </EnumObject> ! <?xml version="1.0" encoding="utf-8"?> <EnumObject type="NonHostedEventProvider" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_nh_event_provider" alias="nhep"/> <prefix> CREATE TABLE #tmp_nh_event_provider( ProviderId int, ProviderName nvarchar(255), ProviderClassName nvarchar(255), AssemblyName nvarchar(260), SystemName nvarchar(255), StartTime datetime, Interval int, Timeout int, ActivationState tinyint ) INSERT #tmp_nh_event_provider EXEC [SchemaPrefix].NSGetProviders 'NonHostedOnly' </prefix> <postfix> DROP TABLE #tmp_nh_event_provider </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="255">nhep.ProviderName</property> <property name="Id" type="int">nhep.ProviderId</property> <property name="ActivationState" type="tinyint" report_type="NSActivationState" access="Read">nhep.ActivationState</property> </properties> </EnumObject> ? <?xml version="1.0" encoding="utf-8"?> <EnumObject type="EventChronicleRule" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Id" local="EventClassId"/> </parent_link> <request_parent_select> <field name="EventClassId"/> </request_parent_select> <property_link table="#tmp_event_chronicle_rule" alias="ecr"/> <prefix> CREATE TABLE #tmp_event_chronicle_rule( RuleId int, RuleName nvarchar(255), RuleType tinyint, Action ntext, ActionTimeout int, EventClassId int, SubscriptionClassId int, EventClassName nvarchar(255), InputTypeName nvarchar (128), InputTypeSchema nvarchar (128), SqlUserName nvarchar (128), SqlLoginName nvarchar (128) ) INSERT #tmp_event_chronicle_rule EXEC [SchemaPrefix].NSGetRulesOnType @RuleType = 0 </prefix> <postfix> DROP TABLE #tmp_event_chronicle_rule </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Id" type="int" hidden="true">ecr.RuleId</property> <property name="Name" type="nvarchar" size="255">ecr.RuleName</property> <property name="SubscriptionClassId" type="int" hidden="true">ecr.SubscriptionClassId</property> <property name="Action" type="ntext">ecr.Action</property> <property name="ActionTimeout" type="int">ecr.ActionTimeout</property> <property name="EventClassId" type="int" hidden="true">ecr.EventClassId</property> </properties> </EnumObject> r <?xml version="1.0" encoding="utf-8"?> <EnumObject type="EventChronicle" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Id" local="EventId"/> </parent_link> <request_parent_select> <field name="Id"/> </request_parent_select> <property_link table="#tmp_event_chronicle" alias="echn"/> <prefix> CREATE TABLE #tmp_event_chronicle( EventChronicleId int, ChronicleName nvarchar(255), EventClassId int, SqlStatementsXml nvarchar(max) ) INSERT #tmp_event_chronicle EXEC [SchemaPrefix].NSGetEventChronicles </prefix> <postfix> DROP TABLE #tmp_event_chronicle </postfix> <post_process fields="#SqlStatements#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessXmlToList" triggered_fields="#SqlStatementsXml#"/> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="255">echn.ChronicleName</property> <property name="Id" type="int" hidden="true">echn.EventChronicleId</property> <property name="EventId" type="int" hidden="true">echn.EventClassId</property> <property name="SqlStatements" type="int" report_type2="System.Object">null</property> <property name="SqlStatementsXml" type="nvarchar" size="max" hidden="true">echn.SqlStatementsXml</property> </properties> </EnumObject> ? <?xml version="1.0" encoding="utf-8"?> <EnumObject type="EventClass" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_event_class" alias="evt"/> <prefix> CREATE TABLE #tmp_event_class( EventClassId int, EventClassName nvarchar(255), FileGroup nvarchar(128), IndexSqlStatementsXml nvarchar(max), RuleId int, RuleName nvarchar(255), RuleType tinyint, Action ntext, ActionTimeout int ) INSERT #tmp_event_class EXEC [SchemaPrefix].NSGetEventClassesWithSqlStatements </prefix> <postfix> DROP TABLE #tmp_event_class </postfix> <post_process fields="#IndexSqlStatements#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessXmlToList" triggered_fields="#IndexSqlStatementsXml#"/> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="255">evt.EventClassName</property> <property name="FileGroup" type="nvarchar" size="128">evt.FileGroup</property> <property name="Id" type="int" hidden="true">evt.EventClassId</property> <property name="IndexSqlStatements" type="int" report_type2="System.Object">null</property> <property name="IndexSqlStatementsXml" type="nvarchar" size="max" hidden="true">evt.IndexSqlStatementsXml</property> <property name="RuleId" type="int">evt.RuleId</property> <property name="RuleName" type="nvarchar" size="255">evt.RuleName</property> <property name="RuleType" type="tinyint">evt.RuleType</property> <property name="Action" type="ntext">evt.Action</property> <property name="ActionTimeout" type="int">evt.ActionTimeout</property> </properties> </EnumObject> ? <?xml version="1.0" encoding="utf-8"?> <EnumObject type="Distributor" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_distributors" alias="dds"/> <prefix> CREATE TABLE #tmp_distributors( DistributorId int, DistributorName nvarchar(255), SystemName nvarchar(255), ThreadPoolSize int, QuantumDuration int, ActivationState tinyint ) INSERT #tmp_distributors EXEC [SchemaPrefix].NSGetDistributors </prefix> <postfix> DROP TABLE #tmp_distributors </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="256">dds.DistributorName</property> <property name="Id" type="int">dds.DistributorId</property> <property name="SystemName" type="nvarchar" size="256">dds.SystemName</property> <property name="ThreadPoolSize" type="int">dds.ThreadPoolSize</property> <property name="QuantumDuration" type="int">dds.QuantumDuration</property> <property name="ActivationState" type="tinyint" report_type="NSActivationState" access="Read">dds.ActivationState</property> </properties> </EnumObject> n <?xml version="1.0" encoding="utf-8"?> <EnumObject type="VacuumSchedule" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_vacuum_schedule" alias="dvs"/> <prefix> CREATE TABLE #tmp_vacuum_schedule( VacuumScheduleId int, StartTime datetime, Interval int ) INSERT #tmp_vacuum_schedule EXEC [SchemaPrefix].NSGetVacuumSchedule </prefix> <postfix> DROP TABLE #tmp_vacuum_schedule </postfix> </settings> <properties> <property name="Urn" type="nvarchar" size="600"> <link_multiple no="3" expression="{0} + '/{2}[@Id=''' + CAST({1} AS sysname) + ''']'"> <link_field type="parent" field="Urn"/> <link_field type="local" field="Id"/> <link_field field="NType"/> </link_multiple> </property> <property name="Name" type="sysname" cast="true">dvs.VacuumScheduleId</property> <property name="Id" type="int" hidden="true">dvs.VacuumScheduleId</property> <property name="StartTime" type="datetime">dvs.StartTime</property> <property name="Interval" type="int">dvs.Interval</property> </properties> </EnumObject> , <?xml version="1.0" encoding="utf-8"?> <EnumObject type="Application" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_application_details" alias="dad"/> <prefix> CREATE TABLE #tmp_application_names( ApplicationName nvarchar(max), ApplicationDb nvarchar(128), AppSchemaName nvarchar (128), DropOnDelete bit, ApplicationEnabled bit, SubscribersEnabled bit, SubscriptionsEnabled bit, EventProviderEnabled bit, GeneratorEnabled bit, DistributorEnabled bit, ) INSERT #tmp_application_names EXEC [SchemaPrefix].NSGetApplicationNames CREATE TABLE #tmp_local_application_details( ApplicationName nvarchar(max), BaseDirectoryPath nvarchar(260), ApplicationDefinitionFilePath nvarchar(260), QuantumDuration int, ChronicleQuantumLimit int, SubscriptionQuantumLimit int, ProcessEventsInOrder bit, RetentionAge int, PerformanceQueryInterval int, EventThrottle int, SubscriptionThrottle int, NotificationThrottle int, LogBeforeDeliveryAttempts bit, LogStatusInfo bit, LogNotificationText bit, ) CREATE TABLE #tmp_application_version( ApplicationName nvarchar(max), ApplicationDatabase nvarchar (255), SchemaName nvarchar (255), VersionId int, UpdateDescription nvarchar(255), UpdateStarted datetime, UpdateFinished datetime, UpdateUserId nvarchar(255), NSEdition nvarchar(255), NSVersionMajor int, NSVersionMinor int, NSVersionBuild int, NSVersionRevision int, ConfigVersionMajor int, ConfigVersionMinor int, ConfigVersionBuild int, ConfigVersionRevision int, AdfVersionMajor int, AdfVersionMinor int, AdfVersionBuild int, AdfVersionRevision int ) CREATE TABLE #tmp_generator_details( ApplicationName nvarchar(max), GeneratorId int, GeneratorName nvarchar(255), SystemName nvarchar(255), PreviousFiringTime datetime, ThreadPoolSize int, ActivationState tinyint ) DECLARE @dbname7 sysname DECLARE @AppSchemaName nvarchar(128) DECLARE @sql7 NVARCHAR(MAX) DECLARE applications_cursor CURSOR FOR SELECT ApplicationDb, AppSchemaName FROM #tmp_application_names FOR READ ONLY OPEN applications_cursor FETCH applications_cursor into @dbname7, @AppSchemaName WHILE @@FETCH_STATUS >= 0 BEGIN SET @sql7 = CONVERT (NVARCHAR (MAX), N' USE ' + quotename(@dbname7)) SET @sql7 = @sql7 + CONVERT (NVARCHAR (MAX), N' INSERT #tmp_local_application_details EXEC ' + quotename (@AppSchemaName) + N'.NSGetApplicationConfig') SET @sql7 = @sql7 + CONVERT (NVARCHAR (MAX), N' INSERT #tmp_application_version EXEC ' + quotename (@AppSchemaName) + N'.NSGetVersionInfo') SET @sql7 = @sql7 + CONVERT (NVARCHAR (MAX), N' INSERT #tmp_generator_details EXEC ' + quotename (@AppSchemaName) + N'.NSGetGenerators') EXEC (@sql7) FETCH applications_cursor into @dbname7, @AppSchemaName END CLOSE applications_cursor DEALLOCATE applications_cursor CREATE TABLE #tmp_application_details( applicationdb nvarchar(max), name nvarchar(max), AppSchemaName nvarchar(128), ApplicationEnabled bit, SubscribersEnabled bit, SubscriptionsEnabled bit, EventProviderEnabled bit, GeneratorEnabled bit, DistributorEnabled bit, BaseDirectoryPath nvarchar(260), ApplicationDefinitionFilePath nvarchar(260), QuantumDuration int, ChronicleQuantumLimit int, SubscriptionQuantumLimit int, ProcessEventsInOrder bit, RetentionAge int, PerformanceQueryInterval int, EventThrottle int, SubscriptionThrottle int, NotificationThrottle int, LogBeforeDeliveryAttempts bit, LogStatusInfo bit, LogNotificationText bit, NSVersionMajor int, NSVersionMinor int, NSVersionBuild int, NSVersionRevision int, AdfVersionMajor int, AdfVersionMinor int, AdfVersionBuild int, AdfVersionRevision int, GeneratorId int, GeneratorName nvarchar(255) ) DECLARE @ApplicationName nvarchar (128) DECLARE application_details_cursor CURSOR FOR SELECT ApplicationName, ApplicationDb FROM #tmp_application_names FOR READ ONLY OPEN application_details_cursor FETCH application_details_cursor into @ApplicationName, @dbname7 WHILE @@FETCH_STATUS >= 0 BEGIN SET @sql7 = CONVERT (NVARCHAR (MAX), N' USE ' + quotename(@dbname7)) SET @sql7 = @sql7 + CONVERT (NVARCHAR (MAX), N' INSERT #tmp_application_details') SET @sql7 = @sql7 + CONVERT (NVARCHAR (MAX), N' SELECT app.ApplicationDb, app.ApplicationName, app.AppSchemaName, ') SET @sql7 = @sql7 + CONVERT (NVARCHAR (MAX), N' app.ApplicationEnabled, app.SubscribersEnabled, app.SubscriptionsEnabled,') SET @sql7 = @sql7 + CONVERT (NVARCHAR (MAX), N' app.EventProviderEnabled, app.GeneratorEnabled, app.DistributorEnabled,') SET @sql7 = @sql7 + CONVERT (NVARCHAR (MAX), N' cfg.BaseDirectoryPath, cfg.ApplicationDefinitionFilePath,') SET @sql7 = @sql7 + CONVERT (NVARCHAR (MAX), N' cfg.QuantumDuration, cfg.ChronicleQuantumLimit, cfg.SubscriptionQuantumLimit,') SET @sql7 = @sql7 + CONVERT (NVARCHAR (MAX), N' cfg.ProcessEventsInOrder, cfg.RetentionAge, cfg.PerformanceQueryInterval, cfg.EventThrottle, cfg.SubscriptionThrottle,') SET @sql7 = @sql7 + CONVERT (NVARCHAR (MAX), N' cfg.NotificationThrottle, cfg.LogBeforeDeliveryAttempts, cfg.LogStatusInfo, cfg.LogNotificationText, ') SET @sql7 = @sql7 + CONVERT (NVARCHAR (MAX), N' ver.NSVersionMajor, ver.NSVersionMinor, ver.NSVersionBuild, ver.NSVersionRevision,') SET @sql7 = @sql7 + CONVERT (NVARCHAR (MAX), N' ver.AdfVersionMajor, ver.AdfVersionMinor, ver.AdfVersionBuild, ver.AdfVersionRevision,') SET @sql7 = @sql7 + CONVERT (NVARCHAR (MAX), N' gen.GeneratorId, gen.GeneratorName') SET @sql7 = @sql7 + CONVERT (NVARCHAR (MAX), N' FROM #tmp_local_application_details as cfg, #tmp_application_version as ver, #tmp_generator_details as gen, #tmp_application_names as app') SET @sql7 = @sql7 + CONVERT (NVARCHAR (MAX), N' WHERE app.ApplicationName = N' + quotename (@ApplicationName, N'''')) SET @sql7 = @sql7 + CONVERT (NVARCHAR (MAX), N' AND cfg.ApplicationName = N' + quotename (@ApplicationName, N'''')) SET @sql7 = @sql7 + CONVERT (NVARCHAR (MAX), N' AND ver.ApplicationName = N' + quotename (@ApplicationName, N'''')) SET @sql7 = @sql7 + CONVERT (NVARCHAR (MAX), N' AND gen.ApplicationName = N' + quotename (@ApplicationName, N'''')) EXEC (@sql7) FETCH application_details_cursor into @ApplicationName, @dbname7 END CLOSE application_details_cursor DEALLOCATE application_details_cursor </prefix> <postfix> DROP TABLE #tmp_application_details DROP TABLE #tmp_generator_details DROP TABLE #tmp_application_version DROP TABLE #tmp_local_application_details DROP TABLE #tmp_application_names </postfix> <post_process fields="#Version#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessVersion" triggered_fields="#NSVersionMajor#NSVersionMinor#NSVersionBuild#NSVersionRevision#"/> <post_process fields="#ApplicationDefinitionFileVersion#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessVersion" triggered_fields="#AdfVersionMajor#AdfVersionMinor#AdfVersionBuild#AdfVersionRevision#"/> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="sysname">dad.name</property> <property name="DatabaseName" type="sysname">dad.applicationdb</property> <property name="SchemaName" type="nvarchar" size="128">dad.AppSchemaName</property> <property name="ApplicationDatabase" type="sysname" hidden="true">dad.applicationdb</property> <property name="InstanceName" type="nvarchar" size="128" hidden="true">dad.InstanceName</property> <property name="Version" type="int" access="Read" report_type2="System.Version">null</property> <property name="NSVersionMajor" type="int" access="Read" hidden="true">dad.NSVersionMajor</property> <property name="NSVersionMinor" type="int" access="Read" hidden="true">dad.NSVersionMinor</property> <property name="NSVersionBuild" type="int" access="Read" hidden="true">dad.NSVersionBuild</property> <property name="NSVersionRevision" type="int" access="Read" hidden="true">dad.NSVersionRevision</property> <property name="ApplicationDefinitionFileVersion" type="int" report_type2="System.Version">null</property> <property name="AdfVersionMajor" type="int" access="Read" hidden="true">dad.AdfVersionMajor</property> <property name="AdfVersionMinor" type="int" access="Read" hidden="true">dad.AdfVersionMinor</property> <property name="AdfVersionBuild" type="int" access="Read" hidden="true">dad.AdfVersionBuild</property> <property name="AdfVersionRevision" type="int" access="Read" hidden="true">dad.AdfVersionRevision</property> <property name="BaseDirectoryPath" type="nvarchar" size="260">dad.BaseDirectoryPath</property> <property name="ApplicationDefinitionFilePath" type="nvarchar" size="260">dad.ApplicationDefinitionFilePath</property> <property name="QuantumDuration" type="int">dad.QuantumDuration</property> <property name="ChronicleQuantumLimit" type="int">dad.ChronicleQuantumLimit</property> <property name="SubscriptionQuantumLimit" type="int">dad.SubscriptionQuantumLimit</property> <property name="ProcessEventsInOrder" type="bit">dad.ProcessEventsInOrder</property> <property name="PerformanceQueryInterval" type="int">dad.PerformanceQueryInterval</property> <property name="EventThrottle" type="int">dad.EventThrottle</property> <property name="SubscriptionThrottle" type="int">dad.SubscriptionThrottle</property> <property name="NotificationThrottle" type="int">dad.NotificationThrottle</property> <property name="LogBeforeDeliveryAttempts" type="bit">dad.LogBeforeDeliveryAttempts</property> <property name="LogStatusInfo" type="bit">dad.LogStatusInfo</property> <property name="LogNotificationText" type="bit">dad.LogNotificationText</property> <property name="VacuumRetentionAge" type="int">dad.RetentionAge</property> <property name="ApplicationEnabled" type="bit" access="Read">dad.ApplicationEnabled</property> <property name="SubscribersEnabled" type="bit" access="Read">dad.SubscribersEnabled</property> <property name="SubscriptionsEnabled" type="bit" access="Read">dad.SubscriptionsEnabled</property> <property name="EventProvidersEnabled" type="bit" access="Read">dad.EventProviderEnabled</property> <property name="GeneratorEnabled" type="bit" access="Read">dad.GeneratorEnabled</property> <property name="DistributorsEnabled" type="bit" access="Read">dad.DistributorEnabled</property> <property name="GeneratorId" type="int">dad.GeneratorId</property> <property name="GeneratorName" type="nvarchar" size="255">dad.GeneratorName</property> </properties> </EnumObject> : <?xml version="1.0"?> <EnumObject type="InstanceLogFile" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_InstLogFiles" alias="ilf"/> <prefix> CREATE TABLE #tmp_InstLogFiles ( LogicalName nvarchar(128), FilePath nvarchar(260), FileGroupName nvarchar(128), InitialSize nvarchar(32), MaxSize nvarchar(32), GrowthIncrement nvarchar(16) ) INSERT INTO #tmp_InstLogFiles EXEC [SchemaPrefix].NSGetDatabaseFiles 'LOG_ONLY' </prefix> <postfix> DROP TABLE #tmp_InstLogFiles </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="128">ilf.LogicalName</property> <property name="FileName" type="nvarchar" size="260">ilf.FilePath</property> <property name="InitialSize" type="nvarchar" size="32">ilf.InitialSize</property> <property name="MaxSize" type="nvarchar" size="32">ilf.MaxSize</property> <property name="GrowthIncrement" type="nvarchar" size="16">ilf.GrowthIncrement</property> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="InstanceDatabaseFile" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Name" local="FileGroupName"/> </parent_link> <property_link table="#tmp_InstDatabaseFiles" alias="idf"/> <prefix> CREATE TABLE #tmp_InstDatabaseFiles ( LogicalName nvarchar(128), FilePath nvarchar(260), FileGroupName nvarchar(128), InitialSize nvarchar(32), MaxSize nvarchar(32), GrowthIncrement nvarchar(16) ) INSERT INTO #tmp_InstDatabaseFiles EXEC [SchemaPrefix].NSGetDatabaseFiles 'DATA_ONLY' </prefix> <postfix> DROP TABLE #tmp_InstDatabaseFiles </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="128">idf.LogicalName</property> <property name="FileName" type="nvarchar" size="260">idf.FilePath</property> <property name="FileGroupName" type="nvarchar" size="128">idf.FileGroupName</property> <property name="InitialSize" type="nvarchar" size="32">idf.InitialSize</property> <property name="MaxSize" type="nvarchar" size="32">idf.MaxSize</property> <property name="GrowthIncrement" type="nvarchar" size="16">idf.GrowthIncrement</property> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="InstanceDatabaseFileGroup" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_InstanceDatabaseFileGroups" alias="idfg"/> <prefix> CREATE TABLE #tmp_InstDatabaseFiles1 ( LogicalName nvarchar(128), FilePath nvarchar(260), FileGroupName nvarchar(128), InitialSize nvarchar(32), MaxSize nvarchar(32), GrowthIncrement nvarchar(16) ) CREATE TABLE #tmp_InstanceDatabaseFileGroups ( FileGroupName nvarchar(128) ) INSERT INTO #tmp_InstDatabaseFiles1 EXEC [SchemaPrefix].NSGetDatabaseFiles 'DATA_ONLY' INSERT INTO #tmp_InstanceDatabaseFileGroups SELECT DISTINCT FileGroupName FROM #tmp_InstDatabaseFiles1 </prefix> <postfix> DROP TABLE #tmp_InstanceDatabaseFileGroups DROP TABLE #tmp_InstDatabaseFiles1 </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="128">idfg.FileGroupName</property> </properties> </EnumObject> i <?xml version="1.0"?> <EnumObject type="InstanceDatabaseOptions" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_InstDatabaseOptions" alias="ido"/> <prefix> CREATE TABLE #tmp_InstDatabaseOptions ( SystemName nvarchar(255), DefaultFileGroup nvarchar(128), CollationName nvarchar(255) ) INSERT INTO #tmp_InstDatabaseOptions EXEC [SchemaPrefix].NSGetDatabaseOptions </prefix> <postfix> DROP TABLE #tmp_InstDatabaseOptions </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="255">ido.SystemName</property> <property name="DefaultFileGroup" type="nvarchar" size="128">ido.DefaultFileGroup</property> <property name="CollationName" type="nvarchar" size="255">ido.CollationName</property> </properties> </EnumObject> 1 <?xml version="1.0"?> <EnumObject type="AppLogFile" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_AppLogFiles" alias="alf"/> <prefix> CREATE TABLE #tmp_AppLogFiles ( LogicalName nvarchar(128), FilePath nvarchar(260), FileGroupName nvarchar(128), InitialSize nvarchar(32), MaxSize nvarchar(32), GrowthIncrement nvarchar(16) ) INSERT INTO #tmp_AppLogFiles EXEC [SchemaPrefix].NSGetDatabaseFiles 'LOG_ONLY' </prefix> <postfix> DROP TABLE #tmp_AppLogFiles </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="128">alf.LogicalName</property> <property name="FileName" type="nvarchar" size="260">alf.FilePath</property> <property name="InitialSize" type="nvarchar" size="32">alf.InitialSize</property> <property name="MaxSize" type="nvarchar" size="32">alf.MaxSize</property> <property name="GrowthIncrement" type="nvarchar" size="16">alf.GrowthIncrement</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="AppDatabaseFile" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Name" local="FileGroupName"/> </parent_link> <property_link table="#tmp_AppDatabaseFiles" alias="adf"/> <prefix> CREATE TABLE #tmp_AppDatabaseFiles ( LogicalName nvarchar(128), FilePath nvarchar(260), FileGroupName nvarchar(128), InitialSize nvarchar(32), MaxSize nvarchar(32), GrowthIncrement nvarchar(16) ) INSERT INTO #tmp_AppDatabaseFiles EXEC [SchemaPrefix].NSGetDatabaseFiles 'DATA_ONLY' </prefix> <postfix> DROP TABLE #tmp_AppDatabaseFiles </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="128">adf.LogicalName</property> <property name="FileName" type="nvarchar" size="260">adf.FilePath</property> <property name="FileGroupName" type="nvarchar" size="128">adf.FileGroupName</property> <property name="InitialSize" type="nvarchar" size="32">adf.InitialSize</property> <property name="MaxSize" type="nvarchar" size="32">adf.MaxSize</property> <property name="GrowthIncrement" type="nvarchar" size="16">adf.GrowthIncrement</property> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="AppDatabaseFile" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_ApplicationDatabaseFileGroups" alias="adfg"/> <prefix> CREATE TABLE #tmp_AppDatabaseFiles1 ( LogicalName nvarchar(128), FilePath nvarchar(260), FileGroupName nvarchar(128), InitialSize nvarchar(32), MaxSize nvarchar(32), GrowthIncrement nvarchar(16) ) CREATE TABLE #tmp_ApplicationDatabaseFileGroups ( FileGroupName nvarchar(128) ) INSERT INTO #tmp_AppDatabaseFiles1 EXEC [SchemaPrefix].NSGetDatabaseFiles 'DATA_ONLY' INSERT INTO #tmp_ApplicationDatabaseFileGroups SELECT DISTINCT FileGroupName FROM #tmp_AppDatabaseFiles1 </prefix> <postfix> DROP TABLE #tmp_ApplicationDatabaseFileGroups DROP TABLE #tmp_AppDatabaseFiles1 </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="128">adfg.FileGroupName</property> </properties> </EnumObject> ` <?xml version="1.0"?> <EnumObject type="AppDatabaseOptions" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_AppDatabaseOptions" alias="ado"/> <prefix> CREATE TABLE #tmp_AppDatabaseOptions ( SystemName nvarchar(255), DefaultFileGroup nvarchar(128), CollationName nvarchar(255) ) INSERT INTO #tmp_AppDatabaseOptions EXEC [SchemaPrefix].NSGetDatabaseOptions </prefix> <postfix> DROP TABLE #tmp_AppDatabaseOptions </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="255">ado.SystemName</property> <property name="DefaultFileGroup" type="nvarchar" size="128">ado.DefaultFileGroup</property> <property name="CollationName" type="nvarchar" size="255">ado.CollationName</property> </properties> </EnumObject> ? <?xml version="1.0" encoding="utf-8"?> <EnumObject type="Generator" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_generators" alias="gen"/> <prefix> CREATE TABLE #tmp_generators( ApplicationName nvarchar(max), GeneratorId int, GeneratorName nvarchar(255), SystemName nvarchar(255), PreviousFiringTime datetime, ThreadPoolSize int, ActivationState tinyint ) INSERT #tmp_generators EXEC [SchemaPrefix].NSGetGenerators </prefix> <postfix> DROP TABLE #tmp_generators </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="255">gen.GeneratorName</property> <property name="Id" type="int">gen.GeneratorId</property> <property name="SystemName" type="nvarchar" size="255">gen.SystemName</property> <property name="PreviousFiringTime" type="datetime" access="Read">gen.PreviousFiringTime</property> <property name="ThreadPoolSize" type="int">gen.ThreadPoolSize</property> <property name="ActivationState" type="tinyint" report_type="NSActivationState" access="Read">gen.ActivationState</property> </properties> </EnumObject> s <?xml version="1.0" encoding="utf-8"?> <EnumObject type="ProtocolDefinition" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_protocol_definitions" alias="dpd"/> <prefix> CREATE TABLE #tmp_protocol_definitions( ProtocolName nvarchar(255), ClassName nvarchar(255), AssemblyName nvarchar(260) ) INSERT #tmp_protocol_definitions EXEC [SchemaPrefix].NSGetProtocols 0 </prefix> <postfix> DROP TABLE #tmp_protocol_definitions </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="255">dpd.ProtocolName</property> <property name="ClassName" type="nvarchar" size="255">dpd.ClassName</property> <property name="AssemblyName" type="nvarchar" size="260">dpd.AssemblyName</property> </properties> </EnumObject> t <?xml version="1.0" encoding="utf-8"?> <EnumObject type="DeliveryChannelArgument" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Name" local="DeliveryChannelName"/> </parent_link> <request_parent_select> <field name="DeliveryChannelName"/> </request_parent_select> <property_link table="#tmp_delivery_channels_args" alias="dcab"/> <prefix> CREATE TABLE #tmp_delivery_channels_args( DeliveryChannelName nvarchar(255), ArgumentName nvarchar(255), ArgumentValue nvarchar(4000) ) INSERT #tmp_delivery_channels_args EXEC [SchemaPrefix].NSGetDeliveryChannelArguments </prefix> <postfix> DROP TABLE #tmp_delivery_channels_args </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="255">dcab.ArgumentName</property> <property name="Value" type="nvarchar" size="4000">dcab.ArgumentValue</property> <property name="DeliveryChannelName" type="nvarchar" size="255" hidden="true">dcab.DeliveryChannelName</property> </properties> </EnumObject> <?xml version="1.0" encoding="utf-8"?> <EnumObject type="DeliveryChannel" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_delivery_channels" alias="dcb"/> <prefix> CREATE TABLE #tmp_delivery_channels( DeliveryChannelName nvarchar(255), ProtocolName nvarchar(255) ) INSERT #tmp_delivery_channels EXEC [SchemaPrefix].NSGetDeliveryChannels </prefix> <postfix> DROP TABLE #tmp_delivery_channels </postfix> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="255">dcb.DeliveryChannelName</property> <property name="ProtocolName" type="nvarchar" size="255">dcb.ProtocolName</property> </properties> </EnumObject> ? <?xml version="1.0" encoding="utf-8"?> <EnumObject type="Instance" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_instance_db_names" alias="dtb"/> <prefix> CREATE TABLE #tmp_instance_db_names ( Name nvarchar(64), InstanceDatabase nvarchar (255), SchemaName nvarchar (255), VersionId int, UpdateDescription nvarchar (255), UpdateStarted datetime, UpdateFinished datetime, UpdateUserId nvarchar (255), NSEdition nvarchar(255), NSVersionMajor int, NSVersionMinor int, NSVersionBuild int, NSVersionRevision int, ConfigVersionMajor int, ConfigVersionMinor int, ConfigVersionBuild int, ConfigVersionRevision int, AdfVersionMajor int, AdfVersionMinor int, AdfVersionBuild int, AdfVersionRevision int, EncryptArguments bit ) CREATE TABLE #tmp_instance_info ( Name nvarchar(64), InstanceDatabase nvarchar (255), SchemaName nvarchar (255), VersionId int, UpdateDescription nvarchar (255), UpdateStarted datetime, UpdateFinished datetime, UpdateUserId nvarchar (255), NSEdition nvarchar(255), NSVersionMajor int, NSVersionMinor int, NSVersionBuild int, NSVersionRevision int, ConfigVersionMajor int, ConfigVersionMinor int, ConfigVersionBuild int, ConfigVersionRevision int, AdfVersionMajor int, AdfVersionMinor int, AdfVersionBuild int, AdfVersionRevision int ) CREATE TABLE #tmp_instance_encryption ( Name nvarchar(64), EncryptArguments bit ) IF OBJECT_ID(N'msdb.NS90.NSInstances') IS NOT NULL BEGIN DECLARE @dbname NVARCHAR (255) DECLARE @SchemaName NVARCHAR (255) DECLARE @sql NVARCHAR(MAX) DECLARE instance_db_names_cursor CURSOR FOR SELECT DatabaseName, SchemaName FROM [msdb].[NS90].[NSInstances] FOR READ ONLY OPEN instance_db_names_cursor FETCH instance_db_names_cursor into @dbname, @SchemaName WHILE @@FETCH_STATUS >= 0 BEGIN SET @sql = CONVERT (NVARCHAR (MAX), N' USE ' + quotename(@dbname)) SET @sql = @sql + CONVERT (NVARCHAR (MAX), N' IF OBJECT_ID(N' + quotename (quotename (@SchemaName) + N'.NSGetVersionInfo', N'''') + N') IS NOT NULL') SET @sql = @sql + CONVERT (NVARCHAR (MAX), N' BEGIN') SET @sql = @sql + CONVERT (NVARCHAR (MAX), N' IF EXISTS (SELECT * FROM sys.columns AS Columns WHERE Columns.object_id = OBJECT_ID (N' + quotename (quotename (@SchemaName) + N'.NSInstanceConfig', N'''') + N') AND Columns.name = ''EncryptArguments'')') SET @sql = @sql + CONVERT (NVARCHAR (MAX), N' BEGIN') SET @sql = @sql + CONVERT (NVARCHAR (MAX), N' INSERT #tmp_instance_info') SET @sql = @sql + CONVERT (NVARCHAR (MAX), N' EXEC ' + quotename (@SchemaName) + N'.NSGetVersionInfo') SET @sql = @sql + CONVERT (NVARCHAR (MAX), N' INSERT #tmp_instance_encryption') SET @sql = @sql + CONVERT (NVARCHAR (MAX), N' EXEC ' + quotename (@SchemaName) + N'.NSGetInstanceConfig') SET @sql = @sql + CONVERT (NVARCHAR (MAX), N' END') SET @sql = @sql + CONVERT (NVARCHAR (MAX), N' END') EXEC (@sql) FETCH instance_db_names_cursor into @dbname, @SchemaName END INSERT INTO #tmp_instance_db_names SELECT Info.Name, Info.InstanceDatabase, Info.SchemaName, Info.VersionId, Info.UpdateDescription, Info.UpdateStarted, Info.UpdateFinished, Info.UpdateUserId, Info.NSEdition, Info.NSVersionMajor, Info.NSVersionMinor, Info.NSVersionBuild, Info.NSVersionRevision, Info.ConfigVersionMajor, Info.ConfigVersionMinor, Info.ConfigVersionBuild, Info.ConfigVersionRevision, Info.AdfVersionMajor, Info.AdfVersionMinor, Info.AdfVersionBuild, Info.AdfVersionRevision, Config.EncryptArguments FROM #tmp_instance_info AS Info, #tmp_instance_encryption AS Config WHERE Info.Name = Config.Name CLOSE instance_db_names_cursor DEALLOCATE instance_db_names_cursor END </prefix> <postfix> DROP TABLE #tmp_instance_encryption DROP TABLE #tmp_instance_info DROP TABLE #tmp_instance_db_names </postfix> <post_process fields="#Version#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessVersion" triggered_fields="#VersionMajor#VersionMinor#VersionBuild#VersionRevision#"/> <post_process fields="#InstanceConfigurationFileVersion#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessVersion" triggered_fields="#ConfigVersionMajor#ConfigVersionMinor#ConfigVersionBuild#ConfigVersionRevision#"/> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Name" type="nvarchar" size="64">dtb.Name</property> <property name="DatabaseName" type="nvarchar" size="255">dtb.InstanceDatabase</property> <property name="SchemaName" type="nvarchar" size="255">dtb.SchemaName</property> <property name="Version" type="int" report_type2="System.Version" access="Read">null</property> <property name="VersionMajor" type="int" hidden="true">dtb.NSVersionMajor</property> <property name="VersionMinor" type="int" hidden="true">dtb.NSVersionMinor</property> <property name="VersionBuild" type="int" hidden="true">dtb.NSVersionBuild</property> <property name="VersionRevision" type="int" hidden="true">dtb.NSVersionRevision</property> <property name="InstanceConfigurationFileVersion" type="int" report_type2="System.Version">null</property> <property name="ConfigVersionMajor" type="int" hidden="true">dtb.ConfigVersionMajor</property> <property name="ConfigVersionMinor" type="int" hidden="true">dtb.ConfigVersionMinor</property> <property name="ConfigVersionBuild" type="int" hidden="true">dtb.ConfigVersionBuild</property> <property name="ConfigVersionRevision" type="int" hidden="true">dtb.ConfigVersionRevision</property> <property name="EncryptArguments" type="bit" size="1">dtb.EncryptArguments</property> </properties> </EnumObject> ? <?xml version="1.0" encoding="utf-8"?> <EnumObject type="NotificationServices" impl_type="SqlObject" min_major="7" max_major="9"> <settings> </settings> <properties> <include file="inc_urn_single.xml"/> <!--version min_major = '7' max_major = '7'> <property name="Name" type="sysname">@@SERVERNAME</property> </version> <version min_major = '8' max_major = '8'> <property name="Name" type="sysname">serverproperty(N'Servername')</property> </version--> <version min_major="9" max_major="9"> <property name="Name" type="sysname" access="Read">serverproperty(N'Servername')</property> </version> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="MasterKeyEncryption" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="ID" local="ParentID"/> </parent_link> <property_link table="sys.key_encryptions" alias="ke"/> </settings> <properties> <property name="Urn" type="nvarchar" size="600"> <link_multiple no="4" expression="{0} + '/{3}[@Thumbprint=''' + {1} + ''' and @SymmetricKeyEncryptionType = ''' + {2} + ''']'"> <link_field type="parent" field="Urn"/> <link_field type="local" field="Thumbprint_hid"/> <link_field type="local" field="SymmetricKeyEncryptionType_hid"/> <link_field field="NType"/> </link_multiple> </property> <property name="ParentID" type="int" access="read" hidden="true">ke.key_id</property> <property name="Thumbprint" type="varbinary" size="32" access="read">ke.thumbprint</property> <property name="Thumbprint_hid" type="nvarchar" size="64" access="read" hidden="true" cast="true">ISNULL(ke.thumbprint, 0x00)</property> <property name="SymmetricKeyEncryptionType" type="int" report_type="SymmetricKeyEncryptionType" access="read">(case ke.crypt_type when 'ESKS' then 0 when 'EPUC' then 1 when 'ESKP' then 2 when 'EPUA' then 3 when 'ESKM' then 4 else -1 end)</property> <property name="SymmetricKeyEncryptionType_hid" type="nvarchar" size="20" hidden="true" cast="true">(case ke.crypt_type when 'ESKS' then 0 when 'EPUC' then 1 when 'ESKP' then 2 when 'EPUA' then 3 when 'ESKM' then 4 else -1 end)</property> <property name="CryptProperty" type="varbinary" access="read">ke.crypt_property</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="DatabaseMasterKey" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="sys.symmetric_keys" alias="c">c.symmetric_key_id = 101</property_link> <property_link fields="#IsOpen#" left_join="sys.openkeys AS ok">ok.key_id=c.symmetric_key_id and ok.database_id=db_id()</property_link> <property_link fields="#IsEncryptedByServer#" join="sys.databases AS mkdb">mkdb.database_id=db_id()</property_link> </settings> <properties> <property name="Urn" type="nvarchar" size="600"> <link_multiple no="1" expression="{0} + '/MasterKey'"> <link_field type="parent" field="Urn"/> </link_multiple> </property> <property name="ID" type="int" access="Read" hidden="true">c.symmetric_key_id</property> <property name="CreateDate" type="datetime" access="Read">c.create_date</property> <property name="DateLastModified" type="datetime" access="Read">c.modify_date</property> <property name="IsOpen" type="bit" access="Read" cast="true">ISNULL(ok.status, 0)</property> <property name="IsEncryptedByServer" type="bit" access="Read" convert="true">ISNULL(mkdb.is_master_key_encrypted_by_server, 0)</property> </properties> </EnumObject> ~ <?xml version="1.0"?> <EnumObject type="ServiceMasterKey" impl_type="SqlObject" min_major="9" max_major="9"> <settings> </settings> <properties> <property name="Urn" type="nvarchar" size="600"> <link_multiple no="1" expression="{0} + '/MasterKey'"> <link_field type="parent" field="Urn"/> </link_multiple> </property> </properties> </EnumObject> < <?xml version="1.0"?> <EnumObject type="ServerProxyAccount" impl_type="ServerProxyAccount" min_major="8" max_major="9"> <settings> <version min_major="8" max_major="8"> <property_link>@account_name is not null</property_link> <prefix fields="#IsEnabled#"> declare @SysAdminOnly int exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent', N'SysAdminOnly', @SysAdminOnly OUTPUT set @SysAdminOnly = (case when 0 = @SysAdminOnly then 1 else 0 end) </prefix> <prefix> create table #tmpProxyAccountName ( domain sysname, username sysname) insert into #tmpProxyAccountName exec master.dbo.xp_sqlagent_proxy_account N'GET' declare @account_name nvarchar(255) set @account_name = (select domain + N'\' + username as [UserName] from #tmpProxyAccountName) if (@account_name is null) begin set @account_name=N'' end </prefix> <postfix> drop table #tmpProxyAccountName </postfix> </version> <version min_major="9" max_major="9"> <property_link>@account_name is not null</property_link> <prefix fields="#IsEnabled#"> declare @SysAdminOnly int set @SysAdminOnly = (select count(*) from sys.credentials c where c.name = N'##xp_cmdshell_proxy_account##') </prefix> <prefix> declare @account_name nvarchar(4000) set @account_name = (select top 1 credential_identity from sys.credentials c where c.name = N'##xp_cmdshell_proxy_account##') if (@account_name is null) begin set @account_name=N'' end </prefix> </version> </settings> <properties> <property name="Urn" type="nvarchar" size="600"> <link_multiple no="1" expression="{0} + '/ServerProxyAccount'"> <link_field type="parent" field="Urn"/> </link_multiple> </property> <property name="IsEnabled" type="bit" cast="true">@SysAdminOnly</property> <property name="WindowsAccount" type="nvarchar" size="4000">@account_name</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="SPHelpCategory" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <property_link table="#tmp_sp_help_category" alias="tshc"/> <prefix> create table #tmp_sp_help_category (category_id int null, category_type tinyint null, name nvarchar(128) null) insert into #tmp_sp_help_category (category_id, category_type, name) exec msdb.dbo.sp_help_category 'OPERATOR' </prefix> <postfix> drop table #tmp_sp_help_category </postfix> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="nvarchar" size="128">tshc.name</property> <property name="ID" type="int">tshc.category_id</property> </properties> </EnumObject> } <?xml version="1.0"?> <EnumObject type="Transactions" impl_type="SqlObject" min_major="9" max_major="9"> <!-- 1. we want all transactions normal and snapshot 2. if it is in dm_tran_active_snapshot_database_transactions we call a transaction versioned 3. it is possible for a transaction to be in dm_tran_active_snapshot_database_transactions but not in dm_tran_session_transactions we still want to show it then 4. it is possible for a transaction to be in dm_tran_active_snapshot_database_transactions but not in dm_tran_active_transactions, in this case the tran_begin_time is null and the name is user_transaction 5. it is possible for a transaction to be both in dm_tran_active_snapshot_database_transactions and in dm_tran_session_transactions, in this case we only want to show one row. We will have one row if the transaction does not have an associated db or a row for every database in which the transaction is involved --> <union> <!-- session transaction: normal transactions + some snapshot transactions--> <settings> <property_link table="sys.dm_tran_session_transactions" alias="ts"/> <property_link left_join="sys.dm_tran_database_transactions" alias="dt">dt.transaction_id = ts.transaction_id</property_link> <property_link fields="#IsVersioned#" left_join="sys.dm_tran_active_snapshot_database_transactions" alias="tsnp">tsnp.transaction_id = ts.transaction_id</property_link> <property_link fields="#Name#BeginTime#" left_join="sys.dm_tran_active_transactions" alias="ta">ta.transaction_id = ts.transaction_id</property_link> </settings> <properties> <property name="Name" type="sysname">ta.name</property> <property name="TransactionID" type="bigint">ts.transaction_id</property> <property name="BeginTime" type="datetime">ta.transaction_begin_time</property> <property name="Spid" type="int">ts.session_id</property> <property name="DatabaseName" type="sysname">db_name(dt.database_id)</property> <property name="DatabaseID" type="sysname">dt.database_id</property> <property name="DatabaseBeginTime" type="datetime">dt.database_transaction_begin_time</property> <property name="IsVersioned" type="bit" cast="true">case when tsnp.transaction_id is null then 0 else 1 end</property> </properties> </union> <union> <!-- snapshot transactions--> <settings> <property_link table="sys.dm_tran_active_snapshot_database_transactions" alias="tsnp"/> <property_link left_join="sys.dm_tran_database_transactions" alias="dt">dt.transaction_id = tsnp.transaction_id</property_link> <property_link fields="#Name#BeginTime#" left_join="sys.dm_tran_active_transactions" alias="ta">ta.transaction_id = tsnp.transaction_id</property_link> </settings> <properties> <property name="Name" type="sysname">ta.name</property> <property name="TransactionID" type="bigint">tsnp.transaction_id</property> <property name="BeginTime" type="datetime">ta.transaction_begin_time</property> <property name="Spid" type="int">tsnp.session_id</property> <property name="DatabaseName" type="sysname">db_name(dt.database_id)</property> <property name="DatabaseID" type="sysname">dt.database_id</property> <property name="DatabaseBeginTime" type="datetime">dt.database_transaction_begin_time</property> <property name="IsVersioned" type="bit" cast="true">1</property> </properties> </union> </EnumObject> B <?xml version="1.0"?> <EnumObject type="SPHelpCategory" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <property_link table="#tmp_sp_help_category" alias="tshc"/> <prefix> create table #tmp_sp_help_category (category_id int null, category_type tinyint null, name nvarchar(128) null) insert into #tmp_sp_help_category (category_id, category_type, name) exec msdb.dbo.sp_help_category 'JOB' </prefix> <postfix> drop table #tmp_sp_help_category </postfix> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="nvarchar" size="128">tshc.name</property> <property name="ID" type="int">tshc.category_id</property> <property name="CategoryType" type="tinyint" report_type="Agent.CategoryType">tshc.category_type</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="SPHelpCategory" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <property_link table="#tmp_sp_help_category" alias="tshc"/> <prefix> create table #tmp_sp_help_category (category_id int null, category_type tinyint null, name nvarchar(128) null) insert into #tmp_sp_help_category (category_id, category_type, name) exec msdb.dbo.sp_help_category 'ALERT' </prefix> <postfix> drop table #tmp_sp_help_category </postfix> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="nvarchar" size="128">tshc.name</property> <property name="ID" type="int">tshc.category_id</property> </properties> </EnumObject> i <?xml version="1.0"?> <EnumObject type="KeyEncryption" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="ID" local="ParentID"/> </parent_link> <property_link table="sys.key_encryptions" alias="ke"/> </settings> <properties> <property name="ThumbPrint" type="varbinary" size="32" access="read" cast="true">ke.thumbprint</property> <property name="SymmetricKeyEncryptionType" type="int" report_type="SymmetricKeyEncryptionType">(case ke.crypt_type when 'ESKS' then 0 when 'EPUC' then 1 when 'ESKP' then 2 when 'EPUA' then 3 when 'ESKM' then 4 end)</property> <property name="CryptProperty" type="varbinary" size="max" access="read" cast="true">ke.crypt_property</property> <property name="ParentID" type="int" access="read" hidden="true">ke.key_id</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="File" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <parent_link> <link parent="ID" local="GroupID"/> </parent_link> <version min_major="9" max_major="9"> <property_link table="sys.database_files AS s">((s.type = 4) AND (s.drop_lsn IS NULL))</property_link> </version> </settings> <properties> <include file="inc_urn.xml"/> <include file="inc_DbFile.xml"/> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="Param" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <parent_link> <link parent="ID" local="ParentID"/> <link parent="ParentNumber" local="Number"/> </parent_link> <version min_major="7" max_major="8"> <property_link table="syscolumns" alias="param"/> </version> <version min_major="9" max_major="9"> <property_link table="sys.numbered_procedure_parameters" alias="param"/> </version> </settings> <properties> <include file="parameter.xml" for="#Urn#Name#ID#DataType#DataTypeSchema#SystemType#Length#NumericPrecision#NumericScale#DefaultValue#"/> <version min_major="7" max_major="8"> <property name="IsOutputParameter" type="bit" cast="true">CASE param.isoutparam WHEN 1 THEN param.isoutparam WHEN 0 THEN CASE param.name WHEN '' THEN 1 ELSE 0 END END</property> <property name="Number" type="smallint" hidden="true">param.number</property> </version> <version min_major="9" max_major="9"> <property name="IsOutputParameter" type="bit">param.is_output</property> <property name="Number" type="int" hidden="true" cast="true">param.procedure_number</property> </version> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="StoredProcedure" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <parent_link> <link parent="ID" local="ID"/> </parent_link> <version min_major="7" max_major="8"> <property_link table="syscomments" alias="nsp">nsp.colid = 1 and nsp.number > 1</property_link> </version> <version min_major="9" max_major="9"> <property_link table="sys.numbered_procedures" alias="nsp"/> </version> </settings> <properties> <property name="Urn" type="nvarchar" size="600"> <link_multiple no="3" expression="{0} + '/{2}[@Number=' + cast({1} AS nvarchar(20)) + ']'"> <link_field type="parent" field="Urn"/> <link_field type="local" field="Number"/> <link_field field="NType"/> </link_multiple> </property> <version min_major="7" max_major="8"> <property name="Number" type="smallint" access="Read">nsp.number</property> <property name="Name" type="sysname">object_name(nsp.id) + ';' + cast(nsp.number as nvarchar(20))</property> <property name="IsEncrypted" type="bit" cast="true">nsp.encrypted</property> <!-- on 7-8 Definition is just a pointer to the text--> <property name="Definition" type="nvarchar" size="80" hidden="true">cast(nsp.id as nvarchar(20)) + N'_' + cast(db_id() as nvarchar(20)) + N'_' + cast(nsp.number as nvarchar(20))</property> <property name="ParentNumber" type="smallint" hidden="true">nsp.number</property> <property name="ID" type="int" hidden="true">nsp.id</property> </version> <version min_major="9" max_major="9"> <property name="Number" type="smallint" access="Read">nsp.procedure_number</property> <property name="Name" type="sysname">object_name(nsp.object_id) + ';' + cast(nsp.procedure_number as nvarchar(20))</property> <property name="IsEncrypted" type="bit" cast="true">CASE WHEN nsp.definition IS NULL THEN 1 ELSE 0 END</property> <!-- here we just offer support for text, every object will do whatever it sees fit take the whole text, parse it, etc --> <property name="Definition" type="nvarchar" size="max" hidden="true">nsp.definition</property> <property name="ParentNumber" type="smallint" hidden="true">nsp.procedure_number</property> <property name="ID" type="int" hidden="true">nsp.object_id</property> </version> <property name="IsSystemObject" type="int" hidden="true">0</property> <include file="inc_text.xml"/> </properties> </EnumObject> o <?xml version="1.0"?> <EnumObject type="Column" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <version min_major="7" max_major="8"> <property_link>clmns.number = 0 and 0 = OBJECTPROPERTY(clmns.id, N'IsScalarFunction')</property_link> </version> </settings> <properties> <include file="Column.xml"/> </properties> </EnumObject> " <?xml version="1.0"?> <EnumObject type="parameter" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <post_process fields="#DefaultValue#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessParam" triggered_fields="#IDText#DatabaseName#ParamName#ParentSysObj#Number#"/> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">param.name</property> <version min_major="7" max_major="8"> <property name="ID" type="int" access="Read" cast="true">param.colid</property> <property name="ParentID" type="int" hidden="true">param.id</property> </version> <version min_major="8" max_major="8"> <!-- extended properties support : commented out: sysproperties is not accessible to regular users <property name="ExtPropClass" type="int" hidden='true'>5</property> --> <property name="ObjectTypeName" type="sysname" hidden="true">N'PARAMETER'</property> <include file="inc_level2SupportProperties.xml"/> </version> <version min_major="9" max_major="9"> <property name="ID" type="int">param.parameter_id</property> <property name="ParentID" type="int" hidden="true">param.object_id</property> <!-- extended properties support --> <property name="ExtPropClass" type="int" hidden="true">2</property> </version> <include alias="param" file="inc_type.xml"/> <!-- default value properties --> <property name="DefaultValue" type="nvarchar" size="4000">null</property> <property name="IDText" type="int" hidden="true"> <link_multiple no="1" expression="{0}"> <link_field type="parent" field="ID"/> </link_multiple> </property> <property name="DatabaseName" type="sysname" hidden="true">db_name()</property> <property name="ParamName" type="sysname" hidden="true"> <link_multiple no="1" expression="{0}"> <link_field type="local" field="Name"/> </link_multiple> </property> <property name="ParentSysObj" type="bit" hidden="true"> <link_multiple no="1" expression="{0}"> <link_field type="parent" field="IsSystemObject"/> </link_multiple> </property> <!-- extended properties support --> <property name="ExtPropMajorID" type="int" hidden="true"> <link_multiple no="1" expression="{0}"> <link_field type="local" field="ParentID"/> </link_multiple> </property> <property name="ExtPropMinorID" type="int" hidden="true"> <link_multiple no="1" expression="{0}"> <link_field type="local" field="ID"/> </link_multiple> </property> </properties> </EnumObject> ) <?xml version="1.0"?> <EnumObject type="Table" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <property_link>tbl.name like '#%'</property_link> <prefix> use tempdb </prefix> </settings> <properties> <include file="table.xml"/> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="AsymmetricKey" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="sys.asymmetric_keys" alias="a"/> <property_link fields="#Owner#" left_join="sys.server_principals" alias="sp">sp.principal_id = a.principal_id</property_link> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">a.name</property> <property name="ID" type="int">a.asymmetric_key_id</property> <property name="Owner" type="sysname">user_name(a.principal_id)</property> <property name="KeyEncryptionAlgorithm" type="int" report_type="AsymmetricKeyEncryptionAlgorithm" access="read">(case a.algorithm when '1R' then 0 when '2R' then 1 when '2R' then 3 end)</property> <property name="KeyLength" type="int" access="read">a.key_length</property> <property name="PrivateKeyEncryptionType" type="int" report_type="PrivateKeyEncryptionType" access="read">case a.pvt_key_encryption_type when 'NA' then 0 when 'MK' then 1 when 'PW' then 2 end</property> <property name="PublicKey" type="varbinary" size="max" access="read">a.public_key</property> <property name="Sid" type="varbinary" size="85" access="read">a.sid</property> <property name="Thumbprint" type="varbinary" size="32" access="read">a.thumbprint</property> <!-- not available <property name='CreateDate' type='datetime' access='read'>a.create_date</property> <property name='DateLastModified' type='datetime' access='read'>a.modify_date</property> --> <!-- enable permissions --> <property name="ExtPropClass" type="int" hidden="true">26</property> <property name="ExtPropMajorID" type="int" hidden="true"> <link_multiple no="1" expression="{0}"> <link_field type="local" field="ID"/> </link_multiple> </property> <property name="ExtPropMinorID" type="int" hidden="true">0</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="SymmetricKey" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="sys.symmetric_keys" alias="c">c.symmetric_key_id <> 101</property_link> <property_link fields="#IsOpen#" left_join="sys.openkeys AS ok">ok.key_id=c.symmetric_key_id and ok.database_id=db_id()</property_link> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">c.name</property> <property name="ID" type="int">c.symmetric_key_id</property> <property name="Owner" type="sysname">user_name(c.principal_id)</property> <property name="CreateDate" type="datetime" access="read">c.create_date</property> <property name="KeyGuid" type="uniqueidentifier" access="read">c.key_guid</property> <property name="KeyLength" type="int" access="read">c.key_length</property> <property name="EncryptionAlgorithm" type="int" report_type="SymmetricKeyEncryptionAlgorithm" access="read">(case c.key_algorithm when 'R2' then 0 when 'R4' then 1 when 'D' then 2 when 'D3' then 3 when 'DX' then 4 when 'A1' then 5 when 'A2' then 6 when 'A3' then 7 end)</property> <property name="DateLastModified" type="datetime" access="read">c.modify_date</property> <property name="IsOpen" type="bit" access="Read" cast="true">ISNULL(ok.status, 0)</property> <!-- enable permissions --> <property name="ExtPropClass" type="int" hidden="true">24</property> <property name="ExtPropMajorID" type="int" hidden="true"> <link_multiple no="1" expression="{0}"> <link_field type="local" field="ID"/> </link_multiple> </property> <property name="ExtPropMinorID" type="int" hidden="true">0</property> </properties> </EnumObject> ] <?xml version="1.0"?> <EnumObject type="HttpEndpoint" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="EndpointID" local="EndpointID"/> </parent_link> <property_link table="sys.endpoint_webmethods AS ewm"/> </settings> <properties> <include file="inc_urn_soapmethod.xml"/> <property name="Name" type="sysname">ewm.method_alias</property> <property name="Namespace" type="nvarchar" size="384">ISNULL(ewm.namespace,'')</property> <property name="ResultFormat" type="int" cast="true" report_type="ResultFormat">ewm.result_format</property> <property name="SqlMethod" type="nvarchar" size="776" access="Read">ewm.object_name</property> <property name="MethodXsdSchemaOption" type="int" cast="true" report_type="MethodXsdSchemaOption">ewm.result_schema</property> <property name="EndpointID" type="int" hidden="true">ewm.endpoint_id</property> <property name="MethodLoginType" type="int" cast="true" report_type="MethodLoginType">case upper(se.login_type) when 'WINDOWS' then 2 else 1 end</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="TcpEndpoints" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="ID" local="EndpointID"/> </parent_link> <property_link table="sys.tcp_endpoints" alias="te"/> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="ListenerPort" type="int">te.port</property> <property name="IsDynamicPort" type="bit" access="read">te.is_dynamic_port</property> <property name="ListenerIPAddress" type="varchar" size="45">ISNULL(te.ip_address,'')</property> <property name="EndpointID" type="int" hidden="true">te.endpoint_id</property> </properties> </EnumObject> w <?xml version="1.0"?> <EnumObject type="HttpEndpoints" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="ID" local="EndpointID"/> </parent_link> <property_link table="sys.http_endpoints" alias="he"/> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="AuthenticationRealm" type="nvarchar" size="128">ISNULL(he.authorization_realm,N'')</property> <property name="ClearPort" type="int">he.clear_port</property> <property name="DefaultLogonDomain" type="nvarchar" size="128">ISNULL(he.default_logon_domain,N'')</property> <property name="HttpPortTypes" type="int" report_type="HttpPortTypes">1*he.is_ssl_port_enabled + 2*is_clear_port_enabled</property> <property name="SslPort" type="int">he.ssl_port</property> <property name="WebSiteUrlPath" type="nvarchar" size="4000">he.url_path</property> <property name="WebSite" type="nvarchar" size="128">he.site</property> <property name="IsCompressionEnabled" type="bit">he.is_compression_enabled</property> <property name="HttpAuthenticationModes" type="int" report_type="HttpAuthenticationModes">1*is_anonymous_enabled + 2*is_basic_auth_enabled + 4*is_digest_auth_enabled + 8*is_integrated_auth_enabled</property> <property name="EndpointID" type="int" hidden="true">he.endpoint_id</property> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="ViaEndpoints" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="ID" local="EndpointID"/> </parent_link> <property_link table="sys.via_endpoints" alias="ve"/> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="Discriminator" type="nvarchar" size="128">ve.discriminator</property> <property name="EndpointID" type="int" hidden="true">ve.endpoint_id</property> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="ServiceBrokerEndpoints" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="ID" local="EndpointID"/> </parent_link> <property_link table="sys.service_broker_endpoints" alias="sbe"/> <property_link fields="#Certificate#" left_join="sys.certificates AS cert">cert.certificate_id = sbe.certificate_id</property_link> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="IsMessageForwardingEnabled" type="bit">sbe.is_message_forwarding_enabled</property> <property name="MessageForwardingSize" type="int">sbe.message_forwarding_size</property> <property name="Certificate" type="sysname">ISNULL(cert.name,N'')</property> <property name="EndpointEncryption" type="int" report_type="EndpointEncryption"> case when sbe.encryption_algorithm = 0 then 0 when sbe.encryption_algorithm in (3,4,7,8) then 1 when sbe.encryption_algorithm in (1,2,5,6) then 2 else 0 end </property> <property name="EndpointEncryptionAlgorithm" type="int" report_type="EndpointEncryptionAlgorithm"> case sbe.encryption_algorithm when 0 then 0 when 1 then 1 when 2 then 2 when 3 then 1 when 4 then 2 when 5 then 4 when 6 then 3 when 7 then 4 when 8 then 3 else 0 end </property> <property name="EndpointAuthenticationOrder" type="int" report_type="EndpointAuthenticationOrder">sbe.connection_auth</property> <property name="EndpointID" type="int" hidden="true">sbe.endpoint_id</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="DatabaseMirroringEndpoints" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="ID" local="EndpointID"/> </parent_link> <property_link table="sys.database_mirroring_endpoints" alias="dme"/> <property_link fields="#Certificate#" left_join="sys.certificates AS cert">cert.certificate_id = dme.certificate_id</property_link> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="ServerMirroringRole" type="tinyint" report_type="ServerMirroringRole">dme.role</property> <property name="Certificate" type="sysname">ISNULL(cert.name,N'')</property> <property name="EndpointEncryption" type="int" report_type="EndpointEncryption">case when dme.encryption_algorithm = 0 then 0 when dme.encryption_algorithm in (3,4,7,8) then 1 when dme.encryption_algorithm in (1,2,5,6) then 2 else 0 end </property> <property name="EndpointEncryptionAlgorithm" type="int" report_type="EndpointEncryptionAlgorithm">case dme.encryption_algorithm when 0 then 0 when 1 then 1 when 2 then 2 when 3 then 1 when 4 then 2 when 5 then 4 when 6 then 3 when 7 then 4 when 8 then 3 else 0 end </property> <property name="EndpointAuthenticationOrder" type="int" report_type="EndpointAuthenticationOrder">dme.connection_auth</property> <property name="EndpointID" type="int" hidden="true">dme.endpoint_id</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="inc_urn_single" impl_type="SqlObject" min_major="7" max_major="9"> <settings> </settings> <properties> <property name="Urn" type="nvarchar" size="600"> <link_multiple no="2" expression="{0} + '/{1}'"> <link_field type="parent" field="Urn"/> <link_field field="NType"/> </link_multiple> </property> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="SoapEndpoints" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="ID" local="EndpointID"/> </parent_link> <property_link table="sys.soap_endpoints" alias="se"/> </settings> <properties> <include file="inc_urn_single.xml"/> <property name="DefaultDatabase" type="sysname">ISNULL(se.default_database, N'')</property> <property name="IsSqlBatchesEnabled" type="bit">se.is_sql_language_enabled</property> <property name="DefaultNamespace" type="nvarchar" size="384">se.default_namespace</property> <property name="XmlFormatOption" type="int" report_type="XmlFormatOption">2-convert(int, se.is_xml_charset_enforced)</property> <property name="XsdSchemaOption" type="int" cast="true" report_type="XsdSchemaOption">se.default_result_schema</property> <property name="WsdlGeneratorProcedure" type="nvarchar" size="776">se.wsdl_generator_procedure</property> <property name="WsdlGeneratorOption" type="int" cast="true" report_type="WsdlGeneratorOption">case LEN(ISNULL(se.wsdl_generator_procedure,'')) when 0 then 0 else 2 end</property> <property name="IsSessionEnabled" type="bit">se.is_session_enabled</property> <property name="SessionTimeout" type="int">se.session_timeout</property> <property name="SessionNeverTimesOut" type="bit" cast="true">CASE WHEN se.session_timeout < 0 THEN 1 ELSE 0 END</property> <property name="EndpointID" type="int" hidden="true">se.endpoint_id</property> </properties> </EnumObject> 6 <?xml version="1.0"?> <EnumObject type="Endpoints" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="sys.endpoints" alias="e"/> <property_link fields="#Owner#" join="sys.server_principals AS sp">sp.principal_id = e.principal_id</property_link> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">e.name</property> <property name="ID" type="int">e.endpoint_id</property> <property name="Owner" type="nvarchar" size="128">sp.name</property> <property name="EndpointType" type="tinyint" report_type="EndpointType">e.type</property> <property name="ProtocolType" type="tinyint" report_type="ProtocolType">e.protocol</property> <property name="EndpointState" type="int" report_type="EndpointState" access="Read">e.state</property> <property name="IsAdminEndpoint" type="bit" access="Read">e.is_admin_endpoint</property> <!-- enable permissions --> <property name="PermissionClass" type="int" hidden="true">105</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="MailServer" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Name" local="AccountName"/> </parent_link> <request_parent_select> <field name="Name"/> </request_parent_select> <property_link table="#account_server_tmp" alias="ast"/> <prefix> <link_multiple no="1" expression=" create table #account_server_tmp(account_id int, name nvarchar(128), description nvarchar(256) null, email_address nvarchar(128) null, display_name nvarchar(128) null, replyto_address nvarchar(128) null, servertype nvarchar(128), servername nvarchar(128), port int, username nvarchar(128) null, use_default_credentials bit, enable_ssl bit) declare @AccountName sysname declare crs cursor local fast_forward for ( {0} ) open crs fetch crs into @AccountName while @@fetch_status >= 0 begin insert #account_server_tmp(account_id, name, description, email_address, display_name, replyto_address, servertype, servername, port, username, use_default_credentials, enable_ssl) exec msdb.dbo.sysmail_help_account_sp @account_name=@AccountName fetch crs into @AccountName end close crs deallocate crs"> <link_field field="ParentSelect"/> </link_multiple> </prefix> <postfix> drop table #account_server_tmp </postfix> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">ast.servername</property> <property name="Port" type="int">ast.port</property> <property name="UserName" type="nvarchar" size="128">ISNULL(ast.username, N'')</property> <property name="AccountName" type="nvarchar" size="128" hidden="true">ast.name</property> <property name="ServerType" type="nvarchar" size="128" access="read">ast.servertype</property> <property name="UseDefaultCredentials" type="bit" cast="true">ast.use_default_credentials</property> <property name="EnableSsl" type="bit" cast="true">ast.enable_ssl</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="MailProfilePrincipals" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Name" local="ProfileName"/> </parent_link> <request_parent_select> <field name="Name"/> </request_parent_select> <property_link table="#principal_profile_tmp ppt"/> <prefix> <link_multiple no="1" expression=" create table #principal_profile_tmp( principal_id int, principal_name sysname, profile_id int, profile_name sysname, is_default bit ) declare @ProfileName sysname declare crs cursor local fast_forward for ( {0} ) open crs fetch crs into @ProfileName while @@fetch_status >= 0 begin insert #principal_profile_tmp (principal_id,principal_name,profile_id,profile_name,is_default) exec msdb.dbo.sysmail_help_principalprofile_sp @profile_name=@ProfileName fetch crs into @ProfileName end close crs deallocate crs"> <link_field field="ParentSelect"/> </link_multiple> </prefix> <postfix> drop table #principal_profile_tmp </postfix> </settings> <properties> <property name="PrincipalName" type="sysname">ppt.principal_name</property> <property name="PrincipalID" type="int">ppt.principal_id</property> <property name="ProfileName" type="sysname">ppt.profile_name</property> <property name="ProfileID" type="int">ppt.profile_id</property> <property name="IsDefault" type="bit">ppt.is_default</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="MailProfileAccounts" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="Name" local="ProfileName"/> </parent_link> <request_parent_select> <field name="Name"/> </request_parent_select> <property_link table="#profile_account_tmp pat"/> <prefix> <link_multiple no="1" expression=" create table #profile_account_tmp(profile_id int, profile_name sysname, account_id int, account_name sysname, sequence_number int) declare @ProfileName sysname declare crs cursor local fast_forward for ( {0} ) open crs fetch crs into @ProfileName while @@fetch_status >= 0 begin insert #profile_account_tmp (profile_id,profile_name,account_id,account_name,sequence_number) exec msdb.dbo.sysmail_help_profileaccount_sp @profile_name=@ProfileName fetch crs into @ProfileName end close crs deallocate crs"> <link_field field="ParentSelect"/> </link_multiple> </prefix> <postfix> drop table #profile_account_tmp </postfix> </settings> <properties> <property name="ProfileName" type="sysname">pat.profile_name</property> <property name="ProfileID" type="int">pat.profile_id</property> <property name="AccountName" type="sysname">pat.account_name</property> <property name="AccountID" type="int">pat.account_id</property> <property name="SequenceNumber" type="int">pat.sequence_number</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="ServerDdlTriggerEvent" impl_type="SqlObject" min_major="9" max_major="9"> <settings main_table="sys.server_trigger_events te"> <parent_link> <link parent="ID" local="ParentID"/> </parent_link> </settings> <properties> <property name="EventType" type="int" access="Read">te.type</property> <property name="EventTypeDescription" type="nvarchar" size="60" access="Read">te.type_desc</property> <property name="ObjectIdentifier" type="varchar" size="300" access="Read">cast(db_id() as varchar(20)) + '_' + cast(te.object_id as varchar(20))</property> <property name="ParentID" type="int" hidden="true">te.object_id</property> </properties> </EnumObject> B <?xml version="1.0"?> <EnumObject type="inc_ddl_trigger_event" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <post_process fields="#DdlTriggerEvents#" triggered_fields="#DdlTriggerEventsInternal#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessDatabaseDdlTriggerEvents"/> </settings> <properties> <property name="DdlTriggerEventsInternal" type="nvarchar" size="50" expensive="true" hidden="true"> <link_multiple no="1" expression="cast(db_id() as varchar(20)) + '_' + cast({{0}} as varchar(20))"> <link_field type="local" field="ID"/> </link_multiple> </property> <property name="DdlTriggerEvents" type="sql_variant" cast="true" expensive="true" report_type2="Microsoft.SqlServer.Management.Smo.DatabaseDdlTriggerEventSet">null</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="DatabaseDdlTriggerEvent" impl_type="SqlObject" min_major="9" max_major="9"> <settings main_table="sys.trigger_events te"> <parent_link> <link parent="ID" local="ParentID"/> </parent_link> </settings> <properties> <property name="EventType" type="int" access="Read">te.type</property> <property name="EventTypeDescription" type="nvarchar" size="60" access="Read">te.type_desc</property> <property name="ObjectIdentifier" type="varchar" size="300" access="Read">cast(db_id() as varchar(20)) + '_' + cast(te.object_id as varchar(20))</property> <property name="ParentID" type="int" hidden="true">te.object_id</property> </properties> </EnumObject> b <?xml version="1.0"?> <EnumObject min_major="7" max_major="9"> <settings> <version min_major="9" max_major="9"> <!-- here we have to fetch from both sys.server_sql_modules and sys.system_sql_modules because user objects are stored in the former, and system objects are stored in the latter --> <property_link fields="#Recompile#IsEncrypted#Definition#" left_join="sys.server_sql_modules AS sm{0}">sm{0}.object_id = {0}.object_id</property_link> <property_link fields="#Recompile#IsEncrypted#Definition#" left_join="sys.system_sql_modules AS ssm{0}">ssm{0}.object_id = {0}.object_id</property_link> </version> </settings> <properties> <version min_major="7" max_major="8"> <include file="inc_sql_module.xml" alias="{0}"/> </version> <version min_major="9" max_major="9"> <property name="AnsiNullsStatus" type="bit" cast="true">ISNULL(sm{0}.uses_ansi_nulls, ssm{0}.uses_ansi_nulls)</property> <property name="QuotedIdentifierStatus" type="bit" cast="true">ISNULL(sm{0}.uses_quoted_identifier, ssm{0}.uses_quoted_identifier)</property> <property name="IsSchemaBound" type="bit" cast="true">OBJECTPROPERTYEX({0}.object_id, N'IsSchemaBound')</property> <include file="inc_sql_module.xml" alias="sm{0}"/> </version> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="Trigger" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="master.sys.server_triggers AS tr">tr.parent_class = 100</property_link> <property_link fileds="#ClassName#MethodName#AssemblyName#ExecutionContextLogin#ExecutionContext#" left_join="master.sys.server_assembly_modules AS mod">mod.object_id = tr.object_id</property_link> <property_link fields="#ExecutionContext#" left_join="sys.assembly_modules" alias="am2tr">am2tr.object_id = tr.object_id</property_link> <property_link fields="#AnsiNullsStatus#QuotedIdentifierStatus#Definition#ExecutionContextLogin#ExecutionContext#IsEncrypted#" left_join="sys.server_sql_modules" alias="ssmod">ssmod.object_id = tr.object_id</property_link> <property_link fields="#AssemblyName#" left_join="master.sys.assemblies AS asmbl">asmbl.assembly_id = mod.assembly_id</property_link> <post_process fields="#DdlTriggerEvents#" triggered_fields="#DdlTriggerEventsInternal#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessServerDdlTriggerEvents"/> <post_process fields="#Text#BodyStartIndex#HasColumnSpecification#TableVariableName#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessBodyText" triggered_fields="#Definition#"/> </settings> <properties> <include file="inc_urn.xml"/> <include file="inc_named_object.xml" alias="tr" for="#Name#ID#CreateDate#DateLastModified#"/> <include file="inc_system_object.xml" alias="tr" for="#IsSystemObject#"/> <property name="IsEnabled" type="bit">~tr.is_disabled</property> <!-- Default to empty string for CLR triggers --> <property name="AssemblyName" type="sysname">CASE WHEN tr.type = N'TR' THEN N'' ELSE asmbl.name END</property> <property name="ClassName" type="sysname">CASE WHEN tr.type = N'TR' THEN N'' ELSE mod.assembly_class END</property> <property name="MethodName" type="sysname">CASE WHEN tr.type = N'TR' THEN N'' ELSE mod.assembly_method END</property> <property name="ImplementationType" type="int" report_type="ImplementationType">CASE WHEN tr.type = N'TR' THEN 1 WHEN tr.type = N'TA' THEN 2 ELSE 1 END</property> <property name="AnsiNullsStatus" type="bit" cast="true">ssmod.uses_ansi_nulls</property> <property name="QuotedIdentifierStatus" type="bit" cast="true">ssmod.uses_quoted_identifier</property> <property name="Definition" type="nvarchar" size="max" hidden="true">ssmod.definition</property> <property name="ExecutionContextLogin" type="sysname">ISNULL(user_name(ssmod.execute_as_principal_id),ISNULL(user_name(mod.execute_as_principal_id),N''))</property> <property name="ExecutionContext" type="int">CASE WHEN (ssmod.execute_as_principal_id IS NULL AND mod.execute_as_principal_id IS NULL) THEN 1 ELSE 2 END</property> <property name="Text" type="nvarchar" size="max" expensive="true" access="Read">NULL</property> <property name="BodyStartIndex" type="int" expensive="true" access="Read">NULL</property> <property name="IsEncrypted" type="bit" cast="true">CASE WHEN ssmod.definition IS NULL THEN 1 ELSE 0 END</property> <property name="DdlTriggerEventsInternal" type="nvarchar" size="50" expensive="true" hidden="true"> <link_multiple no="1" expression="cast(db_id() as varchar(20)) + '_' + cast({0} as varchar(20))"> <link_field type="local" field="ID"/> </link_multiple> </property> <property name="DdlTriggerEvents" type="sql_variant" cast="true" expensive="true" report_type2="Microsoft.SqlServer.Management.Smo.ServerDdlTriggerEventSet">null</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="Trigger" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="sys.triggers AS tr">tr.parent_class = 0</property_link> <property_link fields="#ExecutionContext#" left_join="sys.assembly_modules" alias="am2tr">am2tr.object_id = tr.object_id</property_link> <property_link fields="#AnsiNullsStatus#QuotedIdentifierStatus#" left_join="sys.sql_modules" alias="sqlmod">sqlmod.object_id = tr.object_id</property_link> </settings> <properties> <include file="inc_urn.xml"/> <include file="inc_named_object.xml" alias="tr" for="#Name#ID#CreateDate#DateLastModified#ExtPropClass#ExtPropMajorID#ExtPropMinorID#"/> <include file="inc_system_object.xml" alias="tr" for="#IsSystemObject#"/> <include file="mixed_module_link.xml" alias="tr" for="#ExecutionContextUser#MethodName#ClassName#AssemblyName#Text#TextBody#BodyStartIndex#IsEncrypted#"/> <include file="inc_ddl_trigger_event.xml" alias="tr" for="#DdlTriggerEvents#"></include> <property name="ExecutionContext" type="int" report_type="DatabaseDdlTriggerExecutionContext"> <link_multiple no="1" expression="case when am2tr.object_id is null then {0} else case isnull(am2tr.execute_as_principal_id, -1) when -1 then 1 else 2 end end"> <link_field type="local" field="SqlExecutionContextDdl"/> </link_multiple> </property> <property name="NotForReplication" type="bit">tr.is_not_for_replication</property> <property name="IsEnabled" type="bit">~tr.is_disabled</property> <property name="ImplementationType" type="int" report_type="ImplementationType">CASE WHEN tr.type = N'TR' THEN 1 WHEN tr.type = N'TA' THEN 2 ELSE 1 END</property> <property name="AnsiNullsStatus" type="bit" cast="true">sqlmod.uses_ansi_nulls</property> <property name="QuotedIdentifierStatus" type="bit" cast="true">sqlmod.uses_quoted_identifier</property> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="inc_named_object" impl_type="SqlObject" min_major="7" max_major="9"> <settings> </settings> <properties> <version min_major="7" max_major="8"> <property name="Name" type="sysname">{0}.name</property> <property name="ID" type="int" access="Read">{0}.id</property> <property name="CreateDate" type="datetime" access="Read">{0}.crdate</property> <property name="ParentID" type="int" hidden="true">{0}.parent_obj</property> <!-- extended properties support : commented out: sysproperties is not accessible to regular users <property name="ExtPropClass" type="int" hidden='true'>3</property> --> <!-- extended properties support --> <property name="ObjectNameFromFilter" type="sysname" hidden="true"> <link_multiple no="1" expression="{{0}}"> <link_field type="filter" field="Name" default_value="null"/> </link_multiple> </property> </version> <version min_major="9" max_major="9"> <property name="Name" type="sysname">{0}.name</property> <property name="ID" type="int" access="Read">{0}.object_id</property> <property name="CreateDate" type="datetime" access="Read">{0}.create_date</property> <property name="DateLastModified" type="datetime" access="Read">{0}.modify_date</property> <property name="ParentID" type="int" hidden="true">{0}.parent_object_id</property> <property name="ExtPropClass" type="int" hidden="true">1</property> </version> <!-- extended properties support --> <property name="ExtPropMajorID" type="int" hidden="true"> <link_multiple no="1" expression="{{0}}"> <link_field type="local" field="ID"/> </link_multiple> </property> <property name="ExtPropMinorID" type="int" hidden="true">0</property> </properties> </EnumObject> m <?xml version="1.0"?> <EnumObject type="Mail" impl_type="SqlObject" min_major="9" max_major="9"> <settings> </settings> <properties> <property name="Urn" type="nvarchar" size="600"> <link_multiple no="1" expression="{0} + '/Mail'"> <link_field type="parent" field="Urn"/> </link_multiple> </property> </properties> </EnumObject> { <?xml version="1.0"?> <EnumObject type="ConfigurationValue" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_sysmail_help_configure" alias="tshc"/> <prefix> create table #tmp_sysmail_help_configure(paramname nvarchar(256), paramvalue nvarchar(256) null, description nvarchar(256) null) insert into #tmp_sysmail_help_configure(paramname, paramvalue, description) exec msdb.dbo.sysmail_help_configure_sp </prefix> <postfix> drop table #tmp_sysmail_help_configure </postfix> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="nvarchar" size="256" access="Read">tshc.paramname</property> <property name="Value" type="nvarchar" size="256">tshc.paramvalue</property> <property name="Description" type="nvarchar" size="256">tshc.description</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="MailAccount" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_sysmail_help_account" alias="tsha"/> <prefix> create table #tmp_sysmail_help_account(account_id int, name nvarchar(128), description nvarchar(256) null, email_address nvarchar(128) null, display_name nvarchar(128) null, replyto_address nvarchar(128) null, servertype nvarchar(128), servername nvarchar(128), port int, username nvarchar(128), use_default_credentials bit, enable_ssl bit) insert into #tmp_sysmail_help_account(account_id, name, description, email_address, display_name, replyto_address, servertype, servername, port, username, use_default_credentials, enable_ssl) exec msdb.dbo.sysmail_help_account_sp </prefix> <postfix> drop table #tmp_sysmail_help_account </postfix> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">tsha.name</property> <property name="ID" type="int">tsha.account_id</property> <property name="Description" type="nvarchar" size="256">ISNULL(tsha.description, N'')</property> <property name="EmailAddress" type="nvarchar" size="128">tsha.email_address</property> <property name="DisplayName" type="nvarchar" size="128">ISNULL(tsha.display_name, N'')</property> <property name="ReplyToAddress" type="nvarchar" size="128">ISNULL(tsha.replyto_address, N'')</property> </properties> </EnumObject> + <?xml version="1.0"?> <EnumObject type="MailProfile" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_sysmail_help_profile" alias="tshp"/> <prefix> create table #tmp_sysmail_help_profile(profile_id int, name nvarchar(128), description nvarchar(256) null) insert into #tmp_sysmail_help_profile(profile_id, name, description) exec msdb.dbo.sysmail_help_profile_sp </prefix> <postfix> drop table #tmp_sysmail_help_profile </postfix> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">tshp.name</property> <property name="ID" type="int">tshp.profile_id</property> <property name="Description" type="nvarchar" size="256">ISNULL(tshp.description,N'')</property> </properties> </EnumObject> ) <?xml version="1.0"?> <EnumObject type="Credential" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <version min_major="9" max_major="9"> <property_link table="sys.credentials AS s"/> </version> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">s.name</property> <property name="ID" type="int" access="Read">s.credential_id</property> <property name="Identity" type="nvarchar" size="4000" access="ReadWrite">s.credential_identity</property> <property name="CreateDate" type="datetime" access="Read">s.create_date</property> <property name="DateLastModified" type="datetime" access="Read">s.modify_date</property> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="inc_urn" impl_type="SqlObject" min_major="7" max_major="9"> <settings> </settings> <properties> <property name="Urn" type="nvarchar" size="600"> <link_multiple no="3" expression="{0} + '/{2}[@Name=' + quotename(cast(cast({1} as varbinary(256)) as sysname),'''') + ']'"> <link_field type="parent" field="Urn"/> <link_field type="local" field="Name"/> <link_field field="NType"/> </link_multiple> </property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="XmlType" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="ID" local="NamespaceID"/> </parent_link> <property_link table="sys.xml_schema_components AS comp"/> </settings> <properties> <include file="inc_urn_collate_default.xml"/> <property name="Name" type="sysname">comp.name</property> <property name="ID" type="int" access="Read">comp.xml_component_id</property> <property name="NamespaceID" type="int" access="Read">comp.xml_namespace_id</property> <property name="IsQualified" type="bit" cast="true" access="Read">comp.is_qualified</property> <property name="XmlTypeKind" type="int" report_type="XmlTypeKind" access="Read">(case comp.kind when 'N' then 1 when 'Z' then 2 when 'P' then 3 when 'S' then 4 when 'L' then 5 when 'U' then 6 when 'C' then 7 when 'K' then 8 when 'E' then 9 when 'M' then 10 when 'W' then 11 when 'A' then 12 when 'G' then 13 when 'V' then 14 else 1 end) </property> <property name="Derivation" type="int" report_type="XmlTypeDerivation" access="Read">(case comp.derivation when 'N' then 1 when 'X' then 2 when 'R' then 3 when 'S' then 4 else 1 end)</property> <property name="BaseComponentId" type="int" access="Read">comp.base_xml_component_id</property> <property name="ScopingComponentId" type="int" access="Read">comp.scoping_xml_component_id</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="XmlNamespace" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="ID" local="ParentID"/> </parent_link> <property_link table="sys.xml_schema_namespaces AS xn"/> <property_link fields="#Text#" join="sys.xml_schema_collections AS xsc2">xsc2.xml_collection_id = xn.xml_collection_id</property_link> <property_link fields="#Text#" join="sys.schemas AS sch2">xsc.schema_id = sch2.schema_id</property_link> </settings> <properties> <include file="inc_urn_collate_default.xml"/> <property name="Name" type="sysname">xn.name</property> <property name="ID" type="int" access="Read">xn.xml_namespace_id</property> <property name="Text" type="xml">XML_SCHEMA_NAMESPACE(sch2.Name, xsc2.name, xn.name)</property> <property name="ParentID" type="int" hidden="true">xn.xml_collection_id</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="XmlSchemaCollection" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="sys.xml_schema_collections AS xsc"> xsc.schema_id <> 4</property_link> <property_link fields="#Schema#Text#" join="sys.schemas AS sch">xsc.schema_id = sch.schema_id</property_link> </settings> <properties> <include file="inc_urn_schema.xml"/> <property name="Name" type="sysname">xsc.name</property> <property name="ID" type="int" access="Read">xsc.xml_collection_id</property> <property name="Schema" type="sysname">sch.name</property> <property name="CreateDate" type="datetime" access="Read">xsc.create_date</property> <property name="DateLastModified" type="datetime" access="Read">xsc.modify_date</property> <property name="Text" type="xml">XML_SCHEMA_NAMESPACE(sch.Name, xsc.name)</property> <!-- extended properties support --> <property name="ExtPropClass" type="int" hidden="true">10</property> <property name="ExtPropMajorID" type="int" hidden="true">xsc.xml_collection_id</property> <property name="ExtPropMinorID" type="int" hidden="true">0</property> </properties> </EnumObject> X <?xml version="1.0"?> <EnumObject type="DatabaseMirroringWitnesses" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="sys.database_mirroring_witnesses" alias="dmw"/> </settings> <properties> <property name="Database" type="sysname">dmw.database_name</property> <property name="PrincipalServer" type="sysname">dmw.principal_server_name</property> <property name="MirrorServer" type="sysname">dmw.mirror_server_name</property> <property name="MirroringSafetyLevel" type="tinyint">dmw.safety_level</property> <property name="SafetySequenceNumber" type="int">dmw.safety_sequence_number</property> <property name="RoleSequenceNumber" type="int">dmw.role_sequence_number</property> <property name="MirroringID" type="uniqueidentifier">dmw.mirroring_guid</property> <property name="BackupFamilyID" type="uniqueidentifier">dmw.family_guid</property> <property name="IsSuspended" type="bit">dmw.is_suspended</property> <property name="SuspendedSequenceNumber" type="int">dmw.is_suspended_sequence_number</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="ErrorLogText" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <parent_link> <link parent="ArchiveNo" local="ArchiveNo"/> <link parent="CatalogId" local="CatalogId"/> </parent_link> <request_parent_select> <field name="ArchiveNo"/> <field name="CatalogId"/> </request_parent_select> <property_link table="#err_fulltext_text_tmp ert"/> <prefix> create table #err_fulltext_text_tmp(Text nvarchar(4000), ArchiveNo int null, ctlgid int null, LogDate datetime null, ProcessInfo nvarchar(100) null) </prefix> <version min_major="7" max_major="8"> <prefix> declare @text_offset int declare @process_info_length int set @text_offset = 34 set @process_info_length = 10 </prefix> <prefix> <link_multiple no="1" expression=" create table #err_fulltext_text_tmp2(id int IDENTITY(0, 1), Text nvarchar(max), ContinuationRow bit, ArchiveNo int null, ctlgid int null) declare @ArchiveNo int declare @cont_row int set @dbid = db_id() declare crs cursor local fast_forward for ( {0} ) for read only open crs fetch crs into @ArchiveNo, @ctlgid while @@fetch_status >= 0 begin insert #err_fulltext_text_tmp2 (Text, ContinuationRow) exec master.dbo.xp_readerrorlog @ArchiveNo, 3, @dbid, @ctlgid update #err_fulltext_text_tmp2 set ArchiveNo = @ArchiveNo, ctlgid = @ctlgid where ctlgid is null fetch crs into @ArchiveNo, @ctlgid end close crs deallocate crs declare @off int select @off = 1 while exists ( select ContinuationRow from #err_fulltext_text_tmp2 where ContinuationRow = 1 ) begin update #err_fulltext_text_tmp2 set Text = Text + isnull((select t2.Text from #err_fulltext_text_tmp2 t2 where t2.id = #err_fulltext_text_tmp2.id + @off and t2.ContinuationRow = 1), '') where ContinuationRow = 0 delete from #err_fulltext_text_tmp2 where ContinuationRow = 1 and @off >= id - ( select max(t2.id) from #err_fulltext_text_tmp2 t2 where t2.ContinuationRow = 0 and t2.id < #err_fulltext_text_tmp2.id) set @off = @off + 1 end insert #err_fulltext_text_tmp select Text = CASE WHEN Text like '[1-2][0-9][0-9][0-9]-[0-2][0-9]-[0-3][0-9] [0-6][0-9]:[0-6][0-9]:[0-9][0-9]%' then /*structured row: remove date/spid part */ SUBSTRING(Text, @text_offset, 4000) else /*non structured row*/ Text end, ArchiveNo, ctlgid, LogDate = CASE WHEN Text like '[1-2][0-9][0-9][0-9]-[0-2][0-9]-[0-3][0-9] [0-6][0-9]:[0-6][0-9]:[0-9][0-9]%' then /*structured row: get date part */ CONVERT(datetime, LEFT(Text, 23), 121) else /*non structured row*/ null end, ProcessInfo = CASE WHEN Text like '[1-2][0-9][0-9][0-9]-[0-2][0-9]-[0-3][0-9] [0-6][0-9]:[0-6][0-9]:[0-9][0-9]%' then /*structured row: get spid part */ rtrim(SUBSTRING(Text, 24, @process_info_length)) else /*non structured row*/ null end from #err_fulltext_text_tmp2 where ContinuationRow = 0 drop table #err_fulltext_text_tmp2"> <link_field field="ParentSelect"/> </link_multiple> </prefix> </version> <version min_major="9" max_major="9"> <prefix> <link_multiple no="1" expression=" declare @ArchiveNo int declare @cont_row int set @dbid = db_id() declare crs cursor local fast_forward for ( {0} ) for read only open crs fetch crs into @ArchiveNo, @ctlgid while @@fetch_status >= 0 begin insert #err_fulltext_text_tmp (LogDate, ProcessInfo, Text) exec master.dbo.xp_readerrorlog @ArchiveNo, 3, @dbid, @ctlgid update #err_fulltext_text_tmp set ArchiveNo = @ArchiveNo, ctlgid = @ctlgid where ctlgid is null fetch crs into @ArchiveNo, @ctlgid end close crs deallocate crs "> <link_field field="ParentSelect"/> </link_multiple> </prefix> </version> <postfix> drop table #err_fulltext_text_tmp </postfix> </settings> <properties> <property name="LogDate" type="datetime">ert.LogDate</property> <property name="ProcessInfo" type="nvarchar" size="100">ert.ProcessInfo</property> <property name="Text" type="nvarchar" size="4000">ert.Text</property> <property name="ArchiveNo" type="int" hidden="true">ert.ArchiveNo</property> <property name="CatalogId" type="int" hidden="true">ert.ctlgid</property> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="ErrorLog" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <request_parent_select> <field name="ID"/> </request_parent_select> <property_link table="#fulltext_log_tmp er"/> <prefix> <link_multiple no="1" expression=" create table #fulltext_log_tmp(ArchiveNo int, CreateDate nvarchar(24), Size int, ctlgid int null) declare @ctlgid int declare @dbid int set @dbid = db_id() declare crs_ctlg cursor local fast_forward for({0}) for read only open crs_ctlg fetch next from crs_ctlg into @ctlgid while 0 = @@fetch_status begin insert #fulltext_log_tmp (ArchiveNo, CreateDate, Size) exec master.dbo.xp_enumerrorlogs 3, @dbid, @ctlgid update #fulltext_log_tmp set ctlgid = @ctlgid where ctlgid is null fetch next from crs_ctlg into @ctlgid end close crs_ctlg deallocate crs_ctlg"> <link_field field="ParentSelect"/> </link_multiple> </prefix> <postfix> drop table #fulltext_log_tmp </postfix> </settings> <properties> <property name="Urn" type="nvarchar" size="600"> <link_multiple no="3" expression="{0} + '/{2}[@ArchiveNo=''' + CAST({1} AS sysname) + ''']'"> <link_field type="parent" field="Urn"/> <link_field type="local" field="ArchiveNo"/> <link_field field="NType"/> </link_multiple> </property> <property name="Name" type="sysname" cast="true" access="read">er.ArchiveNo</property> <property name="ArchiveNo" type="int" access="read">er.ArchiveNo</property> <property name="CreateDate" type="datetime" access="read">CONVERT(datetime, er.CreateDate, 101)</property> <property name="Size" type="int" access="read">er.Size</property> <property name="CatalogId" type="int" hidden="true">er.ctlgid</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="OLEDBProvider" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <property_link table="#OLEDBProv" alias="op"/> <property_link fields="#AllowInProcess#DisallowAdHocAccess#DynamicParameters#IndexAsAccessPath#LevelZeroOnly#NestedQueries#NonTransactedUpdates#SqlServerLike#" join="#oledbprop" alias="o">o.provider_name=op.Name</property_link> <prefix> create table #OLEDBProv (id int identity(1,1), Name sysname NOT NULL, ParseName sysname NOT NULL,Description sysname NOT NULL ) </prefix> <version min_major="7" max_major="7"> <prefix> insert #OLEDBProv (Name, ParseName,Description) EXECUTE master.dbo.xp_enum_oledb_providers </prefix> </version> <version min_major="8" max_major="9"> <prefix> insert #OLEDBProv (Name, ParseName,Description) EXECUTE master.dbo.sp_enum_oledb_providers </prefix> </version> <prefix> delete from #OLEDBProv where exists ( select 1 from #OLEDBProv oprov where oprov.Name = #OLEDBProv.Name and oprov.id < #OLEDBProv.id ) </prefix> <version min_major="7" max_major="8"> <prefix fields="#AllowInProcess#DisallowAdHocAccess#DynamicParameters#IndexAsAccessPath#LevelZeroOnly#NestedQueries#NonTransactedUpdates#SqlServerLike#"> create table #oledbprop (allow_in_process bit, disallow_adhoc_access bit, dynamic_parameters bit, index_as_access_path bit, level_zero_only bit, nested_queries bit, non_transacted_updates bit, sql_server_like bit, provider_name sysname null) declare name_cursor cursor local fast_forward FOR (select Name from #OLEDBProv) open name_cursor DECLARE @providername sysname FETCH NEXT FROM name_cursor INTO @providername WHILE (@@FETCH_STATUS <> -1) BEGIN IF (@@FETCH_STATUS <> -2) BEGIN SELECT @providername = RTRIM(@providername) declare @regpath nvarchar(255) set @regpath = N'SOFTWARE\Microsoft\MSSQLServer\Providers\' + @providername declare @allow_in_process int declare @disallow_adhoc_access int declare @dynamic_parameters int declare @index_as_access_path int declare @level_zero_only int declare @nested_queries int declare @non_transacted_updates int declare @sql_server_like int </prefix> </version> <version min_major="7" max_major="7"> <prefix fields="#AllowInProcess#DisallowAdHocAccess#DynamicParameters#IndexAsAccessPath#LevelZeroOnly#NestedQueries#NonTransactedUpdates#SqlServerLike#"> exec master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', @regpath, 'AllowInProcess', @allow_in_process OUTPUT exec master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', @regpath, 'DisallowAdHocAccess', @disallow_adhoc_access OUTPUT exec master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', @regpath, 'DynamicParameters', @dynamic_parameters OUTPUT exec master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', @regpath, 'IndexAsAccessPath', @index_as_access_path OUTPUT exec master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', @regpath, 'LevelZeroOnly', @level_zero_only OUTPUT exec master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', @regpath, 'NestedQueries', @nested_queries OUTPUT exec master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', @regpath, 'NonTransactedUpdates', @non_transacted_updates OUTPUT exec master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', @regpath, 'SqlServerLIKE', @sql_server_like OUTPUT </prefix> </version> <version min_major="8" max_major="8"> <prefix fields="#AllowInProcess#DisallowAdHocAccess#DynamicParameters#IndexAsAccessPath#LevelZeroOnly#NestedQueries#NonTransactedUpdates#SqlServerLike#"> exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', @regpath, 'AllowInProcess', @allow_in_process OUTPUT exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', @regpath, 'DisallowAdHocAccess', @disallow_adhoc_access OUTPUT exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', @regpath, 'DynamicParameters', @dynamic_parameters OUTPUT exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', @regpath, 'IndexAsAccessPath', @index_as_access_path OUTPUT exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', @regpath, 'LevelZeroOnly', @level_zero_only OUTPUT exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', @regpath, 'NestedQueries', @nested_queries OUTPUT exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', @regpath, 'NonTransactedUpdates', @non_transacted_updates OUTPUT exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', @regpath, 'SqlServerLIKE', @sql_server_like OUTPUT </prefix> </version> <version min_major="7" max_major="8"> <prefix fields="#AllowInProcess#DisallowAdHocAccess#DynamicParameters#IndexAsAccessPath#LevelZeroOnly#NestedQueries#NonTransactedUpdates#SqlServerLike#"> insert #oledbprop (allow_in_process, disallow_adhoc_access, dynamic_parameters, index_as_access_path, level_zero_only, nested_queries, non_transacted_updates, sql_server_like, provider_name) select IsNull(@allow_in_process, 0), IsNull(@disallow_adhoc_access, 0), IsNull(@dynamic_parameters, 0), IsNull(@index_as_access_path, 0), IsNull(@level_zero_only, 0), IsNull(@nested_queries, 0), IsNull(@non_transacted_updates, 0), IsNull(@sql_server_like, 0), @providername END FETCH NEXT FROM name_cursor INTO @providername END CLOSE name_cursor DEALLOCATE name_cursor </prefix> </version> <version min_major="9" max_major="9"> <prefix fields="#AllowInProcess#DisallowAdHocAccess#DynamicParameters#IndexAsAccessPath#LevelZeroOnly#NestedQueries#NonTransactedUpdates#SqlServerLike#"> create table #oledbprop (allow_in_process bit, disallow_adhoc_access bit, dynamic_parameters bit, index_as_access_path bit, level_zero_only bit, nested_queries bit, non_transacted_updates bit, sql_server_like bit, provider_name sysname null) declare name_cursor cursor local fast_forward FOR (select Name from #OLEDBProv) open name_cursor DECLARE @providername sysname FETCH NEXT FROM name_cursor INTO @providername WHILE (@@FETCH_STATUS <> -1) BEGIN IF (@@FETCH_STATUS <> -2) BEGIN SELECT @providername = RTRIM(@providername) insert #oledbprop (provider_name, allow_in_process, disallow_adhoc_access, dynamic_parameters, index_as_access_path, level_zero_only, nested_queries, non_transacted_updates, sql_server_like) exec master.dbo.sp_MSset_oledb_prop @providername END FETCH NEXT FROM name_cursor INTO @providername END CLOSE name_cursor DEALLOCATE name_cursor </prefix> </version> <postfix fields="#AllowInProcess#DisallowAdHocAccess#DynamicParameters#IndexAsAccessPath#LevelZeroOnly#NestedQueries#NonTransactedUpdates#SqlServerLike#"> drop table #oledbprop </postfix> <postfix> drop table #OLEDBProv</postfix> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname" access="Read">op.Name</property> <property name="Description" type="sysname" access="Read">op.Description</property> <property name="AllowInProcess" type="bit">o.allow_in_process</property> <property name="DisallowAdHocAccess" type="bit">o.disallow_adhoc_access</property> <property name="DynamicParameters" type="bit">o.dynamic_parameters</property> <property name="IndexAsAccessPath" type="bit">o.index_as_access_path</property> <property name="LevelZeroOnly" type="bit">o.level_zero_only</property> <property name="NestedQueries" type="bit">o.nested_queries</property> <property name="NonTransactedUpdates" type="bit">o.non_transacted_updates</property> <property name="SqlServerLike" type="bit">o.sql_server_like</property> </properties> </EnumObject> w <?xml version="1.0"?> <EnumObject type="Certificates" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="sys.certificates" alias="c"/> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">c.name</property> <property name="ID" type="int">c.certificate_id</property> <property name="Owner" type="sysname">user_name(c.principal_id)</property> <property name="PrivateKeyEncryptionType" type="int" report_type="PrivateKeyEncryptionType" access="read">case c.pvt_key_encryption_type when 'NA' then 0 when 'MK' then 1 when 'PW' then 2 end</property> <property name="Issuer" type="nvarchar" size="256" access="read">c.issuer_name</property> <property name="Serial" type="nvarchar" size="64" access="read">c.cert_serial_number</property> <property name="Sid" type="varbinary" size="128" access="read">c.sid</property> <property name="Subject" type="nvarchar" size="4000">c.subject</property> <property name="ExpirationDate" type="datetime">c.expiry_date</property> <property name="StartDate" type="datetime">c.start_date</property> <property name="Thumbprint" type="varbinary" size="32" access="read">c.thumbprint</property> <property name="ActiveForServiceBrokerDialog" type="bit">c.is_active_for_begin_dialog</property> <!-- not available <property name='CreateDate' type='datetime'>c.create_date</property> <property name='DateLastModified' type='datetime'>c.modify_date</property> --> <!-- enable permissions --> <property name="ExtPropClass" type="int" hidden="true">25</property> <property name="ExtPropMajorID" type="int" hidden="true"> <link_multiple no="1" expression="{0}"> <link_field type="local" field="ID"/> </link_multiple> </property> <property name="ExtPropMinorID" type="int" hidden="true">0</property> </properties> </EnumObject> G <?xml version="1.0"?> <EnumObject type="ProxyAccountPrincipal " impl_type="SqlObject" min_major="9" max_major="9"> <settings> <version min_major="9" max_major="9"> <parent_link> <link parent="ID" local="ParentID"/> </parent_link> <property_link table="#tmp_sp_enum_login_for_proxy" alias="spl"/> <prefix> create table #tmp_sp_enum_login_for_proxy(proxy_id int null, proxy_name nvarchar(128), flags int null, name nvarchar(128) null, sid varbinary(85) null, principal_id int null ) insert into #tmp_sp_enum_login_for_proxy(proxy_id, proxy_name, flags, name, sid, principal_id) exec msdb.dbo.sp_enum_login_for_proxy </prefix> <postfix> drop table #tmp_sp_enum_login_for_proxy </postfix> </version> </settings> <properties> <include file="inc_urn.xml"/> <property name="NType" type="sysname" access="Read" hidden="true">ProxyAccountPrincipal</property> <version min_major="9" max_major="9"> <property name="Name" type="sysname">spl.name</property> <property name="Flag" type="int">spl.flags</property> <property name="ParentID" type="int" hidden="true">spl.proxy_id</property> </version> </properties> </EnumObject> \ <?xml version="1.0"?> <EnumObject type="AgentSubSystem" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="ID" local="ProxyID"/> </parent_link> <property_link table="#tmp_sp_help_proxy_subsystem" alias="tsepfs"/> <prefix> create table #tmp_sp_enum_sqlagent_subsystems (subsystem nvarchar(max) null, description nvarchar(max) null, subsystem_dll nvarchar(max) null, agent_exe nvarchar(max) null, start_entry_point nvarchar(max) null, event_entry_point nvarchar(max) null, stop_entry_point nvarchar(max) null, max_worker_threads int null, subsystem_id int null) create table #tmp_sp_help_proxy_subsystem(subsystem nvarchar(max) null, proxy_id int null, name nvarchar(128) null, credential_identity nvarchar(128) null, enabled tinyint null, description nvarchar(1024) null, user_sid varbinary(40) null, credential_id int null, credential_identity_exists int null) insert into #tmp_sp_enum_sqlagent_subsystems(subsystem, description, subsystem_dll, agent_exe, start_entry_point, event_entry_point, stop_entry_point, max_worker_threads, subsystem_id) exec msdb.dbo.sp_enum_sqlagent_subsystems declare @subsystem nvarchar(max) declare @login sysname set @login = suser_sname() declare crs insensitive cursor for ( select subsystem from #tmp_sp_enum_sqlagent_subsystems ) for read only open crs fetch crs into @subsystem while @@fetch_status >= 0 begin if 'TSQL' != @subsystem begin insert into #tmp_sp_help_proxy_subsystem(proxy_id, name, credential_identity, enabled, description, user_sid, credential_id, credential_identity_exists) exec msdb.dbo.sp_help_proxy @subsystem_name = @subsystem, @name = @login update #tmp_sp_help_proxy_subsystem set subsystem = @subsystem where subsystem is null end fetch crs into @subsystem end close crs deallocate crs </prefix> <postfix> drop table #tmp_sp_help_proxy_subsystem </postfix> <postfix> drop table #tmp_sp_enum_sqlagent_subsystems </postfix> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">tsepfs.subsystem</property> <property name="ProxyID" type="int" hidden="true">tsepfs.proxy_id</property> </properties> </EnumObject> F <?xml version="1.0"?> <EnumObject type="ProxyAccount" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="#tmp_sp_help_proxy" alias="tshp"/> <property_link fields="#CredentialName#" join="sys.credentials" alias="sc">sc.credential_id = tshp.credential_id</property_link> <prefix> create table #tmp_sp_help_proxy(proxy_id int null, name nvarchar(128) null, credential_identity nvarchar(128) null, enabled tinyint null, description nvarchar(1024) null, user_sid varbinary(40) null, credential_id int null, credential_identity_exists int null) insert into #tmp_sp_help_proxy(proxy_id, name, credential_identity, enabled, description, user_sid, credential_id, credential_identity_exists) exec msdb.dbo.sp_help_proxy </prefix> <postfix> drop table #tmp_sp_help_proxy </postfix> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">tshp.name</property> <property name="ID" type="int">tshp.proxy_id</property> <property name="IsEnabled" type="bit" cast="true">tshp.enabled</property> <property name="Description" type="nvarchar" size="1024">ISNULL(tshp.description,N'')</property> <property name="CredentialID" type="int" access="Read">tshp.credential_id</property> <property name="CredentialName" type="nvarchar" size="300">ISNULL(sc.name,N'')</property> <property name="CredentialIdentity" type="nvarchar" size="128" access="Read">ISNULL(tshp.credential_identity,N'')</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="Logmarkhistory" impl_type="SqlObject" min_major="8" max_major="9"> <settings> <property_link table="msdb.dbo.logmarkhistory" alias="l"/> </settings> <properties> <property name="DatabaseName" type="nvarchar" size="128">l.database_name</property> <property name="MarkName" type="nvarchar" size="128">l.mark_name</property> <property name="Description" type="nvarchar" size="255">l.description</property> <property name="UserName" type="nvarchar" size="128">l.user_name</property> <property name="LogSequenceNumber" type="numeric">l.lsn</property> <property name="CommitTime " type="datetime">l.mark_time</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="Sysdbmaintplans" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <property_link table="msdb.dbo.sysdbmaintplans" alias="s"/> </settings> <properties> <include file="inc_urn.xml"/> <property name="ID" type="uniqueidentifier">s.plan_id</property> <property name="Name" type="sysname">s.plan_name</property> <property name="DateCreated" type="datetime">s.date_created</property> <property name="Owner" type="sysname">s.owner</property> <property name="MaxHistoryRows" type="int">s.max_history_rows</property> <property name="RemoteHistoryServer" type="sysname">s.remote_history_server</property> <property name="MaxRemoteHistoryRows" type="int">s.max_remote_history_rows</property> <version min_major="8" max_major="9"> <property name="LogShipping" type="bit">s.log_shipping</property> </version> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="MaintenancePlan" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="ID" local="ParentID"/> </parent_link> <property_link table="msdb.dbo.sysmaintplan_logdetail" alias="ld"/> </settings> <properties> <property name="Line1" type="nvarchar" size="256">ld.line1</property> <property name="Line2" type="nvarchar" size="256">ld.line2</property> <property name="Line3" type="nvarchar" size="256">ld.line3</property> <property name="Line4" type="nvarchar" size="256">ld.line4</property> <property name="Line5" type="nvarchar" size="256">ld.line5</property> <property name="ServerName" type="sysname">ld.server_name</property> <property name="StartTime" type="datetime">ld.start_time</property> <property name="EndTime" type="datetime">ld.end_time</property> <property name="ErrorNo" type="int">ld.error_number</property> <property name="ErrorMessage" type="nvarchar" size="max">ld.error_message</property> <property name="Command" type="nvarchar" size="max">ld.command</property> <property name="Succeeded" type="bit">ld.succeeded</property> <property name="ParentID" type="uniqueidentifier" hidden="true">ld.task_detail_id</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="MaintenancePlan" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="ID" local="ParentID"/> </parent_link> <property_link table="msdb.dbo.sysmaintplan_log" alias="spl"/> </settings> <properties> <property name="Urn" type="nvarchar" size="600"> <link_multiple no="3" expression="{0} + '/{2}[@ID=''' + cast ({1} as nvarchar(36)) + ''']'"> <link_field type="parent" field="Urn"/> <link_field type="local" field="ID"/> <link_field field="NType"/> </link_multiple> </property> <property name="ID" type="uniqueidentifier">spl.task_detail_id</property> <property name="StartTime" type="datetime">spl.start_time</property> <property name="EndTime" type="datetime">spl.end_time</property> <property name="Succeeded" type="bit">spl.succeeded</property> <property name="ParentID" type="uniqueidentifier" hidden="true">spl.subplan_id</property> </properties> </EnumObject> < <?xml version="1.0"?> <EnumObject type="MaintenancePlan" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="ID" local="ParentID"/> </parent_link> <property_link table="msdb.dbo.sysmaintplan_subplans" alias="sp"/> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">sp.subplan_name</property> <property name="ID" type="uniqueidentifier">sp.subplan_id</property> <property name="Description" type="nvarchar" size="512">sp.subplan_description</property> <property name="JobID" type="uniqueidentifier">sp.job_id</property> <property name="ScheduleID" type="int">sp.schedule_id</property> <property name="ParentID" type="uniqueidentifier" hidden="true">sp.plan_id</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="MaintenancePlan" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="msdb.dbo.sysmaintplan_plans" alias="s"/> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">s.name</property> <property name="ID" type="uniqueidentifier">s.id</property> <property name="Description" type="nvarchar" size="1024">s.description</property> <property name="CreateDate" type="datetime">s.create_date</property> <property name="Owner" type="sysname">s.owner</property> <property name="VersionMajor" type="int">s.version_major</property> <property name="VersionMinor" type="int">s.version_minor</property> <property name="VersionBuild" type="int">s.version_build</property> <property name="VersionComments" type="nvarchar" size="1024">s.version_comments</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="inc_urn_soapmethod" impl_type="SqlObject" min_major="7" max_major="9"> <settings> </settings> <properties> <property name="Urn" type="nvarchar" size="600"> <link_multiple no="4" expression="{0} + '/{1}[@Name=' + quotename(cast(cast({2} as varbinary(256)) as sysname),'''') collate database_default + ' and @Namespace=' + quotename({3},'''') + ']'"> <link_field type="parent" field="Urn"/> <link_field field="NType"/> <link_field type="local" field="Name"/> <link_field type="local" field="Namespace"/> </link_multiple> </property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="Param" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <parent_link> <link parent="ID" local="ParentID"/> </parent_link> <version min_major="7" max_major="8"> <property_link table="syscolumns" alias="param">param.number = 1</property_link> </version> <version min_major="9" max_major="9"> <property_link table="sys.all_parameters" alias="param"/> </version> </settings> <properties> <include file="parameter.xml"/> <version min_major="7" max_major="8"> <property name="IsOutputParameter" type="bit" cast="true">CASE param.isoutparam WHEN 1 THEN param.isoutparam WHEN 0 THEN CASE param.name WHEN '' THEN 1 ELSE 0 END END</property> </version> <version min_major="9" max_major="9"> <property name="IsOutputParameter" type="bit">param.is_output</property> </version> <property name="Number" type="int" hidden="true">1</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="Database" impl_type="Database" min_major="7" max_major="9"> <settings> <version min_major="9" max_major="9"> <property_link fields="#MirroringRedoQueueMaxSize#MirroringTimeout#" left_join="sys.database_mirroring AS dmi">dmi.database_id = dtb.database_id</property_link> </version> <!-- add this empty prefix to force inclusion of the sysdatabases table from the parent--> <prefix> <link_multiple no="1" expression=""> <link_field type="parent" field="ID"/> </link_multiple> </prefix> <version min_major="8" max_major="8"> <post_process fields="#DatabaseOwnershipChaining#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessDatabaseInsideAttribs" triggered_fields="#DatabaseNameOptions#"/> </version> </settings> <properties> <version min_major="7" max_major="8"> <property name="AutoClose" type="bit" cast="true">dtb.status & 1</property> <property name="AutoShrink" type="bit" cast="true">dtb.status & 4194304</property> </version> <version min_major="9" max_major="9"> <property name="AnsiNullDefault" type="bit">dtb.is_ansi_null_default_on</property> <property name="AnsiNullsEnabled" type="bit">dtb.is_ansi_nulls_on</property> <property name="AnsiPaddingEnabled" type="bit">dtb.is_ansi_padding_on</property> <property name="AnsiWarningsEnabled" type="bit">dtb.is_ansi_warnings_on</property> <property name="ArithmeticAbortEnabled" type="bit">dtb.is_arithabort_on</property> <property name="AutoClose" type="bit">dtb.is_auto_close_on</property> <property name="AutoCreateStatistics" type="bit">dtb.is_auto_create_stats_on</property> <property name="AutoShrink" type="bit">dtb.is_auto_shrink_on</property> <property name="AutoUpdateStatistics" type="bit">dtb.is_auto_update_stats_on</property> <property name="CloseCursorsOnCommitEnabled" type="bit">dtb.is_cursor_close_on_commit_on</property> <property name="ConcatenateNullYieldsNull" type="bit">dtb.is_concat_null_yields_null_on</property> <property name="NumericRoundAbortEnabled" type="bit">dtb.is_numeric_roundabort_on</property> <property name="QuotedIdentifiersEnabled" type="bit">dtb.is_quoted_identifier_on</property> <property name="ReadOnly" type="bit">dtb.is_read_only</property> <property name="RecursiveTriggersEnabled" type="bit">dtb.is_recursive_triggers_on</property> <property name="LocalCursorsDefault" type="bit">dtb.is_local_cursor_default</property> <property name="PageVerify" type="tinyint" report_type="PageVerify">dtb.page_verify_option</property> <property name="RecoveryModel" type="int" report_type="RecoveryModel">dtb.recovery_model</property> <property name="UserAccess" type="int" report_type="DatabaseUserAccess">dtb.user_access</property> <property name="SnapshotIsolationState" type="tinyint" report_type="SnapshotIsolationState" access="Read">dtb.snapshot_isolation_state</property> <property name="DatabaseOwnershipChaining" type="bit">dtb.is_db_chaining_on</property> <property name="AutoUpdateStatisticsAsync" type="bit">dtb.is_auto_update_stats_async_on</property> <property name="DateCorrelationOptimization" type="bit">dtb.is_date_correlation_on</property> <property name="BrokerEnabled" type="bit">dtb.is_broker_enabled</property> <property name="Trustworthy" type="bit">dtb.is_trustworthy_on</property> <property name="IsParameterizationForced" type="bit">dtb.is_parameterization_forced</property> <property name="MirroringRedoQueueMaxSize" type="int">(case dmi.mirroring_redo_queue_type when N'UNLIMITED' then 0 else dmi.mirroring_redo_queue end)</property> <property name="MirroringTimeout" type="int">dmi.mirroring_connection_timeout</property> </version> <version min_major="8" max_major="8"> <property name="AnsiNullDefault" type="bit" cast="true">DATABASEPROPERTYEX(dtb.name, 'IsAnsiNullDefault')</property> <property name="AnsiNullsEnabled" type="bit" cast="true">DATABASEPROPERTYEX(dtb.name, 'IsAnsiNullsEnabled')</property> <property name="AnsiPaddingEnabled" type="bit" cast="true">DATABASEPROPERTYEX(dtb.name, 'IsAnsiPaddingEnabled')</property> <property name="AnsiWarningsEnabled" type="bit" cast="true">DATABASEPROPERTYEX(dtb.name, 'IsAnsiWarningsEnabled')</property> <property name="ArithmeticAbortEnabled" type="bit" cast="true">DATABASEPROPERTYEX(dtb.name, 'IsArithmeticAbortEnabled')</property> <property name="AutoCreateStatistics" type="bit" cast="true">DATABASEPROPERTYEX(dtb.name, 'IsAutoCreateStatistics')</property> <property name="AutoUpdateStatistics" type="bit" cast="true">DATABASEPROPERTYEX(dtb.name, 'IsAutoUpdateStatistics')</property> <property name="CloseCursorsOnCommitEnabled" type="bit" cast="true">DATABASEPROPERTYEX(dtb.name, 'IsCloseCursorsOnCommitEnabled')</property> <property name="ConcatenateNullYieldsNull" type="bit" cast="true">DATABASEPROPERTYEX(dtb.name, 'IsNullConcat')</property> <property name="NumericRoundAbortEnabled" type="bit" cast="true">DATABASEPROPERTYEX(dtb.name, 'IsNumericRoundAbortEnabled')</property> <property name="QuotedIdentifiersEnabled" type="bit" cast="true">DATABASEPROPERTYEX(dtb.name, 'IsQuotedIdentifiersEnabled')</property> <property name="ReadOnly" type="bit" cast="true">DATABASEPROPERTY(dtb.name, 'IsReadOnly')</property> <property name="RecursiveTriggersEnabled" type="bit" cast="true">DATABASEPROPERTYEX(dtb.name, 'IsRecursiveTriggersEnabled')</property> <property name="LocalCursorsDefault" type="bit" cast="true">DATABASEPROPERTYEX(dtb.name, 'IsLocalCursorsDefault')</property> <property name="PageVerify" type="tinyint" report_type="PageVerify">CASE WHEN 1=DATABASEPROPERTYEX(dtb.name, 'IsTornPageDetectionEnabled') THEN 1 ELSE 0 END</property> <property name="RecoveryModel" type="int" report_type="RecoveryModel">CASE DATABASEPROPERTYEX(dtb.name, 'Recovery') WHEN 'SIMPLE' THEN 3 WHEN 'BULK_LOGGED' THEN 2 ELSE /*FULL*/ 1 END</property> <property name="UserAccess" type="int" report_type="DatabaseUserAccess">CASE CONVERT(sysname,DATABASEPROPERTYEX(dtb.name, 'UserAccess')) WHEN 'SINGLE_USER' THEN 1 WHEN 'RESTRICTED_USER' THEN 2 ELSE /*MULTI_USER*/ 0 END</property> <property name="DatabaseOwnershipChaining" type="bit" cast="true" expensive="true">1</property> <property name="DatabaseNameOptions" type="sysname" hidden="true">dtb.name</property> </version> <version min_major="7" max_major="7"> <property name="AnsiNullDefault" type="bit" cast="true">DATABASEPROPERTY(dtb.name, 'IsAnsiNullDefault')</property> <property name="AnsiNullsEnabled" type="bit" cast="true">DATABASEPROPERTY(dtb.name, 'IsAnsiNullsEnabled')</property> <property name="AnsiWarningsEnabled" type="bit" cast="true">DATABASEPROPERTY(dtb.name, 'IsAnsiWarngingsEnabled')</property> <property name="AutoCreateStatistics" type="bit" cast="true">DATABASEPROPERTY(dtb.name, 'IsAutoCreateStatistics')</property> <property name="AutoUpdateStatistics" type="bit" cast="true">DATABASEPROPERTY(dtb.name, 'IsAutoUpdateStatistics')</property> <property name="CloseCursorsOnCommitEnabled" type="bit" cast="true">DATABASEPROPERTY(dtb.name, 'IsCloseCursorsOnCommitEnabled')</property> <property name="QuotedIdentifiersEnabled" type="bit" cast="true">DATABASEPROPERTY(dtb.name, 'IsQuotedIdentifiersEnabled')</property> <property name="RecursiveTriggersEnabled" type="bit" cast="true">DATABASEPROPERTY(dtb.name, 'IsRecursiveTriggersEnabled')</property> <property name="LocalCursorsDefault" type="bit" cast="true">DATABASEPROPERTY(dtb.name, 'IsLocalCursorsDefault')</property> <property name="RecoveryModel" type="int" report_type="RecoveryModel"> CASE WHEN 1=DATABASEPROPERTY(dtb.name, 'IsTruncLog') THEN CASE WHEN 1=DATABASEPROPERTY(dtb.name, 'IsBulkCopy') THEN NULL ELSE 3/*SIMPLE=trunc. log on chkpt.*/ END WHEN 1=DATABASEPROPERTY(dtb.name, 'IsBulkCopy') THEN 2 /*BULK_LOGGED*/ ELSE 1 END /*FULL*/ </property> <property name="UserAccess" type="int" report_type="DatabaseUserAccess"> CASE DATABASEPROPERTY(dtb.name, 'IsSingleUser') WHEN 1 THEN 1 ELSE (CASE DATABASEPROPERTY(dtb.name,'IsDboOnly') WHEN 0 THEN 0/*MULTI_USER*/ ELSE 1 END) END </property> </version> </properties> </EnumObject> D <?xml version="1.0"?> <EnumObject type="inc_urn_message" impl_type="SqlObject" min_major="7" max_major="9"> <settings> </settings> <properties> <property name="Urn" type="nvarchar" size="600"> <link_multiple no="4" expression="{0} + '/{1}[@ID=' + cast ({2} as nvarchar(20)) + ' and @Language=' + quotename({3},'''') + ']'"> <link_field type="parent" field="Urn"/> <link_field field="NType"/> <link_field type="local" field="ID"/> <link_field type="local" field="Language"/> </link_multiple> </property> </properties> </EnumObject> 8 <?xml version="1.0"?> <EnumObject type="FragmentationDetailed" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <version min_major="8" max_major="8"> <prefix> <link_multiple no="1" expression=" create table #contig_tmp(ObjectName char(255) null, ObjectId int null, IndexName sysname null, IndexId int null, Level tinyint null, Pages bigint null, Rows bigint null, MinimumRecordSize int null, MaximumRecordSize int null, AverageRecordSize float null, ForwardedRecords bigint null, Extents int null, ExtentSwitches int null, AverageFreeBytes float null, AvgPageFullness float null, ScanDensity float null, BestCount int null, ActualCount int null, LogicalFragmentation float null, ExtentFragmentation float null) declare @IdxName sysname declare @TableId int declare @execStr nvarchar(255) declare crs insensitive cursor for ( {0} ) for read only open crs fetch crs into @TableId, @IdxName while @@fetch_status >= 0 begin set @execStr = 'DBCC SHOWCONTIG (' + QUOTENAME(object_name(@TableId), '''') + ',' + QUOTENAME(@IdxName, '''') + ') WITH TABLERESULTS' insert into #contig_tmp exec sp_executesql @execStr fetch crs into @TableId, @IdxName end close crs deallocate crs"> <link_field field="ParentSelect"/> </link_multiple> </prefix> </version> </settings> <properties> <include file="inc_IndexFrag.xml"/> <version min_major="9" max_major="9"> <property name="FragmentationLevel" type="sysname" hidden="true">DETAILED</property> </version> </properties> </EnumObject> 6 <?xml version="1.0"?> <EnumObject type="FragmentationSampled" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <version min_major="8" max_major="8"> <prefix> <link_multiple no="1" expression=" create table #contig_tmp(ObjectName char(255) null, ObjectId int null, IndexName sysname null, IndexId int null, Level tinyint null, Pages bigint null, Rows bigint null, MinimumRecordSize int null, MaximumRecordSize int null, AverageRecordSize float null, ForwardedRecords bigint null, Extents int null, ExtentSwitches int null, AverageFreeBytes float null, AvgPageFullness float null, ScanDensity float null, BestCount int null, ActualCount int null, LogicalFragmentation float null, ExtentFragmentation float null) declare @IdxName sysname declare @TableId int declare @execStr nvarchar(255) declare crs insensitive cursor for ( {0} ) for read only open crs fetch crs into @TableId, @IdxName while @@fetch_status >= 0 begin set @execStr = 'DBCC SHOWCONTIG (' + QUOTENAME(object_name(@TableId), '''') + ',' + QUOTENAME(@IdxName, '''') + ') WITH TABLERESULTS' insert into #contig_tmp exec sp_executesql @execStr fetch crs into @TableId, @IdxName end close crs deallocate crs"> <link_field field="ParentSelect"/> </link_multiple> </prefix> </version> </settings> <properties> <include file="inc_IndexFrag.xml"/> <version min_major="9" max_major="9"> <property name="FragmentationLevel" type="sysname" hidden="true">SAMPLED</property> </version> </properties> </EnumObject> @ <?xml version="1.0"?> <EnumObject type="FragmentationFast" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <version min_major="8" max_major="8"> <prefix> <link_multiple no="1" expression=" create table #contig_tmp(ObjectName char(255) null, ObjectId int null, IndexName sysname null, IndexId int null, Level tinyint null, Pages bigint null, Rows bigint null, MinimumRecordSize int null, MaximumRecordSize int null, AverageRecordSize float null, ForwardedRecords bigint null, Extents int null, ExtentSwitches int null, AverageFreeBytes float null, AvgPageFullness float null, ScanDensity float null, BestCount int null, ActualCount int null, LogicalFragmentation float null, ExtentFragmentation float null) declare @IdxName sysname declare @TableId int declare @execStr nvarchar(255) declare crs insensitive cursor for ( {0} ) for read only open crs fetch crs into @TableId, @IdxName while @@fetch_status >= 0 begin set @execStr = 'DBCC SHOWCONTIG (' + QUOTENAME(object_name(@TableId), '''') + ',' + QUOTENAME(@IdxName, '''') + ') WITH TABLERESULTS, FAST' insert into #contig_tmp exec sp_executesql @execStr fetch crs into @TableId, @IdxName end close crs deallocate crs"> <link_field field="ParentSelect"/> </link_multiple> </prefix> </version> </settings> <properties> <include file="inc_IndexFrag.xml"/> <version min_major="9" max_major="9"> <property name="FragmentationLevel" type="sysname" hidden="true">LIMITED</property> </version> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="Inc_Fragmentation" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <version min_major="7" max_major="7"> <post_process class_name="Microsoft.SqlServer.Management.Smo.PostProcessFragmentation" triggered_fields="#IndexID#TableID#DatabaseName#"/> </version> <version min_major="8" max_major="8"> <parent_link> <link parent="Name" local="IndexName"/> </parent_link> <request_parent_select> <field name="ParentID"/> <field name="Name"/> </request_parent_select> <property_link table="#contig_tmp as fi"/> <postfix> drop table #contig_tmp </postfix> </version> <version min_major="9" max_major="9"> <parent_link> <link parent="TableID" local="TableID"/> <link parent="IndexID" local="IndexID"/> </parent_link> <property_link expression_is_for_table_name="true" alias="fi"> <link_multiple no="1" expression="sys.dm_db_index_physical_stats(@database_id, NULL, NULL, NULL, '{0}')"> <link_field type="local" field="FragmentationLevel"/> </link_multiple> </property_link> <prefix> declare @database_id int select @database_id = db_id() </prefix> </version> </settings> <properties> <version min_major="7" max_major="7"> <property name="IndexID" type="int" hidden="true"> <link_multiple no="1" expression="{0}"> <link_field type="parent" field="ID"/> </link_multiple> </property> <property name="TableID" type="int" hidden="true"> <link_multiple no="1" expression="{0}"> <link_field type="parent" field="ParentID"/> </link_multiple> </property> <property name="DatabaseName" type="sysname" hidden="true">db_name()</property> <property name="Pages" type="int">null</property> <property name="Extents" type="int">null</property> <property name="ExtentSwitches" type="int">null</property> <property name="AverageFreeBytes" type="float">null</property> <property name="AveragePageDensity" type="float">null</property> <property name="ScanDensity" type="float">null</property> <property name="LogicalFragmentation" type="float">null</property> <property name="ExtentFragmentation" type="float">null</property> </version> <version min_major="8" max_major="8"> <property name="IndexName" type="sysname" hidden="true" cast="true">cast(fi.IndexName as varbinary(256))</property> <property name="Depth" type="tinyint">fi.Level</property> <property name="Pages" type="bigint">fi.Pages</property> <property name="Rows" type="bigint">fi.Rows</property> <property name="MinimumRecordSize" type="int">fi.MinimumRecordSize</property> <property name="MaximumRecordSize" type="int">fi.MaximumRecordSize</property> <property name="AverageRecordSize" type="float">fi.AverageRecordSize</property> <property name="ForwardedRecords" type="bigint">fi.ForwardedRecords</property> <property name="Extents" type="int">fi.Extents</property> <property name="ExtentSwitches" type="int">fi.ExtentSwitches</property> <property name="AverageFreeBytes" type="float">fi.AverageFreeBytes</property> <property name="AveragePageDensity" type="float">fi.AvgPageFullness</property> <property name="ScanDensity" type="float">fi.ScanDensity</property> <property name="BestCount" type="int">fi.BestCount</property> <property name="ActualCount" type="int">fi.ActualCount</property> <property name="LogicalFragmentation" type="float">fi.LogicalFragmentation</property> <property name="ExtentFragmentation" type="float">fi.ExtentFragmentation</property> </version> <version min_major="9" max_major="9"> <property name="IndexID" type="int" hidden="true">fi.index_id</property> <property name="TableID" type="int" hidden="true">fi.object_id</property> <property name="Depth" type="tinyint">fi.index_depth</property> <property name="Pages" type="bigint">fi.page_count</property> <property name="Rows" type="bigint">fi.record_count</property> <property name="MinimumRecordSize" type="int">fi.min_record_size_in_bytes</property> <property name="MaximumRecordSize" type="int">fi.max_record_size_in_bytes</property> <property name="AverageRecordSize" type="float">fi.avg_record_size_in_bytes</property> <property name="ForwardedRecords" type="bigint">fi.forwarded_record_count</property> <property name="AveragePageDensity" type="float">fi.avg_page_space_used_in_percent</property> <property name="IndexType" type="nvarchar" size="30">fi.index_type_desc</property> <property name="PartitionNumber" type="int">fi.partition_number</property> <property name="GhostRows" type="bigint">fi.ghost_record_count</property> <property name="VersionGhostRows" type="bigint">fi.version_ghost_record_count</property> <property name="AverageFragmentation" type="float">fi.avg_fragmentation_in_percent</property> </version> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="Collation" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="sys.synonyms" alias="s"/> <post_process fields="#BaseServer#BaseDatabase#BaseSchema#BaseObject#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessSplitFourPartName" triggered_fields="#BaseObjectName#"/> </settings> <properties> <include file="inc_object.xml" alias="s" for="#Urn#Name#Schema#ID#CreateDate#DateLastModified#"/> <property name="BaseServer" type="nvarchar" usage="request">N''</property> <property name="BaseDatabase" type="nvarchar" usage="request">N''</property> <property name="BaseSchema" type="nvarchar" usage="request">N''</property> <property name="BaseObject" type="nvarchar" usage="request">N''</property> <property name="BaseObjectName" type="nvarchar" size="1035" hidden="true">s.base_object_name</property> </properties> </EnumObject> 5 <?xml version="1.0"?> <EnumObject type="UserDefinedMessage" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <version min_major="7" max_major="8"> <property_link table="master.dbo.sysmessages AS sms">sms.error > 50000</property_link> <property_link fields="#Language#" left_join="master.dbo.syslanguages AS sl ">sms.msglangid = sl.lcid</property_link> </version> <version min_major="9" max_major="9"> <property_link table="sys.messages AS sms">sms.message_id > 50000</property_link> <property_link fields="#Language#" left_join="master.dbo.syslanguages AS sl ">sms.language_id = sl.lcid</property_link> </version> </settings> <properties> <include file="inc_urn_message.xml"/> <version min_major="7" max_major="8"> <property name="ID" type="int" access="rw">sms.error</property> <property name="IsLogged" type="bit" cast="true">sms.dlevel</property> <property name="Severity" type="int" cast="true">sms.severity</property> <property name="Text" type="nvarchar" size="255">sms.description</property> <property name="LanguageID" type="int" cast="true">sms.msglangid</property> <property name="Language" type="sysname">sl.name</property> </version> <version min_major="9" max_major="9"> <property name="ID" type="int" access="rw">sms.message_id</property> <property name="IsLogged" type="bit" cast="true">sms.is_event_logged</property> <property name="Severity" type="int" cast="true">sms.severity</property> <property name="Text" type="nvarchar" size="255">sms.text</property> <property name="LanguageID" type="int" cast="true">sms.language_id</property> <property name="Language" type="sysname">sl.name</property> </version> </properties> </EnumObject> z <?xml version="1.0"?> <EnumObject type="SystemMessage" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <version min_major="7" max_major="8"> <property_link table="master.dbo.sysmessages AS sms">sms.error < 50001</property_link> <property_link fields="#Language#" left_join="syslanguages AS sl ">sms.msglangid = sl.lcid</property_link> </version> <version min_major="9" max_major="9"> <property_link table="sys.messages AS sms">sms.message_id < 50001</property_link> <property_link fields="#Language#" left_join="syslanguages AS sl ">sms.language_id = sl.lcid</property_link> </version> </settings> <properties> <include file="inc_urn_message.xml"/> <version min_major="7" max_major="8"> <property name="ID" type="int" access="Read">sms.error</property> <property name="IsLogged" type="bit" cast="true" access="Read">sms.dlevel</property> <property name="Severity" type="tinyint" access="Read" cast="true">sms.severity</property> <property name="Text" type="nvarchar" size="255" access="Read">sms.description</property> <property name="LanguageID" type="int" access="Read" cast="true">sms.msglangid</property> <property name="Language" type="sysname" access="Read">sl.name</property> </version> <version min_major="9" max_major="9"> <property name="ID" type="int" access="Read" cast="true">sms.message_id</property> <property name="IsLogged" type="bit" cast="true" access="Read">sms.is_event_logged</property> <property name="Severity" type="tinyint" access="Read" cast="true">sms.severity</property> <property name="Text" type="nvarchar" size="255" access="Read">sms.text</property> <property name="LanguageID" type="int" access="Read" cast="true">sms.language_id</property> <property name="Language" type="sysname" access="Read">sl.name</property> </version> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="Permission" impl_type="SqlObject" min_major="9" max_major="9"> <union> <settings> <include file="inc_perm.xml" alias="server"/> <property_link fields="#ObjectName#" join="sys.server_principals" alias="sp">sp.principal_id = prmssn.major_id and prmssn.class = 101</property_link> </settings> <properties> <property name="Code" type="int" report_type="ObjectPermissionSetValue">null</property> <property name="ObjectName" type="sysname">sp.name</property> <property name="ObjectSchema" type="sysname">NULL</property> <property name="ColumnName" type="sysname">NULL</property> <property name="ObjectID" type="int">prmssn.major_id</property> </properties> </union> <union> <settings> <include file="inc_perm.xml" alias="server"/> <property_link fields="#ObjectName#" join="sys.certificates" alias="c">c.certificate_id = prmssn.major_id and prmssn.class = 106</property_link> </settings> <properties> <property name="Code" type="int" report_type="ObjectPermissionSetValue">null</property> <property name="ObjectName" type="sysname">c.name</property> <property name="ObjectSchema" type="sysname">NULL</property> <property name="ColumnName" type="sysname">NULL</property> <property name="ObjectID" type="int">prmssn.major_id</property> </properties> </union> <union> <settings> <include file="inc_perm.xml" alias="server"/> <property_link fields="#ObjectName#" join="sys.endpoints" alias="e">e.endpoint_id = prmssn.major_id and prmssn.class = 105</property_link> </settings> <properties> <property name="Code" type="int" report_type="ObjectPermissionSetValue">null</property> <property name="ObjectName" type="sysname">e.name</property> <property name="ObjectSchema" type="sysname">NULL</property> <property name="ColumnName" type="sysname">NULL</property> <property name="ObjectID" type="int">prmssn.major_id</property> </properties> </union> </EnumObject> <?xml version="1.0"?> <EnumObject type="Permission" impl_type="SqlObject" min_major="7" max_major="9"> <union> <settings> <include file="inc_perm.xml" alias="database"/> <version max_major="9" min_major="9"> <property_link fields="#ObjectName#ObjectSchema#" join="sys.all_objects AS obj">obj.object_id = prmssn.major_id and prmssn.class = 1</property_link> </version> </settings> <properties> <property name="Code" type="int" report_type="ObjectPermissionSetValue">null</property> <version min_major="7" max_major="8"> <property name="ObjectName" type="sysname">object_name(prmssn.id)</property> <property name="ObjectSchema" type="sysname">user_name(prmssn.uid)</property> <property name="ColumnName" type="sysname">null</property> <property name="ObjectID" type="int">prmssn.id</property> </version> <version max_major="9" min_major="9"> <property name="ObjectName" type="sysname">obj.name</property> <property name="ObjectSchema" type="sysname">schema_name(obj.schema_id)</property> <property name="ColumnName" type="sysname">COL_NAME(prmssn.major_id,prmssn.minor_id)</property> <property name="ObjectID" type="int">prmssn.major_id</property> </version> </properties> </union> <version max_major="9" min_major="9"> <union> <settings> <include file="inc_perm.xml" alias="database"/> <property_link fields="#ObjectName#" join="sys.schemas AS obj">obj.schema_id = prmssn.major_id and prmssn.class = 3</property_link> </settings> <properties> <property name="Code" type="int" report_type="ObjectPermissionSetValue">null</property> <property name="ObjectName" type="sysname">obj.name</property> <property name="ObjectSchema" type="sysname">null</property> <property name="ColumnName" type="sysname">null</property> <property name="ObjectID" type="int">prmssn.major_id</property> </properties> </union> <union> <settings> <include file="inc_perm.xml" alias="database"/> <property_link fields="#ObjectName#" join="sys.database_principals AS obj">obj.principal_id = prmssn.major_id and prmssn.class = 4</property_link> </settings> <properties> <property name="Code" type="int" report_type="ObjectPermissionSetValue">null</property> <property name="ObjectName" type="sysname">obj.name</property> <property name="ObjectSchema" type="sysname">null</property> <property name="ColumnName" type="sysname">null</property> <property name="ObjectID" type="int">prmssn.major_id</property> </properties> </union> <union> <settings> <include file="inc_perm.xml" alias="database"/> <property_link fields="#ObjectName#" join="sys.assemblies AS obj">obj.assembly_id = prmssn.major_id and prmssn.class = 5</property_link> </settings> <properties> <property name="Code" type="int" report_type="ObjectPermissionSetValue">null</property> <property name="ObjectName" type="sysname">obj.name</property> <property name="ObjectSchema" type="sysname">null</property> <property name="ColumnName" type="sysname">null</property> <property name="ObjectID" type="int">prmssn.major_id</property> </properties> </union> <union> <settings> <include file="inc_perm.xml" alias="database"/> <property_link fields="#ObjectName#" join="sys.types AS obj">obj.user_type_id = prmssn.major_id and prmssn.class = 6</property_link> </settings> <properties> <property name="Code" type="int" report_type="ObjectPermissionSetValue">null</property> <property name="ObjectName" type="sysname">obj.name</property> <property name="ObjectSchema" type="sysname">null</property> <property name="ColumnName" type="sysname">null</property> <property name="ObjectID" type="int">prmssn.major_id</property> </properties> </union> <union> <settings> <include file="inc_perm.xml" alias="database"/> <property_link fields="#ObjectName#" join="sys.fulltext_catalogs AS obj">obj.fulltext_catalog_id = prmssn.major_id and prmssn.class = 23</property_link> </settings> <properties> <property name="Code" type="int" report_type="ObjectPermissionSetValue">null</property> <property name="ObjectName" type="sysname">obj.name</property> <property name="ObjectSchema" type="sysname">null</property> <property name="ColumnName" type="sysname">null</property> <property name="ObjectID" type="int">prmssn.major_id</property> </properties> </union> </version> </EnumObject> C <?xml version="1.0"?> <EnumObject type="Permission" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <version max_major="9" min_major="9"> <parent_link> <link parent="ExtPropMajorID" local="MajorID"/> <link parent="ExtPropMinorID" local="MinorID"/> <link parent="ExtPropClass" local="TrueObjectClass"/> </parent_link> </version> </settings> <properties> <include file="inc_perm.xml" alias="database"/> <property name="Code" type="int" report_type="ObjectPermissionSetValue">null</property> </properties> </EnumObject> G <?xml version="1.0"?> <EnumObject type="Permission" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <version max_major="9" min_major="9"> <parent_link> <link parent="ExtPropMajorID" local="MajorID"/> <link parent="ExtPropMinorID" local="MinorID"/> <link parent="ExtPropClass" local="TrueObjectClass"/> </parent_link> </version> </settings> <properties> <include file="inc_perm.xml" alias="database"/> <property name="Code" type="int" report_type="ObjectPermissionSetValue">null</property> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="Permission" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <include file="ShilohYukonPerm.xml"/> <version min_major="7" max_major="8"> <property_link table="master.dbo.spt_values a"> (( prmssn.action in (193, 197) and ((prmssn.columns & 1) = 1) ) or ( prmssn.action in (195, 196, 224, 26) )) and (convert(tinyint, substring( isnull(prmssn.columns, 0x01), a.low, 1)) & a.high != 0) and a.type = N'P' and a.number = 0 </property_link> </version> <version min_major="9" max_major="9"> <property_link>prmssn.minor_id = 0</property_link> </version> </settings> <properties> <property name="Dummy" type="nvarchar" size="300" hidden="true"/> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="Permission" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <version max_major="9" min_major="9"> <property_link>prmssn.class = 100</property_link> </version> </settings> <properties> <include file="inc_perm.xml" alias="server"/> <property name="Code" type="int" report_type="ServerPermissionSetValue">null</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="Permission" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="ID" local="MajorID"/> <link parent="PermissionClass" local="TrueObjectClass"/> </parent_link> </settings> <properties> <include file="inc_perm.xml" alias="server"/> <property name="Code" type="int" report_type="ObjectPermissionSetValue">null</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="Permission" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <version min_major="7" max_major="8"> <parent_link> <link parent="ExtPropMajorID" local="MajorID"/> </parent_link> </version> <version max_major="9" min_major="9"> <parent_link> <link parent="ExtPropMajorID" local="MajorID"/> <link parent="ExtPropMinorID" local="MinorID"/> <link parent="ExtPropClass" local="TrueObjectClass"/> </parent_link> </version> </settings> <properties> <include file="inc_perm.xml" alias="database"/> <property name="Code" type="int" report_type="ObjectPermissionSetValue">null</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="Permission" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <version min_major="7" max_major="8"> <property_link table="dbo.sysprotects AS prmssn"/> <property_link fields="#CodeDescription#" join="master.dbo.spt_values AS val1">val1.number = prmssn.protecttype and val1.type = 'T'</property_link> <property_link fields="#StateDescription#" join="master.dbo.spt_values AS val2">val2.number = prmssn.action and val2.type = 'T'</property_link> <property_link fields="#Grantee#GranteeType#Name#" join="sysusers AS grantee_principal">grantee_principal.uid = prmssn.uid</property_link> <property_link fields="#Grantor#GrantorType#Name#" join="sysusers AS grantor_principal">grantor_principal.uid = prmssn.grantor</property_link> </version> <version min_major="9" max_major="9"> <property_link table="sys.{0}_permissions AS prmssn"/> <property_link fields="#Grantee#GranteeType#Name#" join="sys.{0}_principals AS grantee_principal">grantee_principal.principal_id = prmssn.grantee_principal_id</property_link> <property_link fields="#Grantor#GrantorType#Name#" join="sys.{0}_principals AS grantor_principal">grantor_principal.principal_id = prmssn.grantor_principal_id</property_link> </version> <post_process fields="#Code#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessPermissionCode" triggered_fields="#SqlCodePP#"/> </settings> <properties> <version min_major="7" max_major="8"> <property name="Name" type="nvarchar" size="512">grantee_principal.name + N'_' + convert(nvarchar(10), (CASE when 1 = grantee_principal.issqlrole THEN 3 WHEN 1 = grantee_principal.isapprole THEN 4 ELSE 2 END)) + N'_' + grantor_principal.name + N'_' + convert(nvarchar(10), (CASE when 1 = grantor_principal.issqlrole THEN 3 WHEN 1 = grantor_principal.isapprole THEN 4 ELSE 2 END)) + N'_' + convert(nvarchar(10), (prmssn.id)) + N'_' + convert(nvarchar(10), prmssn.protecttype) + N'_' + convert(nvarchar(10), prmssn.action) </property> <property name="Grantee" type="sysname">grantee_principal.name</property> <property name="GranteeType" type="int" report_type="PrincipalType">CASE when 1 = grantee_principal.issqlrole THEN 3 WHEN 1 = grantee_principal.isapprole THEN 4 ELSE 2 END</property> <property name="Grantor" type="sysname">grantor_principal.name</property> <property name="GrantorType" type="int" report_type="PrincipalType">CASE when 1 = grantor_principal.issqlrole THEN 3 WHEN 1 = grantor_principal.isapprole THEN 4 ELSE 2 END</property> <property name="ObjectClass" type="int" report_type="ObjectClass">CASE prmssn.id WHEN 0 THEN 0 ELSE 1 END </property> <!-- Grant_WGO 204 ascii('W') Grant 205 ascii('G') Deny 206 ascii('D') --> <property name="PermissionState" type="int" report_type="PermissionState">CASE prmssn.protecttype WHEN 204 THEN 87 WHEN 205 THEN 71 WHEN 206 THEN 68 END</property> <!-- mark them expensive, we only want them used in special cases --> <property name="IntCode" type="int" expensive="true" cast="true">prmssn.protecttype</property> <property name="CodeDescription" type="nvarchar" size="100" expensive="true">val1.name</property> <property name="StateDescription" type="nvarchar" size="100" expensive="true">val2.name</property> <!-- hidden properties --> <property name="TrueObjectClass" type="int" hidden="true">CASE prmssn.id WHEN 0 THEN 0 ELSE 1 END </property> <property name="SqlCodePP" type="int" cast="true" hidden="true">prmssn.action</property> <property name="MajorID" type="int" hidden="true">prmssn.id</property> </version> <version min_major="9" max_major="9"> <property name="Name" type="nvarchar" size="512">grantee_principal.name + N'_' + convert(nvarchar(10), (CASE grantee_principal.type WHEN 'R' THEN 3 WHEN 'A' THEN 4 ELSE 2 END - CASE '{0}' WHEN 'database' THEN 0 ELSE 2 END)) + N'_' + grantor_principal.name + N'_' + convert(nvarchar(10), (CASE grantor_principal.type WHEN 'R' THEN 3 WHEN 'A' THEN 4 ELSE 2 END - CASE '{0}' WHEN 'database' THEN 0 ELSE 2 END)) + N'_' + convert(nvarchar(10), (CASE WHEN (prmssn.class=4 or prmssn.class=100 )THEN CASE (SELECT oc.type FROM sys.{0}_principals AS oc WHERE oc.principal_id = prmssn.major_id) WHEN 'R' THEN 201 WHEN 'A' THEN 202 ELSE 200 END + CASE prmssn.class WHEN 4 THEN 0 ELSE 100 END ELSE prmssn.class END)) + N'_' + convert(nvarchar(10), ascii(prmssn.state)) + N'_' + convert(varchar(10), convert(varbinary(10), prmssn.type)) </property> <property name="Grantee" type="sysname">grantee_principal.name</property> <property name="GranteeType" type="int" report_type="PrincipalType">CASE grantee_principal.type WHEN 'R' THEN 3 WHEN 'A' THEN 4 ELSE 2 END - CASE '{0}' WHEN 'database' THEN 0 ELSE 2 END</property> <property name="Grantor" type="sysname">grantor_principal.name</property> <property name="GrantorType" type="int" report_type="PrincipalType">CASE grantor_principal.type WHEN 'R' THEN 3 WHEN 'A' THEN 4 ELSE 2 END - CASE '{0}' WHEN 'database' THEN 0 ELSE 2 END</property> <property name="ObjectClass" type="int" report_type="ObjectClass">CASE WHEN (prmssn.class=4 or prmssn.class=100 )THEN CASE (SELECT oc.type FROM sys.{0}_principals AS oc WHERE oc.principal_id = prmssn.major_id) WHEN 'R' THEN 201 WHEN 'A' THEN 202 ELSE 200 END + CASE prmssn.class WHEN 4 THEN 0 ELSE 100 END ELSE prmssn.class END</property> <property name="PermissionState" type="int" report_type="PermissionState">ascii(prmssn.state)</property> <!-- mark them expensive, we only want them used in special cases --> <property name="StringCode" type="char" size="4" expensive="true">prmssn.type</property> <property name="StringState" type="char" size="1" expensive="true">prmssn.state</property> <!-- hidden properties --> <property name="TrueObjectClass" type="int" hidden="true">prmssn.class</property> <property name="SqlCodePP" type="char" size="4" hidden="true">prmssn.type</property> <property name="MajorID" type="int" hidden="true">prmssn.major_id</property> <property name="MinorID" type="int" hidden="true">prmssn.minor_id</property> </version> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="Permission" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <version min_major="7" max_major="8"> <property_link>prmssn.id = 0</property_link> </version> <version max_major="9" min_major="9"> <property_link>prmssn.class = 0</property_link> </version> </settings> <properties> <include file="inc_perm.xml" alias="database"/> <property name="Code" type="int" report_type="DatabasePermissionSetValue">null</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="Permission" impl_type="SqlObject" min_major="7" max_major="9"> <settings distinct="true"> <parent_link> <link parent="Name" local="Grantee"/> </parent_link> <property_link table="dbo.sysusers usr, master.dbo.spt_values spv"> usr.uid >= 16384 and usr.uid <= 16393 and spv.type = 'DBR' and ((usr.uid = 16384 and spv.number >= 16384 and spv.number < 16392) or (usr.uid <> 16384 and usr.uid = spv.number)) and spv.low > 0 </property_link> </settings> <properties> <property name="Grantee" type="sysname">usr.name</property> <property name="Description" type="sysname">spv.name</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="Permission" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <version min_major="7" max_major="8"> <parent_link> <link_multiple no="3" expression="(prmssn.protecttype in (204,206) or /*grant exists without same grant with grant */ (prmssn.protecttype = 205 and not exists(select * from dbo.sysprotects p2 where p2.id = prmssn.id and p2.uid = prmssn.uid and p2.action = prmssn.action and p2.columns = prmssn.columns and p2.grantor = prmssn.grantor and p2.protecttype = 204))) and prmssn.action in (26,193,197) and prmssn.id = {1} and (((convert(tinyint,substring(prmssn.columns,1,1))&1) = 0 and (convert(int,substring(prmssn.columns,{0}/8+1,1))&power(2,{0}&7)) != 0) or ((convert(tinyint,substring(prmssn.columns,1,1))&1) != 0 and (convert(int,substring(prmssn.columns,{0}/8+1,1))&power(2,{0}&7)) = 0)) and 0 != (permissions({1}, {2}) & case prmssn.action when 26 then 4 /*REFERENCES basebit */ when 193 then 1 /*SELECT basebit */ when 197 then 2 /*UPDATE basebit */end)"> <link_field type="parent" field="ID"/> <link_field type="parent" field="ParentID"/> <link_field type="parent" field="Name"/> </link_multiple> </parent_link> </version> <version max_major="9" min_major="9"> <parent_link> <link parent="ExtPropMajorID" local="MajorID"/> <link parent="ExtPropMinorID" local="MinorID"/> <link parent="ExtPropClass" local="TrueObjectClass"/> </parent_link> </version> </settings> <properties> <include file="inc_perm.xml" alias="database"/> <property name="Code" type="int" report_type="ObjectPermissionSetValue">null</property> <property name="ColumnName" type="sysname"> <link_multiple no="1" expression="{0}"> <link_field type="parent" field="Name"/> </link_multiple> </property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="DatabaseActiveDirectory" impl_type="SqlObject" min_major="8" max_major="9"> <settings> <prefix fields="#IsRegistered#"> declare @SmoActiveDirectory sysname declare @RegPath nvarchar(1024) select @RegPath = N'Software\Microsoft\MSSQLServer\SQLServerSCP\' + db_name() exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', @RegPath, N'objectGUID', @SmoActiveDirectory OUTPUT </prefix> </settings> <properties> <property name="IsRegistered" type="bit" cast="true" access="Read">CASE WHEN (@SmoActiveDirectory IS NULL) THEN 0 ELSE 1 END</property> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="ServerActiveDirectory" impl_type="SqlObject" min_major="8" max_major="9"> <settings> <property_link table="#temp_ad AS ad"/> <prefix fields="#IsRegistered#"> declare @scmPath sysname select @scmPath = N'Software\Microsoft\MSSQLServer\SQLServerSCP' declare @SmoActiveDirectory sysname exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', @scmPath, N'objectGUID', @SmoActiveDirectory OUTPUT </prefix> <prefix> DECLARE @res INT CREATE table #temp_ad(result BIT) EXECUTE @res = master.dbo.xp_MSADEnabled if @res = 0 INSERT INTO #temp_ad VALUES (1) else INSERT INTO #temp_ad VALUES (0) </prefix> <postfix> DROP table #temp_ad </postfix> </settings> <properties> <property name="IsEnabled" type="bit" cast="true" access="Read">ad.result</property> <property name="IsRegistered" type="bit" cast="true" access="Read">CASE WHEN (@SmoActiveDirectory IS NULL) THEN 0 ELSE 1 END</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="PerfInfo" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <property_link table="#temp_agent_perf_info AS spi"/> <version min_major="7" max_major="7"> <prefix> DECLARE @instance_name sysname SELECT @instance_name = null SELECT @instance_name = N'SQLAgent:' </prefix> </version> <version min_major="8" max_major="9"> <prefix> DECLARE @instance_name sysname SELECT @instance_name = CONVERT(sysname, SERVERPROPERTY('InstanceName')) IF @instance_name IS NULL SELECT @instance_name = N'SQLAgent:' ELSE SELECT @instance_name = N'MSSQLAgent$' + @instance_name + N':' </prefix> </version> <prefix> CREATE TABLE #temp_agent_perf_info(object_name nvarchar(256), counter_name nvarchar(256), instance_name nvarchar(256)) CREATE TABLE #temp_job_instances (instance_name nvarchar(20)) INSERT INTO #temp_job_instances VALUES(N'_Total') INSERT INTO #temp_job_instances VALUES(N'Schedules') INSERT INTO #temp_job_instances VALUES(N'Alerts') INSERT INTO #temp_job_instances VALUES(N'Others') -- Job object INSERT INTO #temp_agent_perf_info SELECT @instance_name + N'Jobs' , N'Active Jobs', s.instance_name FROM #temp_job_instances s INSERT INTO #temp_agent_perf_info SELECT @instance_name + N'Jobs' , N'Successful jobs', s.instance_name FROM #temp_job_instances s INSERT INTO #temp_agent_perf_info SELECT @instance_name + N'Jobs' , N'Failed jobs', s.instance_name FROM #temp_job_instances s INSERT INTO #temp_agent_perf_info SELECT @instance_name + N'Jobs' , N'Successful jobs ratio', s.instance_name FROM #temp_job_instances s INSERT INTO #temp_agent_perf_info SELECT @instance_name + N'Jobs' , N'Jobs launched/min', s.instance_name FROM #temp_job_instances s INSERT INTO #temp_agent_perf_info SELECT @instance_name + N'Jobs' , N'Queued jobs', s.instance_name FROM #temp_job_instances s --JobStep object </prefix> <version min_major="7" max_major="8"> <prefix> CREATE TABLE #temp_jobstep_instances (subsystem NVARCHAR(40) NULL) insert #temp_jobstep_instances values('ActiveScripting') insert #temp_jobstep_instances values('CmdExec') insert #temp_jobstep_instances values('TSQL') -- Check if replication is installed DECLARE @replication_installed int </prefix> </version> <version min_major="7" max_major="7"> <prefix> EXECUTE master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', N'SOFTWARE\Microsoft\MSSQLServer\Replication', N'IsInstalled', @replication_installed OUTPUT, N'no_output' </prefix> </version> <version min_major="8" max_major="8"> <prefix> EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'SOFTWARE\Microsoft\MSSQLServer\Replication', N'IsInstalled', @replication_installed OUTPUT, N'no_output' </prefix> </version> <version min_major="7" max_major="8"> <prefix> SELECT @replication_installed = ISNULL(@replication_installed, 0) if 1 = @replication_installed begin insert #temp_jobstep_instances values('Distribution') insert #temp_jobstep_instances values('LogReader') insert #temp_jobstep_instances values('Merge') insert #temp_jobstep_instances values('Snapshot') end </prefix> </version> <version min_major="8" max_major="8"> <prefix> if 1 = @replication_installed begin insert #temp_jobstep_instances values('QueueReader') end </prefix> </version> <version min_major="9" max_major="9"> <prefix> CREATE TABLE #temp_jobstep_instances (subsystem NVARCHAR(40) NULL, description NVARCHAR(80) NULL, subsystem_dll NVARCHAR(255) NULL, agent_exe NVARCHAR(80) NULL, start_entry_point NVARCHAR(30) NULL, event_entry_point NVARCHAR(30) NULL, stop_entry_point NVARCHAR(30) NULL, max_worker_threads INT NULL, subsystem_id INT NULL) INSERT #temp_jobstep_instances EXEC msdb.dbo.sp_enum_sqlagent_subsystems </prefix> </version> <prefix> INSERT #temp_jobstep_instances ( subsystem ) VALUES (N'_Total') INSERT INTO #temp_agent_perf_info SELECT @instance_name + N'JobSteps' , N'Active steps', s.subsystem FROM #temp_jobstep_instances s INSERT INTO #temp_agent_perf_info SELECT @instance_name + N'JobSteps' , N'Queued steps', s.subsystem FROM #temp_jobstep_instances s INSERT INTO #temp_agent_perf_info SELECT @instance_name + N'JobSteps' , N'Total Step Retries', s.subsystem FROM #temp_jobstep_instances s --Alert object INSERT INTO #temp_agent_perf_info VALUES(@instance_name + N'Alert' , N'Activated Alerts', NULL) INSERT INTO #temp_agent_perf_info VALUES(@instance_name + N'Alert' , N'Alerts/min', NULL) --General object INSERT INTO #temp_agent_perf_info VALUES(@instance_name + N'Statistics' , N'Server Restarted', NULL) </prefix> <postfix> DROP TABLE #temp_job_instances DROP TABLE #temp_agent_perf_info DROP TABLE #temp_jobstep_instances </postfix> </settings> <properties> <property name="ObjectName" type="nchar" size="256">spi.object_name</property> <property name="CounterName" type="nchar" size="256">spi.counter_name</property> <property name="InstanceName" type="nchar" size="256">ISNULL(spi.instance_name,N'')</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="PerfInfo" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <property_link table="master.dbo.sysperfinfo AS spi"/> </settings> <properties> <property name="ObjectName" type="nchar" size="256">spi.object_name</property> <property name="CounterName" type="nchar" size="256">spi.counter_name</property> <property name="InstanceName" type="nchar" size="256">ISNULL(spi.instance_name,N'')</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="FullTextLanguage" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="sys.fulltext_languages AS ftl"/> </settings> <properties> <property name="Name" type="sysname" access="Read">ftl.name</property> <property name="Lcid" type="int" access="Read">ftl.lcid</property> </properties> </EnumObject> < <?xml version="1.0"?> <EnumObject type="OwnedObject" impl_type="SqlObject" min_major="9" max_major="9"> <union> <settings> <parent_link> <link parent="ID" local="SchemaID"/> </parent_link> <!-- filter out all objects which in their enumerator representation don't have a schema property --> <property_link table="sys.all_objects AS ownobj">ownobj.type not in ('PK', 'C ', 'F ', 'UQ') and ( ownobj.type != 'D' or 0 = ownobj.parent_object_id)</property_link> <property_link left_join="sys.all_objects AS ownobj_parent">ownobj_parent.object_id = ownobj.parent_object_id</property_link> <post_process fields="#Urn#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessOwnObjects" triggered_fields="#Type#ServerName#DatabaseName#Name#Schema#ParentName#ParentSchema#"/> </settings> <properties> <property name="Urn" type="nvarchar">null</property> <property name="ServerName" type="sysname" cast="true" hidden="true">serverproperty(N'Servername')</property> <property name="DatabaseName" type="sysname" hidden="true">db_name()</property> <property name="Name" type="sysname" hidden="true">ownobj.name</property> <property name="Type" type="sysname" hidden="true">ownobj.type</property> <property name="Schema" type="sysname" hidden="true">schema_name(ownobj.schema_id)</property> <property name="ParentName" type="sysname" hidden="true">ownobj_parent.name</property> <property name="ParentSchema" type="sysname" hidden="true">schema_name(ownobj_parent.schema_id)</property> <property name="SchemaID" type="sysname" hidden="true">ownobj.schema_id</property> </properties> </union> <union> <settings> <parent_link> <link parent="ID" local="SchemaID"/> </parent_link> <property_link table="sys.types AS ownobj">ownobj.schema_id != 4</property_link> <post_process fields="#Urn#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessOwnObjects" triggered_fields="#Type#ServerName#DatabaseName#Name#Schema#ParentName#ParentSchema#"/> </settings> <properties> <property name="Urn" type="nvarchar">null</property> <property name="ServerName" type="sysname" cast="true" hidden="true">serverproperty(N'Servername')</property> <property name="DatabaseName" type="sysname" hidden="true">db_name()</property> <property name="Name" type="sysname" hidden="true">ownobj.name</property> <property name="Type" type="sysname" hidden="true">CASE ownobj.system_type_id WHEN 240 THEN N'UDT' ELSE N'UDDT' END</property> <property name="Schema" type="sysname" hidden="true">schema_name(ownobj.schema_id)</property> <property name="ParentName" type="sysname" hidden="true">null</property> <property name="ParentSchema" type="sysname" hidden="true">null</property> <property name="SchemaID" type="sysname" hidden="true">ownobj.schema_id</property> </properties> </union> <union> <settings> <parent_link> <link parent="ID" local="SchemaID"/> </parent_link> <property_link table="sys.xml_schema_collections AS ownobj">ownobj.schema_id != 4</property_link> <post_process fields="#Urn#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessOwnObjects" triggered_fields="#Type#ServerName#DatabaseName#Name#Schema#ParentName#ParentSchema#"/> </settings> <properties> <property name="Urn" type="nvarchar">null</property> <property name="ServerName" type="sysname" cast="true" hidden="true">serverproperty(N'Servername')</property> <property name="DatabaseName" type="sysname" hidden="true">db_name()</property> <property name="Name" type="sysname" hidden="true">ownobj.name</property> <property name="Type" type="sysname" hidden="true">N'XMLSCHCOL'</property> <property name="Schema" type="sysname" hidden="true">schema_name(ownobj.schema_id)</property> <property name="ParentName" type="sysname" hidden="true">null</property> <property name="ParentSchema" type="sysname" hidden="true">null</property> <property name="SchemaID" type="sysname" hidden="true">ownobj.schema_id</property> </properties> </union> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="OwnedObject" impl_type="SqlObject" min_major="7" max_major="9"> <version min_major="7" max_major="8"> <union> <settings> <parent_link> <link parent="ID" local="PrincipalID"/> </parent_link> <property_link table="sysobjects AS ownobj">ownobj.type not in ( 'K', 'S' )</property_link> <property_link left_join="sysobjects AS ownobj_parent">ownobj_parent.id = ownobj.parent_obj</property_link> <post_process fields="#Urn#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessOwnObjects" triggered_fields="#Type#ServerName#DatabaseName#Name#Schema#ParentName#ParentSchema#"/> </settings> <properties> <property name="Urn" type="nvarchar" usage="request">null</property> <version min_major="7" max_major="7"> <property name="ServerName" type="sysname" cast="true" hidden="true">@@SERVERNAME</property> </version> <version min_major="8" max_major="8"> <property name="ServerName" type="sysname" cast="true" hidden="true">serverproperty(N'Servername')</property> </version> <property name="DatabaseName" type="sysname" hidden="true">db_name()</property> <property name="Name" type="sysname" hidden="true">ownobj.name</property> <property name="Type" type="sysname" hidden="true">ownobj.type</property> <property name="Schema" type="sysname" hidden="true">user_name(ownobj.uid)</property> <property name="ParentName" type="sysname" hidden="true">ownobj_parent.name</property> <property name="ParentSchema" type="sysname" hidden="true">user_name(ownobj_parent.uid)</property> <property name="PrincipalID" type="int" cast="true" hidden="true">ownobj.uid</property> </properties> </union> <union> <settings> <parent_link> <link parent="Name" local="PrincipalID"/> </parent_link> <property_link table="systypes AS ownobj"/> <post_process fields="#Urn#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessOwnObjects" triggered_fields="#Type#ServerName#DatabaseName#Name#Schema#ParentName#ParentSchema#"/> </settings> <properties> <property name="Urn" type="nvarchar" usage="request">null</property> <version min_major="7" max_major="7"> <property name="ServerName" type="sysname" cast="true" hidden="true">@@SERVERNAME</property> </version> <version min_major="8" max_major="8"> <property name="ServerName" type="sysname" cast="true" hidden="true">serverproperty(N'Servername')</property> </version> <property name="DatabaseName" type="sysname" hidden="true">db_name()</property> <property name="Name" type="sysname" hidden="true">ownobj.name</property> <property name="Type" type="sysname" hidden="true">N'UDDT'</property> <property name="Schema" type="sysname" hidden="true">N'dbo'</property> <property name="ParentName" type="sysname" hidden="true">null</property> <property name="ParentSchema" type="sysname" hidden="true">null</property> <property name="PrincipalID" type="sysname" hidden="true">N'dbo'</property> </properties> </union> </version> <version min_major="9" max_major="9"> <union> <settings> <parent_link> <link parent="ID" local="PrincipalID"/> </parent_link> <property_link table="sys.assemblies AS ownobj"/> <post_process fields="#Urn#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessOwnObjects" triggered_fields="#Type#ServerName#DatabaseName#Name#"/> </settings> <properties> <property name="Urn" type="nvarchar" usage="request">null</property> <property name="ServerName" type="sysname" cast="true" hidden="true">serverproperty(N'Servername')</property> <property name="DatabaseName" type="sysname" hidden="true">db_name()</property> <property name="Name" type="sysname" hidden="true">ownobj.name</property> <property name="Type" type="sysname" hidden="true">N'ASSEMBLY'</property> <property name="PrincipalID" type="int" hidden="true">ownobj.principal_id</property> </properties> </union> <union> <settings> <parent_link> <link parent="ID" local="PrincipalID"/> </parent_link> <property_link table="sys.schemas AS ownobj"/> <post_process fields="#Urn#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessOwnObjects" triggered_fields="#Type#ServerName#DatabaseName#Name#"/> </settings> <properties> <property name="Urn" type="nvarchar" usage="request">null</property> <property name="ServerName" type="sysname" cast="true" hidden="true">serverproperty(N'Servername')</property> <property name="DatabaseName" type="sysname" hidden="true">db_name()</property> <property name="Name" type="sysname" hidden="true">ownobj.name</property> <property name="Type" type="sysname" hidden="true">N'SCHEMA'</property> <property name="PrincipalID" type="int" hidden="true">ownobj.principal_id</property> </properties> </union> </version> </EnumObject> <?xml version="1.0"?> <EnumObject type="FullTextIndexColumn" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <parent_link> <link parent="ParentID" local="ParentID"/> </parent_link> <version min_major="7" max_major="8"> <property_link table="syscolumns cols">COLUMNPROPERTY(cols.id, cols.name, 'IsFulltextIndexed') <> 0</property_link> </version> <version min_major="8" max_major="8"> <property_link fields="#Language#" left_join="master.dbo.syslanguages AS sl">sl.lcid=cols.language</property_link> </version> <version min_major="9" max_major="9"> <property_link table="sys.fulltext_index_columns AS icol"/> <property_link fields="#Name#" join="sys.columns AS col">col.object_id = icol.object_id and col.column_id = icol.column_id</property_link> <property_link fields="#Language#" join="master.dbo.syslanguages AS sl">sl.lcid=icol.language_id</property_link> <property_link fields="#TypeColumnName#" left_join="sys.columns AS col2">col2.column_id = icol.type_column_id and col2.object_id = icol.object_id</property_link> </version> </settings> <properties> <include file="inc_urn.xml"/> <version min_major="7" max_major="8"> <property name="Name" type="sysname">cols.name</property> <property name="ParentID" type="int" hidden="true">cols.id</property> </version> <version min_major="7" max_major="7"> <property name="TypeColumnName" type="sysname">(select ISNULL(scol2.name,N'') from sysdepends as sdep, syscolumns as scol2 where cols.colid = sdep.number and cols.id = sdep.id and cols.id = scol2.id and sdep.depnumber = scol2.colid) </property> </version> <version min_major="8" max_major="8"> <property name="TypeColumnName" type="sysname">(select ISNULL(scol2.name,N'') from sysdepends as sdep, syscolumns as scol2 where cols.colid = sdep.number and cols.id = sdep.id and sdep.deptype = 1 and cols.id = scol2.id and sdep.depnumber = scol2.colid) </property> </version> <version min_major="8" max_major="8"> <property name="Language" type="sysname">sl.alias</property> </version> <version min_major="9" max_major="9"> <property name="Name" type="sysname">col.name</property> <property name="ParentID" type="int" hidden="true">icol.object_id</property> <property name="Language" type="sysname">sl.alias</property> <property name="TypeColumnName" type="sysname">ISNULL(col2.name,N'')</property> </version> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="FullTextIndex" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <version min_major="7" max_major="8"> <parent_link> <link parent="HasFullTextCatalog" local="HasFullTextCatalog"/> </parent_link> <property_link fields="#CatalogName#" join="sysfulltextcatalogs AS cat"> <link_multiple no="1" expression="cat.ftcatid=OBJECTPROPERTY({0}, 'TableFullTextCatalogId')"> <link_field type="parent" field="ID"/> </link_multiple> </property_link> <property_link fields="#UniqueIndexName#IsEnabled#PopulationStatus#ChangeTracking#" join="sysindexes AS si"> <link_multiple no="1" expression="si.id = {0} and INDEXPROPERTY({0}, si.name, 'IsFulltextKey') <> 0"> <link_field type="parent" field="ID"/> </link_multiple> </property_link> </version> <version min_major="9" max_major="9"> <parent_link> <link parent="ID" local="ParentID"/> </parent_link> <property_link table="sys.fulltext_indexes AS fti"/> <property_link fields="#CatalogName#" join="sys.fulltext_catalogs AS cat">cat.fulltext_catalog_id = fti.fulltext_catalog_id</property_link> <property_link fields="#UniqueIndexName#" join="sys.indexes AS si">si.index_id=fti.unique_index_id and si.object_id=fti.object_id</property_link> </version> </settings> <properties> <property name="Urn" type="nvarchar" size="600"> <link_multiple no="3" expression="{0} + '/{2}[@Name=' + quotename({1},'''') + ']'"> <link_field type="parent" field="Urn"/> <link_field type="parent" field="Name"/> <link_field field="NType"/> </link_multiple> </property> <property name="Name" type="sysname" expensive="true"> <link_multiple no="1" expression="{0}"> <link_field type="parent" field="Name"/> </link_multiple> </property> <property name="CatalogName" type="sysname">cat.name</property> <version min_major="7" max_major="8"> <property name="IsEnabled" type="bit" cast="true" access="Read"> <link_multiple no="1" expression="OBJECTPROPERTY({0},'TableHasActiveFulltextIndex')"> <link_field type="parent" field="ID"/> </link_multiple> </property> <property name="PopulationStatus" type="int" report_type="IndexPopulationStatus" access="Read"> <link_multiple no="1" expression="OBJECTPROPERTY({0},'TableFullTextPopulateStatus')"> <link_field type="parent" field="ID"/> </link_multiple> </property> <property name="ChangeTracking" type="int" report_type="ChangeTracking"> <link_multiple no="1" expression="ISNULL(OBJECTPROPERTY({0},'TableFullTextBackgroundUpdateIndexOn'),0) + ISNULL(OBJECTPROPERTY({0},'TableFullTextChangeTrackingOn'),0)"> <link_field type="parent" field="ID"/> </link_multiple> </property> <property name="ParentID" type="int" hidden="true"> <link_multiple no="1" expression="{0}"> <link_field type="parent" field="ID"/> </link_multiple> </property> <property name="HasFullTextCatalog" type="bit" hidden="true">1</property> </version> <version min_major="9" max_major="9"> <property name="IsEnabled" type="bit" cast="true" access="Read">fti.is_enabled</property> <property name="PopulationStatus" type="int" report_type="IndexPopulationStatus" access="Read">OBJECTPROPERTY(fti.object_id,'TableFullTextPopulateStatus')</property> <property name="ChangeTracking" type="int" report_type="ChangeTracking">(case change_tracking_state when 'M' then 1 when 'A' then 2 else 0 end)</property> <property name="ItemCount" type="int" access="Read">OBJECTPROPERTY(fti.object_id,'TableFullTextItemCount')</property> <property name="DocumentsProcessed" type="int" access="Read">OBJECTPROPERTY(fti.object_id,'TableFullTextDocsProcessed')</property> <property name="PendingChanges" type="int" access="Read">OBJECTPROPERTY(fti.object_id,'TableFullTextPendingChanges')</property> <property name="NumberOfFailures" type="int" access="Read">OBJECTPROPERTY(fti.object_id,'TableFullTextFailCount')</property> <property name="ParentID" type="int" hidden="true">fti.object_id</property> </version> <property name="UniqueIndexName" type="sysname">si.name</property> </properties> </EnumObject> 6 <?xml version="1.0"?> <EnumObject type="Schema" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="sys.schemas AS s"/> <property_link fields="#Owner#" join="sys.database_principals AS dp1">dp1.principal_id = s.principal_id</property_link> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">s.name</property> <property name="ID" type="int">s.schema_id</property> <property name="Owner" type="sysname">dp1.name</property> <!-- extended properties support --> <property name="ExtPropClass" type="int" hidden="true">3</property> <property name="ExtPropMajorID" type="int" hidden="true">s.schema_id</property> <property name="ExtPropMinorID" type="int" hidden="true">0</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="FullTextCatalog" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <version min_major="9" max_major="9"> <property_link table="sys.fulltext_catalogs AS cat"/> <property_link fields="#FileGroup#" left_join="sys.filegroups AS fg">cat.data_space_id = fg.data_space_id</property_link> <property_link fields="#RootPath#HasFullTextIndexedTables#" left_join="#tmpcatinfo AS ci">ci.ftcatid = cat.fulltext_catalog_id</property_link> <property_link fields="#Owner#" left_join="sys.database_principals AS dp">cat.principal_id=dp.principal_id</property_link> </version> <version min_major="7" max_major="8"> <property_link table="sysfulltextcatalogs AS cat"/> <property_link fields="#RootPath#HasFullTextIndexedTables#" left_join="#tmpcatinfo AS ci">ci.ftcatid = cat.ftcatid</property_link> </version> <version min_major="8" max_major="9"> <prefix fields="#RootPath#HasFullTextIndexedTables#"> create table #tmpcatinfo ([ftcatid] smallint,[name] sysname,[path] nvarchar(260),[status] int,[number_fulltext_tables] int) if( 1 = DATABASEPROPERTYEX(db_name(), 'IsFulltextEnabled') ) begin insert #tmpcatinfo execute dbo.sp_help_fulltext_catalogs end </prefix> </version> <version min_major="7" max_major="7"> <prefix fields="#RootPath#HasFullTextIndexedTables#"> create table #tmpcatinfo ([ftcatid] smallint,[name] sysname,[path] nvarchar(260),[status] int,[number_fulltext_tables] int) if( 1 = DATABASEPROPERTY(db_name(), 'IsFulltextEnabled') ) begin insert #tmpcatinfo execute dbo.sp_help_fulltext_catalogs end </prefix> </version> <version min_major="7" max_major="9"> <postfix fields="#RootPath#HasFullTextIndexedTables#"> drop table #tmpcatinfo </postfix> </version> <post_process fields="#PopulationCompletionDate#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessCreateDateSeconds1990" triggered_fields="#PopulationCompletionDateInt#"/> <post_process fields="#PopulationCompletionAge#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessCreateTimeSpanHMS" triggered_fields="#PopulationCompletionAgeInt#PopulationCompletionAgeNow#"/> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">cat.name</property> <version min_major="9" max_major="9"> <property name="ID" type="int" access="Read">cat.fulltext_catalog_id</property> <property name="IsAccentSensitive" type="bit" cast="true">FULLTEXTCATALOGPROPERTY(cat.name,'AccentSensitivity')</property> <property name="IsDefault" type="bit" cast="true">cat.is_default</property> <property name="FileGroup" type="sysname">fg.name</property> <property name="Owner" type="sysname">dp.name</property> </version> <version min_major="7" max_major="8"> <property name="ID" type="int" cast="true" access="Read">cat.ftcatid</property> </version> <property name="ErrorLogSize" type="int" access="Read">FULLTEXTCATALOGPROPERTY(cat.name,'LogSize')</property> <property name="FullTextIndexSize" type="int" access="Read">FULLTEXTCATALOGPROPERTY(cat.name,'IndexSize')</property> <property name="ItemCount" type="int" access="Read">FULLTEXTCATALOGPROPERTY(cat.name,'ItemCount')</property> <property name="UniqueKeyCount" type="int" access="Read">FULLTEXTCATALOGPROPERTY(cat.name,'UniqueKeyCount')</property> <property name="PopulationStatus" type="int" report_type="CatalogPopulationStatus" access="Read">FULLTEXTCATALOGPROPERTY(cat.name,'PopulateStatus')</property> <property name="PopulationCompletionAgeInt" type="int" hidden="true">FULLTEXTCATALOGPROPERTY(cat.name,'PopulateCompletionAge')</property> <property name="PopulationCompletionAgeNow" type="datetime" hidden="true">GETDATE()</property> <property name="PopulationCompletionAge" type="int" report_type2="System.TimeSpan" access="Read">0</property> <property name="PopulationCompletionDateInt" type="int" hidden="true">FULLTEXTCATALOGPROPERTY(cat.name,'PopulateCompletionAge')</property> <property name="PopulationCompletionDate" type="datetime" access="Read">cast(null as datetime)</property> <property name="RootPath" type="nvarchar" size="260">ci.path</property> <property name="HasFullTextIndexedTables" type="bit" cast="true" access="Read">ci.number_fulltext_tables</property> <!-- extended properties support --> <property name="ExtPropClass" type="int" hidden="true">23</property> <property name="ExtPropMajorID" type="int" hidden="true"> <link_multiple no="1" expression="{0}"> <link_field type="local" field="ID"/> </link_multiple> </property> <property name="ExtPropMinorID" type="int" hidden="true">0</property> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="FullTextService" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <version min_major="7" max_major="9"> <prefix fields="#DefaultPath#"> DECLARE @FullTextDefaultPath NVARCHAR(512) EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'SOFTWARE\Microsoft\MSSQLServer\MSSQLServer', N'FullTextDefaultPath', @FullTextDefaultPath OUTPUT </prefix> </version> </settings> <properties> <include file="inc_urn.xml"/> <version min_major="7" max_major="7"> <property name="Name" type="sysname">@@SERVERNAME</property> </version> <version min_major="8" max_major="9"> <property name="Name" type="sysname" cast="true">serverproperty(N'Servername')</property> </version> <version min_major="7" max_major="9"> <property name="ResourceUsage" type="int" report_type="ResourceUsage">ISNULL(FULLTEXTSERVICEPROPERTY('ResourceUsage'), 0)</property> <property name="DefaultPath" type="nvarchar" size="512" access="Read">@FullTextDefaultPath</property> </version> <version min_major="7" max_major="8"> <property name="ConnectTimeout" type="int" report_type2="System.TimeSpan">ISNULL(FULLTEXTSERVICEPROPERTY('ConnectTimeout'),0) * 10000000</property> </version> <version min_major="8" max_major="8"> <property name="DataTimeout" type="int" report_type2="System.TimeSpan">ISNULL(FULLTEXTSERVICEPROPERTY('DataTimeout'),0) * 10000000</property> </version> <version min_major="9" max_major="9"> <property name="DataTimeout" type="int" report_type2="System.TimeSpan">0</property> <property name="AllowUnsignedBinaries" type="bit" cast="true">CASE WHEN FULLTEXTSERVICEPROPERTY('VerifySignature') = 0 THEN 1 WHEN FULLTEXTSERVICEPROPERTY('VerifySignature') = 1 THEN 0 ELSE 0 END</property> <property name="LoadOSResourcesEnabled" type="bit" cast="true">FULLTEXTSERVICEPROPERTY('LoadOSResources')</property> </version> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="UserDefinedAggregateParameter" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="ID" local="ParentID"/> </parent_link> <property_link table="sys.parameters AS par">par.is_output = 0</property_link> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">par.name</property> <property name="ID" type="int" access="Read">par.parameter_id</property> <property name="ParentID" type="int" hidden="true">par.object_id</property> <include file="inc_type.xml" alias="par"/> <!-- extended properties support --> <property name="ExtPropClass" type="int" hidden="true">2</property> <property name="ExtPropMajorID" type="int" hidden="true">par.object_id</property> <property name="ExtPropMinorID" type="int" hidden="true">par.parameter_id</property> </properties> </EnumObject> s <?xml version="1.0"?> <EnumObject type="UserDefinedAggregate" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="sys.objects AS obj">obj.type=N'AF'</property_link> <property_link fields="#ClassName#AssemblyName#" table="sys.assembly_modules AS am">am.object_id = obj.object_id</property_link> <property_link fields="#AssemblyName#" left_join="sys.assemblies AS asmbl">asmbl.assembly_id = am.assembly_id</property_link> <property_link fields="#DataType#DataTypeSchema#SystemType#Length#NumericPrecision#NumericScale#XmlSchemaNamespace#XmlSchemaNamespaceSchema#XmlDocumentConstraint#" left_join="sys.all_parameters AS ret_param">ret_param.object_id = obj.object_id and ret_param.is_output = 1</property_link> </settings> <properties> <include file="inc_object.xml" alias="obj" for="#Urn#Name#Schema#ID#CreateDate#DateLastModified#"/> <include file="inc_type.xml" alias="ret_param"/> <property name="AssemblyName" type="sysname">asmbl.name</property> <property name="ClassName" type="sysname">am.assembly_class</property> </properties> </EnumObject> + <?xml version="1.0"?> <EnumObject type="UserDefinedType" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="sys.assembly_types AS atypes"/> <property_link fields="#AssemblyName#" join="sys.assemblies AS asmbl">asmbl.assembly_id = atypes.assembly_id</property_link> </settings> <properties> <include file="inc_urn_schema.xml"/> <include file="inc_type_reference.xml" alias="atypes"/> <property name="ID" type="int" access="Read">atypes.user_type_id</property> <property name="MaxLength" type="int" access="Read" cast="true">atypes.max_length</property> <property name="Collation" type="sysname" access="Read">ISNULL(atypes.collation_name,N'')</property> <property name="NumericPrecision" type="int" access="Read" cast="true">atypes.precision</property> <property name="NumericScale" type="int" access="Read" cast="true">atypes.scale</property> <property name="IsNullable" type="bit" cast="true" access="Read">atypes.is_nullable</property> <property name="AssemblyName" type="sysname">asmbl.name</property> <property name="ClassName" type="sysname">ISNULL(atypes.assembly_class,N'')</property> <property name="IsBinaryOrdered" type="bit" access="Read">atypes.is_binary_ordered</property> <property name="IsFixedLength" type="bit" access="Read">atypes.is_fixed_length</property> <property name="IsComVisible" type="bit" cast="true" access="Read">0</property> <property name="BinaryTypeIdentifier" type="varbinary" access="Read" cast="true">0x0</property> <property name="UserDefinedTypeFormat" type="tinyint" access="Read" report_type="UserDefinedTypeFormat" cast="true">0</property> <!-- extended properties support --> <property name="ExtPropClass" type="int" hidden="true">6</property> <property name="ExtPropMajorID" type="int" hidden="true"> <link_multiple no="1" expression="{0}"> <link_field type="local" field="ID"/> </link_multiple> </property> <property name="ExtPropMinorID" type="int" hidden="true">0</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="SqlAssemblyFile" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="ID" local="ParentID"/> </parent_link> <property_link table="sys.assembly_files AS afiles"/> </settings> <properties> <include file="inc_urn.xml"/> <property name="ParentID" type="int" hidden="true">afiles.assembly_id</property> <property name="Name" type="nvarchar" size="260">afiles.name</property> <property name="ID" type="int" access="Read">afiles.file_id</property> <property name="FileBytes" type="image" access="Read" expensive="true">afiles.content</property> </properties> </EnumObject> 2 <?xml version="1.0"?> <EnumObject type="SqlAssembly" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="sys.assemblies AS asmbl"/> <property_link fields="#Owner#" join="sys.database_principals AS princip">princip.principal_id = asmbl.principal_id</property_link> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">asmbl.name</property> <property name="ID" type="int" access="Read">asmbl.assembly_id</property> <property name="CreateDate" type="datetime" access="Read">asmbl.create_date</property> <property name="Culture" type="nvarchar" size="30" access="Read" cast="true">ISNULL(ASSEMBLYPROPERTY(asmbl.assembly_id, N'CultureInfo'), N'')</property> <property name="AssemblySecurityLevel" type="int" report_type="AssemblySecurityLevel">asmbl.permission_set</property> <property name="Owner" type="sysname">princip.name</property> <property name="IsVisible" type="bit">asmbl.is_visible</property> <property name="PublicKey" type="varbinary" size="8000" cast="true">ISNULL(ASSEMBLYPROPERTY(asmbl.name, N'PublicKey'), CONVERT(varbinary(8000), N''))</property> <property name="VersionMajor" type="int" access="Read" cast="true">ASSEMBLYPROPERTY(asmbl.name, N'VersionMajor')</property> <property name="VersionMinor" type="int" access="Read" cast="true">ASSEMBLYPROPERTY(asmbl.name, N'VersionMinor')</property> <property name="VersionBuild" type="int" access="Read" cast="true">ASSEMBLYPROPERTY(asmbl.name, N'VersionBuild')</property> <property name="VersionRevision" type="int" access="Read" cast="true">ASSEMBLYPROPERTY(asmbl.name, N'VersionRevision')</property> <!-- extended properties support --> <property name="ExtPropClass" type="int" hidden="true">5</property> <property name="ExtPropMajorID" type="int" hidden="true"> <link_multiple no="1" expression="{0}"> <link_field type="local" field="ID"/> </link_multiple> </property> <property name="ExtPropMinorID" type="int" hidden="true">0</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="OperatorJobNotification" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <parent_link> <link parent="Name" local="OperatorName"/> </parent_link> <request_parent_select> <field name="Name"/> </request_parent_select> <property_link table="#operator_job_notification_tmp ont"/> <prefix> <link_multiple no="1" expression=" create table #operator_job_notification_tmp(OperatorName sysname default '', JobId uniqueidentifier, JobName sysname, NotifyLevelEmail int, NotifyLevelNetSend int, NotifyLevelPage int) declare @OperatorName sysname declare crs cursor local fast_forward for ( {0} ) open crs fetch crs into @OperatorName while @@fetch_status >= 0 begin insert #operator_job_notification_tmp (JobId,JobName,NotifyLevelEmail,NotifyLevelNetSend,NotifyLevelPage) exec msdb.dbo.sp_help_operator_jobs @operator_name = @OperatorName update #operator_job_notification_tmp set OperatorName=@OperatorName where OperatorName = '' fetch crs into @OperatorName end close crs deallocate crs"> <link_field field="ParentSelect"/> </link_multiple> </prefix> <postfix> drop table #operator_job_notification_tmp </postfix> </settings> <properties> <property name="JobId" type="uniqueidentifier">ont.JobId</property> <property name="JobName" type="sysname">ont.JobName</property> <property name="NotifyLevelEmail" type="int">ont.NotifyLevelEmail</property> <property name="NotifyLevelNetSend" type="int">ont.NotifyLevelNetSend</property> <property name="NotifyLevelPage" type="int">ont.NotifyLevelPage</property> <property name="OperatorName" type="sysname" hidden="true">ont.OperatorName</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="OperatorNotification" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <parent_link> <link parent="Name" local="OperatorName"/> </parent_link> <request_parent_select> <field name="Name"/> </request_parent_select> <property_link table="#operator_notification_tmp ont"/> <prefix> <link_multiple no="1" expression=" create table #operator_notification_tmp(OperatorName sysname default '', AlertId int, AlertName sysname, UseEmail bit, UsePager bit, UseNetSend bit, HasEmail bit, HasPager bit, HasNetSend bit) declare @OperatorName sysname declare crs cursor local fast_forward for ( {0} ) open crs fetch crs into @OperatorName while @@fetch_status >= 0 begin insert #operator_notification_tmp (AlertId,AlertName,UseEmail,UsePager,UseNetSend,HasEmail,HasPager,HasNetSend) exec msdb.dbo.sp_help_notification 'ALERTS', @OperatorName, 'ACTUAL', 7 update #operator_notification_tmp set OperatorName=@OperatorName where OperatorName = '' fetch crs into @OperatorName end close crs deallocate crs"> <link_field field="ParentSelect"/> </link_multiple> </prefix> <postfix> drop table #operator_notification_tmp </postfix> </settings> <properties> <property name="AlertId" type="int">ont.AlertId</property> <property name="AlertName" type="sysname">ont.AlertName</property> <property name="UseEmail" type="bit">ont.UseEmail</property> <property name="UsePager" type="bit">ont.UsePager</property> <property name="UseNetSend" type="bit">ont.UseNetSend</property> <property name="HasEmail" type="bit">ont.HasEmail</property> <property name="HasPager" type="bit">ont.HasPager</property> <property name="HasNetSend" type="bit">ont.HasNetSend</property> <property name="OperatorName" type="sysname" hidden="true">ont.OperatorName</property> </properties> </EnumObject> t <?xml version="1.0"?> <EnumObject type="AlertNotification" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <parent_link> <link parent="Name" local="AlertName"/> </parent_link> <request_parent_select> <field name="Name"/> </request_parent_select> <property_link table="#alert_notification_tmp ant"/> <prefix> <link_multiple no="1" expression=" create table #alert_notification_tmp(AlertName sysname default '', OperatorId int, OperatorName sysname, UseEmail bit, UsePager bit, UseNetSend bit, HasEmail bit, HasPager bit, HasNetSend bit) declare @AlertName sysname declare crs cursor local fast_forward for ( {0} ) open crs fetch crs into @AlertName while @@fetch_status >= 0 begin insert #alert_notification_tmp (OperatorId,OperatorName,UseEmail,UsePager,UseNetSend,HasEmail,HasPager,HasNetSend) exec msdb.dbo.sp_help_notification 'OPERATORS', @AlertName, 'ACTUAL', 7 update #alert_notification_tmp set AlertName=@AlertName where AlertName = '' fetch crs into @AlertName end close crs deallocate crs"> <link_field field="ParentSelect"/> </link_multiple> </prefix> <postfix> drop table #alert_notification_tmp </postfix> </settings> <properties> <property name="OperatorId" type="int">ant.OperatorId</property> <property name="OperatorName" type="sysname">ant.OperatorName</property> <property name="UseEmail" type="bit">ant.UseEmail</property> <property name="UsePager" type="bit">ant.UsePager</property> <property name="UseNetSend" type="bit">ant.UseNetSend</property> <property name="HasEmail" type="bit">ant.HasEmail</property> <property name="HasPager" type="bit">ant.HasPager</property> <property name="HasNetSend" type="bit">ant.HasNetSend</property> <property name="AlertName" type="sysname" hidden="true">ant.AlertName</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="backupset" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <property_link table="#backupset AS btmp"/> <property_link join="msdb.dbo.backupset AS bkps">bkps.backup_set_id = btmp.backup_set_id</property_link> <version min_major="7" max_major="7"> <prefix> declare @server_name nvarchar(512) set @server_name = @@SERVERNAME </prefix> </version> <version min_major="8" max_major="9"> <prefix> declare @server_name nvarchar(512) set @server_name = cast(serverproperty(N'Servername') as nvarchar(512)) </prefix> </version> <version min_major="7" max_major="8"> <prefix> DECLARE @first_full_backupset_id INTEGER ,@first_full_backup_startdate DATETIME CREATE TABLE #backupset( backup_set_id INTEGER NOT NULL ,is_in_restore_plan bit NOT NULL ,backup_start_date datetime NOT NULL ,type CHAR(1) NOT NULL ,database_name nvarchar(256) NOT NULL ) /**********************************************************************/ /* Identify the first */ /**********************************************************************/ SELECT @first_full_backupset_id = backupset_outer.backup_set_id ,@first_full_backup_startdate = backupset_outer.backup_start_date FROM msdb.dbo.backupset backupset_outer WHERE backupset_outer.database_name = @db_name AND backupset_outer.server_name = @server_name AND backupset_outer.type = 'D' -- Full Database Backup AND backupset_outer.backup_start_date = ( SELECT MAX(backupset_inner.backup_start_date) FROM msdb.dbo.backupset backupset_inner WHERE backupset_inner.database_name = backupset_outer.database_name AND backupset_inner.server_name = @server_name AND backupset_inner.type = backupset_outer.type AND backupset_inner.backup_start_date <= @restore_to_datetime) /*******************************************************************************************/ /* Find the first full database backup needed in the restore plan and store its attributes */ /* in #backupset work table */ /*******************************************************************************************/ INSERT #backupset( backup_set_id ,is_in_restore_plan ,backup_start_date ,type ,database_name ) SELECT backup_set_id ,1 -- The full database backup is always needed for the restore plan ,backup_start_date ,type ,database_name FROM msdb.dbo.backupset WHERE msdb.dbo.backupset.backup_set_id = @first_full_backupset_id AND msdb.dbo.backupset.server_name = @server_name /***************************************************************/ /* Find the log and differential backups that occurred after */ /* the full backup and store them in #backupset work table */ /***************************************************************/ INSERT #backupset( backup_set_id ,is_in_restore_plan ,backup_start_date ,type ,database_name ) SELECT backup_set_id ,0 ,backup_start_date ,type ,database_name FROM msdb.dbo.backupset WHERE msdb.dbo.backupset.database_name = @db_name AND msdb.dbo.backupset.server_name = @server_name AND msdb.dbo.backupset.type IN ('I', 'L') -- Differential, Log backups AND msdb.dbo.backupset.backup_start_date >= @first_full_backup_startdate /**********************************************************************************/ /* identify and mark the backup logs that need to be included in the restore plan */ /**********************************************************************************/ UPDATE #backupset SET is_in_restore_plan = 1 WHERE #backupset.type = 'I' AND #backupset.backup_start_date = (SELECT MAX(backupset_inner.backup_start_date) FROM #backupset backupset_inner WHERE backupset_inner.type = #backupset.type AND backupset_inner.backup_start_date <= @restore_to_datetime) /**************************************************************************************/ /* Log backups that occurred after the different are always part of the restore plan. */ /**************************************************************************************/ UPDATE #backupset SET is_in_restore_plan = 1 WHERE #backupset.type = 'L' AND #backupset.backup_start_date <= @restore_to_datetime AND #backupset.backup_start_date >= (SELECT backupset_inner.backup_start_date FROM #backupset backupset_inner WHERE backupset_inner.type = 'I' AND backupset_inner.is_in_restore_plan = 1) /**************************************************************************************/ /* If @restore_to_datetime is greater than the last startdate of the last log backup, */ /* include the next log backup in the restore plan */ /**************************************************************************************/ UPDATE #backupset SET is_in_restore_plan = 1 WHERE #backupset.type = 'L' AND #backupset.backup_start_date = (SELECT MIN(backupset_inner.backup_start_date) FROM #backupset backupset_inner WHERE backupset_inner.type = 'L' AND backupset_inner.backup_start_date > @restore_to_datetime AND backupset_inner.is_in_restore_plan = 0) /**************************************************************************************/ /* If there are no differential backups, all log backups that occurred after the full */ /* backup are needed in the restore plan. */ /**************************************************************************************/ UPDATE #backupset SET is_in_restore_plan = 1 WHERE #backupset.type = 'L' AND #backupset.backup_start_date <= @restore_to_datetime AND NOT EXISTS(SELECT * FROM #backupset backupset_inner WHERE backupset_inner.type = 'I') </prefix> </version> <version min_major="9" max_major="9"> <prefix> DECLARE @first_full_backupset_id INTEGER ,@first_full_backup_startdate DATETIME CREATE TABLE #backupset( backup_set_id INTEGER NOT NULL ,is_in_restore_plan bit NOT NULL ,backup_start_date datetime NOT NULL ,type CHAR(1) NOT NULL ,database_name nvarchar(256) NOT NULL ) /**********************************************************************/ /* Identify the first */ /**********************************************************************/ SELECT @first_full_backupset_id = backupset_outer.backup_set_id ,@first_full_backup_startdate = backupset_outer.backup_start_date FROM msdb.dbo.backupset backupset_outer WHERE backupset_outer.database_name = @db_name AND backupset_outer.server_name = @server_name AND backupset_outer.type = 'D' -- Full Database Backup AND backupset_outer.backup_start_date = ( SELECT MAX(backupset_inner.backup_start_date) FROM msdb.dbo.backupset backupset_inner WHERE backupset_inner.database_name = backupset_outer.database_name AND backupset_inner.server_name = @server_name AND backupset_inner.type = backupset_outer.type AND backupset_inner.backup_start_date <= @restore_to_datetime AND backupset_inner.is_copy_only = 0 ) AND backupset_outer.is_copy_only = 0 /*******************************************************************************************/ /* Find the first full database backup needed in the restore plan and store its attributes */ /* in #backupset work table */ /*******************************************************************************************/ INSERT #backupset( backup_set_id ,is_in_restore_plan ,backup_start_date ,type ,database_name ) SELECT backup_set_id ,1 -- The full database backup is always needed for the restore plan ,backup_start_date ,type ,database_name FROM msdb.dbo.backupset WHERE msdb.dbo.backupset.backup_set_id = @first_full_backupset_id AND msdb.dbo.backupset.server_name = @server_name /***************************************************************/ /* Find the log and differential backups that occurred after */ /* the full backup and store them in #backupset work table */ /***************************************************************/ INSERT #backupset( backup_set_id ,is_in_restore_plan ,backup_start_date ,type ,database_name ) SELECT backup_set_id ,0 ,backup_start_date ,type ,database_name FROM msdb.dbo.backupset WHERE msdb.dbo.backupset.database_name = @db_name AND msdb.dbo.backupset.server_name = @server_name AND msdb.dbo.backupset.type IN ('I', 'L') -- Differential, Log backups AND msdb.dbo.backupset.backup_start_date >= @first_full_backup_startdate /**********************************************************************************/ /* identify and mark the backup logs that need to be included in the restore plan */ /**********************************************************************************/ UPDATE #backupset SET is_in_restore_plan = 1 WHERE #backupset.type = 'I' AND #backupset.backup_start_date = (SELECT MAX(backupset_inner.backup_start_date) FROM #backupset backupset_inner WHERE backupset_inner.type = #backupset.type AND backupset_inner.backup_start_date <= @restore_to_datetime) /**************************************************************************************/ /* Log backups that occurred after the different are always part of the restore plan. */ /**************************************************************************************/ UPDATE #backupset SET is_in_restore_plan = 1 WHERE #backupset.type = 'L' AND #backupset.backup_start_date <= @restore_to_datetime AND #backupset.backup_start_date >= (SELECT backupset_inner.backup_start_date FROM #backupset backupset_inner WHERE backupset_inner.type = 'I' AND backupset_inner.is_in_restore_plan = 1) /**************************************************************************************/ /* If @restore_to_datetime is greater than the last startdate of the last log backup, */ /* include the next log backup in the restore plan */ /**************************************************************************************/ UPDATE #backupset SET is_in_restore_plan = 1 WHERE #backupset.type = 'L' AND #backupset.backup_start_date = (SELECT MIN(backupset_inner.backup_start_date) FROM #backupset backupset_inner WHERE backupset_inner.type = 'L' AND backupset_inner.backup_start_date > @restore_to_datetime AND backupset_inner.is_in_restore_plan = 0) /**************************************************************************************/ /* If there are no differential backups, all log backups that occurred after the full */ /* backup are needed in the restore plan. */ /**************************************************************************************/ UPDATE #backupset SET is_in_restore_plan = 1 WHERE #backupset.type = 'L' AND #backupset.backup_start_date <= @restore_to_datetime AND NOT EXISTS(SELECT * FROM #backupset backupset_inner WHERE backupset_inner.type = 'I') </prefix> </version> <postfix> drop table #backupset </postfix> </settings> <properties> <property name="Name" type="nvarchar" size="128">bkps.name</property> <property name="ID" type="int">bkps.backup_set_id</property> <property name="IsInRestorePlan" type="int">btmp.is_in_restore_plan</property> <property name="BackupSetUuid" type="uniqueidentifier">bkps.backup_set_uuid</property> <property name="MediaSetId" type="int">bkps.media_set_id</property> <property name="FirstFamilyNumber" type="tinyint">bkps.first_family_number</property> <property name="FirstMediaNumber" type="smallint">bkps.first_media_number</property> <property name="LastFamilyNumber" type="tinyint">bkps.last_family_number</property> <property name="LastMediaNumber" type="smallint">bkps.last_media_number</property> <property name="CatalogFamilyNumber" type="tinyint">bkps.catalog_family_number</property> <property name="CatalogMediaNumber" type="smallint">bkps.catalog_media_number</property> <property name="Position" type="int">bkps.position</property> <property name="ExpirationDate" type="datetime">bkps.expiration_date</property> <property name="SoftwareVendorId" type="int">bkps.software_vendor_id</property> <property name="Description" type="nvarchar" size="255">bkps.description</property> <property name="UserName" type="nvarchar" size="128">bkps.user_name</property> <property name="SoftwareMajorVersion" type="tinyint">bkps.software_major_version</property> <property name="SoftwareMinorVersion" type="tinyint">bkps.software_minor_version</property> <property name="SoftwareBuildVersion" type="smallint">bkps.software_build_version</property> <property name="TimeZone" type="smallint">bkps.time_zone</property> <property name="MtfMinorVersion" type="tinyint">bkps.mtf_minor_version</property> <property name="FirstLsn" type="numeric" size="13">bkps.first_lsn</property> <property name="LastLsn" type="numeric" size="13">bkps.last_lsn</property> <property name="CheckpointLsn" type="numeric" size="13">bkps.checkpoint_lsn</property> <property name="DatabaseBackupLsn" type="numeric" size="13">bkps.database_backup_lsn</property> <property name="DatabaseCreationDate" type="datetime">bkps.database_creation_date</property> <property name="BackupStartDate" type="datetime">bkps.backup_start_date</property> <property name="BackupFinishDate" type="datetime">bkps.backup_finish_date</property> <property name="Type" type="char" size="1">bkps.type</property> <property name="SortOrder" type="smallint">bkps.sort_order</property> <property name="CodePage" type="smallint">bkps.code_page</property> <property name="CompatibilityLevel" type="tinyint">bkps.compatibility_level</property> <property name="DatabaseVersion" type="int">bkps.database_version</property> <property name="BackupSize" type="numeric" size="13">bkps.backup_size</property> <property name="DatabaseName" type="nvarchar" size="128">bkps.database_name</property> <property name="ServerName" type="nvarchar" size="128">bkps.server_name</property> <property name="MachineName" type="nvarchar" size="128">bkps.machine_name</property> <version min_major="8" max_major="9"> <property name="Flags" type="int">bkps.flags</property> <property name="UnicodeLocale" type="int">bkps.unicode_locale</property> <property name="UnicodeCompareStyle" type="int">bkps.unicode_compare_style</property> <property name="CollationName" type="nvarchar" size="128">bkps.collation_name</property> </version> </properties> </EnumObject> H <?xml version="1.0"?> <EnumObject min_major="7" max_major="9"> <settings> <version min_major="9" max_major="9"> <property_link fields="#ClassName#MethodName#AssemblyName#ExecutionContext#ExecutionContextPrincipal#ReturnsNullOnNullInput#" left_join="sys.assembly_modules" alias="am{0}">am{0}.object_id = {0}.object_id</property_link> <property_link fields="#AssemblyName#" left_join="sys.assemblies" alias="asmbl{0}">asmbl{0}.assembly_id = am{0}.assembly_id</property_link> </version> </settings> <properties> <include file="sql_module_link.xml" alias="{0}"/> <version min_major="9" max_major="9"> <property name="AssemblyName" type="sysname">case when am{0}.object_id is null then N'' else asmbl{0}.name end</property> <property name="ClassName" type="sysname">case when am{0}.object_id is null then N'' else am{0}.assembly_class end</property> <property name="MethodName" type="sysname">case when am{0}.object_id is null then N'' else am{0}.assembly_method end</property> <property name="ReturnsNullOnNullInput" type="bit" cast="true"> <link_multiple no="1" expression="case when am{0}.object_id is null then {{0}} else am{0}.null_on_null_input end"> <link_field type="local" field="SqlReturnsNullOnNullInput"/> </link_multiple> </property> <property name="ExecutionContext" type="int" report_type="ExecutionContext"> <link_multiple no="1" expression="case when am{0}.object_id is null then {{0}} else case isnull(am{0}.execute_as_principal_id, -1) when -1 then 1 when -2 then 2 else 3 end end"> <link_field type="local" field="SqlExecutionContext"/> </link_multiple> </property> <property name="ExecutionContextPrincipal" type="sysname"> <link_multiple no="1" expression="case when am{0}.object_id is null then {{0}} else user_name(am{0}.execute_as_principal_id) end"> <link_field type="local" field="SqlExecutionContextPrincipal"/> </link_multiple> </property> <property name="ExecutionContextLogin" type="sysname"> <link_multiple no="1" expression="case when am{0}.object_id is null then {{0}} else user_name(am{0}.execute_as_principal_id) end"> <link_field type="local" field="SqlExecutionContextPrincipal"/> </link_multiple> </property> <property name="ExecutionContextUser" type="sysname"> <link_multiple no="1" expression="case when am{0}.object_id is null then {{0}} else user_name(am{0}.execute_as_principal_id) end"> <link_field type="local" field="SqlExecutionContextPrincipal"/> </link_multiple> </property> </version> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject min_major="7" max_major="9"> <settings> <version min_major="9" max_major="9"> <!-- here we have to fetch from both sys.sql_modules and sys.system_sql_modules because user objects are stored in the former, and system objects are stored in the latter --> <property_link fields="#Recompile#IsEncrypted#Definition#SqlReturnsNullOnNullInput#SqlExecutionContext#SqlExecutionContextPrincipal#" left_join="sys.sql_modules AS sm{0}">sm{0}.object_id = {0}.object_id</property_link> <property_link fields="#Recompile#IsEncrypted#Definition#" left_join="sys.system_sql_modules AS ssm{0}">ssm{0}.object_id = {0}.object_id</property_link> </version> </settings> <properties> <version min_major="7" max_major="8"> <include file="inc_sql_module.xml" alias="{0}"/> </version> <version min_major="9" max_major="9"> <property name="AnsiNullsStatus" type="bit" cast="true">OBJECTPROPERTYEX({0}.object_id,N'ExecIsAnsiNullsOn')</property> <property name="QuotedIdentifierStatus" type="bit" cast="true">OBJECTPROPERTYEX({0}.object_id,N'ExecIsQuotedIdentOn')</property> <property name="IsSchemaBound" type="bit" cast="true">OBJECTPROPERTYEX({0}.object_id, N'IsSchemaBound')</property> <include file="inc_sql_module.xml" alias="sm{0}"/> <property name="SqlReturnsNullOnNullInput" type="bit" cast="true" hidden="true">sm{0}.null_on_null_input</property> <property name="SqlExecutionContext" type="int" report_type="ExecutionContext" hidden="true">case isnull(sm{0}.execute_as_principal_id, -1) when -1 then 1 when -2 then 2 else 3 end</property> <property name="SqlExecutionContextDdl" type="int" report_type="ExecutionContext" hidden="true">case isnull(sm{0}.execute_as_principal_id, -1) when -1 then 1 else 2 end</property> <property name="SqlExecutionContextPrincipal" type="sysname" hidden="true">ISNULL(user_name(sm{0}.execute_as_principal_id),N'')</property> </version> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="Column" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <version min_major="7" max_major="8"> <property_link fields="#TableName#TableSchema#" join="dbo.sysobjects AS tbl">tbl.id = {0}.id</property_link> </version> <version min_major="9" max_major="9"> <property_link fields="#TableName#TableSchema#" join="sys.tables AS tbl">tbl.object_id = {0}.object_id</property_link> </version> </settings> <properties> <property name="Name" type="sysname">{0}.name</property> <property name="TableName" type="sysname">tbl.name</property> <version min_major="7" max_major="8"> <property name="TableSchema" type="sysname">user_name(tbl.uid)</property> </version> <version min_major="9" max_major="9"> <property name="TableSchema" type="sysname">schema_name(tbl.schema_id)</property> </version> </properties> </EnumObject> f <?xml version="1.0"?> <EnumObject type="Column" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <version min_major="7" max_major="8"> <property_link fields="#Schema#" join="sysusers AS s{0}">s{0}.uid = {0}.uid</property_link> </version> <version min_major="9" max_major="9"> <property_link fields="#Schema#" join="sys.schemas AS s{0}">s{0}.schema_id = {0}.schema_id</property_link> </version> </settings> <properties> <property name="Name" type="sysname">{0}.name</property> <property name="Schema" type="sysname">s{0}.name</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="ExtendedProperty" impl_type="SqlObject" min_major="8" max_major="9"> <settings> <version min_major="8" max_major="8"> <property_link table="::fn_listextendedproperty (NULL, default, default, default, default, default, default) AS p"/> </version> <version min_major="9" max_major="9"> <property_link table="sys.extended_properties AS p">p.major_id=0 AND p.minor_id=0 AND p.class=0</property_link> </version> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">p.name</property> <property name="Value" type="sql_variant" cast="true">p.value</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="Column" impl_type="SqlObject" min_major="7" max_major="8"> <settings> </settings> <properties> <property name="ParentObjName" type="sysname" hidden="true"> <link_multiple no="1" expression="{0}"> <link_field type="parent" field="Name"/> </link_multiple> </property> <property name="ParentOwner" type="sysname" hidden="true"> <link_multiple no="1" expression="{0}"> <link_field type="parent" field="Schema"/> </link_multiple> </property> <property name="ParentObjectSchemaFromFilter" type="sysname" hidden="true"> <link_multiple no="1" expression="{0}"> <link_field type="parent" field="ObjectSchemaFromFilter"/> </link_multiple> </property> <property name="ParentObjectTypeName" type="sysname" hidden="true"> <link_multiple no="1" expression="{0}"> <link_field type="parent" field="ObjectTypeName"/> </link_multiple> </property> <property name="ParentObjectNameFromFilter" type="sysname" hidden="true"> <link_multiple no="1" expression="{0}"> <link_field type="parent" field="ObjectNameFromFilter"/> </link_multiple> </property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="ExtendedProperty" impl_type="SqlObject" min_major="8" max_major="9"> <settings> <version min_major="8" max_major="8"> <parent_link> <link parent="Name" local="ObjName"/> <link parent="ParentObjName" local="ParentObjName"/> <link parent="ParentOwner" local="ParentOwner"/> </parent_link> <request_parent_select> <field name="ParentOwner"/> <field name="ParentObjName"/> <field name="Name"/> <field name="IndexKeyType"/> </request_parent_select> <property_link table="#extprops AS p"/> <prefix> create table #extprops(owner sysname null, parentobjname sysname null, objname sysname null, name sysname , value sql_variant null) </prefix> <prefix> <link_multiple no="5" expression=" declare @idx_type sysname select @idx_type = {3} if not ({0} is null or {2} is null or @idx_type is null) begin insert #extprops (owner, parentobjname, objname, name, value) select null, null, objname, name, value from ::fn_listextendedproperty (NULL, 'USER', {0}, {1}, {2}, @idx_type, default) update #extprops set owner = {0}, parentobjname = {2} end else begin declare @owner sysname declare @parentname sysname declare @name sysname declare crs insensitive cursor for ( {4} ) for read only open crs fetch crs into @owner, @parentname, @name, @idx_type while @@fetch_status >= 0 begin if 0 = @idx_type insert #extprops (owner, parentobjname, objname, name, value) select null, null, objname, name, value from ::fn_listextendedproperty (NULL, 'USER', @owner, {1}, @parentname, N'INDEX', @name) else insert #extprops (owner, parentobjname, objname, name, value) select null, null, objname, name, value from ::fn_listextendedproperty (NULL, 'USER', @owner, {1}, @parentname, N'CONSTRAINT', @name) update #extprops set owner = @owner, parentobjname = @parentname where owner is null fetch crs into @owner, @parentname, @name, @idx_type end close crs deallocate crs end"> <link_field type="parent" field="ParentObjectSchemaFromFilter"/> <link_field type="parent" field="ParentObjectTypeName"/> <link_field type="parent" field="ParentObjectNameFromFilter"/> <link_field type="parent" field="ObjectTypeName"/> <link_field field="ParentSelect"/> </link_multiple> </prefix> <postfix> drop table #extprops </postfix> </version> </settings> <properties> <include file="inc_shilohExtendedProperty.xml"/> <version min_major="8" max_major="8"> <property name="ParentOwner" type="sysname" hidden="true" cast="true">cast(p.owner as varbinary(256))</property> <property name="ParentObjName" type="sysname" hidden="true" cast="true">cast(p.parentobjname as varbinary(256))</property> <property name="ObjName" type="sysname" hidden="true" cast="true">cast(p.objname as varbinary(256))</property> </version> </properties> </EnumObject> < <?xml version="1.0"?> <EnumObject type="ExtendedProperty" impl_type="SqlObject" min_major="8" max_major="9"> <settings> <version min_major="8" max_major="8"> <parent_link> <link parent="Name" local="ObjName"/> <link parent="ParentObjName" local="ParentObjName"/> <link parent="ParentOwner" local="ParentOwner"/> </parent_link> <request_parent_select> <field name="ParentOwner"/> <field name="ParentObjName"/> <field name="Name"/> </request_parent_select> <property_link table="#extprops AS p"/> <prefix> create table #extprops(owner sysname null, parentobjname sysname null, objname sysname null, name sysname , value sql_variant null) </prefix> <prefix> <link_multiple no="5" expression="if not ({0} is null or {2} is null) begin insert #extprops (owner, parentobjname, objname, name, value) select null, null, objname, name, value from ::fn_listextendedproperty (NULL, 'USER', {0}, {1}, {2}, {3}, default) update #extprops set owner = {0}, parentobjname = {2} end else begin declare @owner sysname declare @parentname sysname declare @name sysname declare crs insensitive cursor for ( {4} ) for read only open crs fetch crs into @owner, @parentname, @name while @@fetch_status >= 0 begin insert #extprops (owner, parentobjname, objname, name, value) select null, null, objname, name, value from ::fn_listextendedproperty (NULL, 'USER', @owner, {1}, @parentname, {3}, @name) update #extprops set owner = @owner, parentobjname = @parentname where owner is null fetch crs into @owner, @parentname, @name end close crs deallocate crs end"> <link_field type="parent" field="ParentObjectSchemaFromFilter"/> <link_field type="parent" field="ParentObjectTypeName"/> <link_field type="parent" field="ParentObjectNameFromFilter"/> <link_field type="parent" field="ObjectTypeName"/> <link_field field="ParentSelect"/> </link_multiple> </prefix> <postfix> drop table #extprops </postfix> </version> </settings> <properties> <include file="inc_shilohExtendedProperty.xml"/> <version min_major="8" max_major="8"> <property name="ParentOwner" type="sysname" hidden="true" cast="true">cast(p.owner as varbinary(256))</property> <property name="ParentObjName" type="sysname" hidden="true" cast="true">cast(p.parentobjname as varbinary(256))</property> <property name="ObjName" type="sysname" hidden="true" cast="true">cast(p.objname as varbinary(256))</property> </version> </properties> </EnumObject> < <?xml version="1.0"?> <EnumObject type="ExtendedProperty" impl_type="SqlObject" min_major="8" max_major="9"> <settings> <version min_major="8" max_major="8"> <parent_link> <link parent="Schema" local="Owner"/> <link parent="Name" local="ObjName"/> </parent_link> <request_parent_select> <field name="Schema"/> <field name="Name"/> </request_parent_select> <property_link table="#extprops AS p"/> <prefix> create table #extprops(owner sysname null, objname sysname null, name sysname, value sql_variant null) </prefix> <prefix> <link_multiple no="4" expression="if not ({0} is null ) begin insert #extprops (owner, objname, name, value) select null, objname, name, value from ::fn_listextendedproperty (NULL, 'USER', {0}, {1}, {2}, default, default) update #extprops set owner = {0} end else begin declare @owner sysname declare @name sysname declare crs insensitive cursor for ( {3} ) for read only open crs fetch crs into @owner, @name while @@fetch_status >= 0 begin insert #extprops (owner, objname, name, value) select null, objname, name, value from ::fn_listextendedproperty (NULL, 'USER', @owner, {1}, @name, default, default) update #extprops set owner = @owner where owner is null fetch crs into @owner, @name end close crs deallocate crs end"> <link_field type="parent" field="ObjectSchemaFromFilter"/> <link_field type="parent" field="ObjectTypeName"/> <link_field type="parent" field="ObjectNameFromFilter"/> <link_field field="ParentSelect"/> </link_multiple> </prefix> <postfix> drop table #extprops </postfix> </version> </settings> <properties> <include file="inc_shilohExtendedProperty.xml"/> <version min_major="8" max_major="8"> <property name="Owner" type="sysname" hidden="true" cast="true">cast(p.owner as varbinary(256))</property> <property name="ObjName" type="sysname" hidden="true" cast="true">cast(p.objname as varbinary(256))</property> </version> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="ExtendedProperty" impl_type="SqlObject" min_major="8" max_major="9"> <settings> <version min_major="8" max_major="8"> <parent_link> <link parent="Name" local="ObjName"/> </parent_link> <property_link expression_is_for_table_name="true" alias="p"> <link_multiple no="2" expression="::fn_listextendedproperty (NULL, {0}, {1}, default, default, default, default)"> <link_field type="parent" field="ObjectTypeName"/> <link_field type="parent" field="ObjectNameFromFilter"/> </link_multiple> </property_link> </version> </settings> <properties> <include file="inc_shilohExtendedProperty.xml"/> <version min_major="8" max_major="8"> <property name="ObjName" type="sysname" hidden="true" cast="true">cast(p.objname as varbinary(256))</property> </version> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="ExtendedProperty" impl_type="SqlObject" min_major="8" max_major="9"> <settings> <version min_major="9" max_major="9"> <include file="ExtendedProperty.xml"/> </version> </settings> <properties> <version min_major="8" max_major="8"> <include file="inc_urn.xml"/> <property name="Name" type="sysname">p.name</property> <property name="Value" type="sql_variant">p.value</property> </version> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="ExtendedProperty" impl_type="SqlObject" min_major="8" max_major="9"> <settings> <parent_link> <link parent="ExtPropMajorID" local="MajorID"/> <link parent="ExtPropMinorID" local="MinorID"/> <link parent="ExtPropClass" local="Class"/> </parent_link> <version min_major="8" max_major="8"> <property_link table="dbo.sysproperties AS p"/> </version> <version min_major="9" max_major="9"> <property_link table="sys.extended_properties AS p"/> </version> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">p.name</property> <property name="Value" type="sql_variant" cast="true">p.value</property> <version min_major="8" max_major="8"> <property name="MajorID" type="int" hidden="true">p.id</property> <property name="MinorID" type="int" hidden="true">p.smallid</property> <property name="Class" type="int" hidden="true">p.type</property> </version> <version min_major="9" max_major="9"> <property name="MajorID" type="int" hidden="true">p.major_id</property> <property name="MinorID" type="int" hidden="true">p.minor_id</property> <property name="Class" type="int" hidden="true">p.class</property> </version> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject min_major="7" max_major="9"> <settings> <version min_major="7" max_major="8"> <property_link fields="#DataType#DataTypeSchema#" left_join="systypes AS usrt">usrt.xusertype = {0}.xusertype</property_link> <property_link fields="#SystemType#Length#BaseTypeHidden#" left_join="systypes AS baset">baset.xusertype = {0}.xtype and baset.xusertype = baset.xtype</property_link> <property_link fields="#DataTypeSchema#" left_join="sysusers AS s{0}">s{0}.uid = usrt.uid</property_link> </version> <version min_major="9" max_major="9"> <property_link fields="#DataType#DataTypeSchema#" left_join="sys.types AS usrt">usrt.user_type_id = {0}.user_type_id</property_link> <property_link fields="#SystemType#Length#BaseTypeHidden#VariableLength#" left_join="sys.types AS baset">baset.user_type_id = {0}.system_type_id and baset.user_type_id = baset.system_type_id</property_link> <property_link fields="#DataTypeSchema#" left_join="sys.schemas AS s{0}">s{0}.schema_id = usrt.schema_id</property_link> <property_link fields="#XmlSchemaNamespace#XmlSchemaNamespaceSchema#" left_join="sys.xml_schema_collections AS xsc{0}">xsc{0}.xml_collection_id = {0}.xml_collection_id</property_link> <property_link fields="#XmlSchemaNamespaceSchema#" left_join="sys.schemas AS s2{0}">s2{0}.schema_id = xsc{0}.schema_id</property_link> </version> </settings> <properties> <property name="DataType" type="sysname">usrt.name</property> <property name="DataTypeSchema" type="sysname">s{0}.name</property> <property name="BaseTypeHidden" type="sysname" hidden="true">baset.name</property> <property name="SystemType" type="sysname" access="Read">ISNULL(baset.name, N'')</property> <version min_major="7" max_major="8"> <property name="Length" type="int" cast="true">CASE WHEN baset.name IN (N'char', N'varchar', N'binary', N'varbinary', N'nchar', N'nvarchar') THEN {0}.prec ELSE {0}.length END</property> <property name="NumericPrecision" type="int" cast="true">{0}.xprec</property> <property name="NumericScale" type="int" cast="true">{0}.xscale</property> </version> <version min_major="9" max_major="9"> <property name="Length" type="int" cast="true">CASE WHEN baset.name IN (N'nchar', N'nvarchar') AND {0}.max_length <> -1 THEN {0}.max_length/2 ELSE {0}.max_length END</property> <property name="NumericPrecision" type="int" cast="true">{0}.precision</property> <property name="NumericScale" type="int" cast="true">{0}.scale</property> <property name="XmlSchemaNamespace" type="sysname">ISNULL(xsc{0}.name, N'')</property> <property name="XmlSchemaNamespaceSchema" type="sysname">ISNULL(s2{0}.name, N'')</property> <property name="XmlDocumentConstraint" type="int" report_type="XmlDocumentConstraint">ISNULL( (case {0}.is_xml_document when 1 then 2 else 1 end), 0)</property> </version> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="Table" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <version min_major="7" max_major="8"> <!-- left join because sysfiles have groupid = 0 on their index --> <property_link fields="#FileGroup#" left_join="dbo.sysfilegroups AS fg{0}"> <link_multiple no="1" expression="fg{0}.groupid = {0}.groupid"> <!--used just to trigger the parent property link --> <link_field type="local" field="IndexID"/> </link_multiple> </property_link> </version> <version min_major="9" max_major="9"> <property_link fields="#FileGroup#PartitionScheme#IsPartitioned#" left_join="sys.data_spaces AS ds{0}"> <link_multiple no="1" expression="ds{0}.data_space_id = {0}.data_space_id"> <!--used just to trigger the parent property link --> <link_field type="local" field="IndexID"/> </link_multiple> </property_link> </version> </settings> <properties> <version min_major="7" max_major="8"> <property name="FileGroup" type="sysname">fg{0}.groupname</property> </version> <version min_major="9" max_major="9"> <property name="FileGroup" type="sysname">CASE WHEN 'FG'=ds{0}.type THEN ds{0}.name ELSE N'' END</property> <property name="PartitionScheme" type="sysname">CASE WHEN 'PS'=ds{0}.type THEN ds{0}.name ELSE N'' END</property> <property name="IsPartitioned" type="bit" cast="true" access="Read">CASE WHEN 'PS'=ds{0}.type THEN 1 ELSE 0 END</property> </version> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="PartitionSchemeFileGroup" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link join="sys.destination_data_spaces AS sdd"> <link_multiple no="2" expression="sdd.partition_scheme_id = {0} and sdd.destination_id <= {1}"> <link_field type="parent" field="ID"/> <link_field type="parent" field="FunctionFunOut"/> </link_multiple> </property_link> <property_link fields="#Name#" join="sys.filegroups AS sf">sf.data_space_id = sdd.data_space_id</property_link> </settings> <properties> <property name="Name" type="sysname" access="Read">sf.name</property> <property name="ID" type="int" access="Read">sdd.destination_id</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="PartitionFunction" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <property_link table="sys.partition_schemes AS sps"/> <property_link fields="#PartitionFunction#NextUsedFileGroup#FunctionFunOut#" join="sys.partition_functions AS spf">sps.function_id = spf.function_id </property_link> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">sps.name</property> <property name="ID" type="int" access="Read">sps.data_space_id</property> <property name="FunctionFunOut" type="int" access="Read" hidden="true">spf.fanout</property> <property name="PartitionFunction" type="sysname">spf.name</property> <property name="NextUsedFileGroup" type="sysname">ISNULL((case when spf.fanout < (select count(*) from sys.destination_data_spaces sdd where sps.data_space_id = sdd.partition_scheme_id) then (select sf.name from sys.filegroups sf, sys.destination_data_spaces sdd where sf.data_space_id = sdd.data_space_id and sps.data_space_id = sdd.partition_scheme_id and sdd.destination_id > spf.fanout) else null end),N'')</property> <!-- extended properties support --> <property name="ExtPropClass" type="int" hidden="true">20</property> <property name="ExtPropMajorID" type="int" hidden="true">sps.data_space_id</property> <property name="ExtPropMinorID" type="int" hidden="true">0</property> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="RangeValue" impl_type="SqlObject" min_major="9" max_major="9"> <settings main_table="sys.partition_range_values sprv"> <parent_link> <link parent="ID" local="ParentID"/> </parent_link> </settings> <properties> <property name="ID" type="int" access="Read">sprv.boundary_id</property> <property name="ParentID" type="int" hidden="true">sprv.function_id</property> <property name="Value" type="sql_variant" access="Read">sprv.value</property> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="PartitionFunctionParameter" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link parent="ID" local="ParentID"/> </parent_link> <property_link table="sys.partition_parameters AS spp"/> <property_link fields="#Name#" join="sys.types AS st">st.system_type_id = st.user_type_id and spp.system_type_id = st.system_type_id</property_link> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname"> <link_multiple no="1" expression="{0}"> <link_field type="local" field="BaseTypeHidden"/> </link_multiple> </property> <property name="ID" type="int" access="Read">spp.parameter_id</property> <property name="ParentID" type="int" hidden="true">spp.function_id</property> <property name="Collation" type="sysname">ISNULL(spp.collation_name,N'')</property> <include file="inc_type.xml" for="#Length#NumericPrecision#NumericScale#" alias="spp"/> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="PartitionFunction" impl_type="SqlObject" min_major="9" max_major="9"> <settings main_table="sys.partition_functions AS spf"/> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">spf.name</property> <property name="ID" type="int" access="Read">spf.function_id</property> <property name="RangeType" type="int" report_type="RangeType" cast="true">spf.boundary_value_on_right</property> <property name="CreateDate" type="datetime" access="Read">spf.create_date</property> <property name="NumberOfPartitions" type="int" access="Read">spf.fanout</property> <!-- extended properties support --> <property name="ExtPropClass" type="int" hidden="true">21</property> <property name="ExtPropMajorID" type="int" hidden="true">spf.function_id</property> <property name="ExtPropMinorID" type="int" hidden="true">0</property> </properties> </EnumObject> L <?xml version="1.0"?> <EnumObject min_major="9" max_major="9"> <settings> <parent_link> <link parent="IndexID" local="IndexID"/> <link parent="TableID" local="ObjectID"/> </parent_link> <property_link table="sys.index_columns ic">ic.partition_ordinal > 0</property_link> <property_link fields="#Name#" join="sys.columns c">c.object_id = ic.object_id and c.column_id = ic.column_id</property_link> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="sysname">c.name</property> <property name="ID" type="int" cast="true">ic.partition_ordinal</property> <!-- used for parent link --> <property name="IndexID" type="int" hidden="true">ic.index_id</property> <property name="ObjectID" type="int" hidden="true">ic.object_id</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="inc_object" impl_type="SqlObject" min_major="7" max_major="9"> <settings/> <properties> <include file="inc_urn.xml"/> <include alias="cstr" file="inc_named_object.xml" for="#Name#ID#CreateDate#DateLastModified#"/> <version min_major="7" max_major="8"> <property name="IsSystemNamed" type="bit" cast="true" access="Read">cstr.status & 4</property> <property name="IsChecked" type="bit" cast="true">1 - ISNULL(OBJECTPROPERTY(cstr.id, N'CnstIsNotTrusted'),0)</property> <property name="IsEnabled" type="bit" cast="true">1 - ISNULL(OBJECTPROPERTY(cstr.id, N'CnstIsDisabled'),0)</property> <property name="NotForReplication" type="bit" cast="true">ISNULL(OBJECTPROPERTY(cstr.id, N'CnstIsNotRepl'),0)</property> </version> <!-- extended properties support--> <version min_major="8" max_major="8"> <property name="ObjectTypeName" type="sysname" hidden="true">N'CONSTRAINT'</property> </version> <version min_major="9" max_major="9"> <property name="IsSystemNamed" type="bit" cast="true" access="Read">cstr.is_system_named</property> <property name="IsChecked" type="bit">~cstr.is_not_trusted</property> <property name="IsEnabled" type="bit">~cstr.is_disabled</property> <property name="NotForReplication" type="bit">cstr.is_not_for_replication</property> </version> <property name="ParentNumber" type="smallint" hidden="true">0</property> </properties> </EnumObject> <?xml version="1.0" encoding="us-ascii"?> <EnumObject type="inc_named_object" impl_type="SqlObject" min_major="7" max_major="9"> <settings> </settings> <properties> <version min_major="7" max_major="8"> <property name="IsSystemObject" type="bit" access="Read" cast="true"> CASE WHEN (OBJECTPROPERTY({0}.id, N'IsMSShipped')=1) THEN 1 WHEN 1 = OBJECTPROPERTY({0}.id, N'IsSystemTable') THEN 1 ELSE 0 END </property> </version> <version min_major="9" max_major="9"> <property name="IsSystemObject" type="bit" access="Read" cast="true"> case when {0}.is_ms_shipped = 1 then 1 when ( select major_id from sys.extended_properties where major_id = {0}.object_id and minor_id = 0 and class = 1 and name = N'microsoft_database_tools_support') is not null then 1 else 0 end </property> </version> </properties> </EnumObject> ? <?xml version="1.0" encoding="us-ascii"?> <EnumObject type="inc_named_object" impl_type="SqlObject" min_major="7" max_major="9"> <settings> </settings> <properties> <version min_major="7" max_major="8"> <property name="IsSystemObject" type="bit" access="Read" cast="true"> CASE WHEN (OBJECTPROPERTY({0}.id, N'IsMSShipped')=1) THEN 1 WHEN 1 = OBJECTPROPERTY({0}.id, N'IsSystemTable') THEN 1 ELSE 0 END </property> </version> <version min_major="9" max_major="9"> <property name="IsSystemObject" type="bit" access="Read" cast="true"> {0}.is_ms_shipped </property> </version> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="inc_object" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <version min_major="7" max_major="8"> <property_link fields="#Schema#" join="sysusers AS s{0}">s{0}.uid = {0}.uid</property_link> </version> </settings> <properties> <include file="inc_urn_schema.xml"/> <include alias="{0}" file="inc_named_object.xml"/> <version min_major="7" max_major="8"> <property name="Schema" type="sysname">s{0}.name</property> <!-- extended properties support --> <property name="ObjectSchemaFromFilter" type="sysname" hidden="true"> <link_multiple no="1" expression="{{0}}"> <link_field type="filter" field="Schema" default_value="null"/> </link_multiple> </property> </version> <version min_major="9" max_major="9"> <property name="Schema" type="sysname">SCHEMA_NAME({0}.schema_id)</property> </version> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="ComputedText" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <parent_link> <link parent="ID" local="ColumnID"/> <link parent="ParentID" local="TableID"/> </parent_link> <property_link table="dbo.syscomments comt"/> </settings> <properties> <property name="ID" type="int" access="Read" cast="true">comt.colid</property> <property name="Text" type="varchar" size="8000" access="Read">comt.text</property> <property name="ObjectIdentifier" type="nvarchar" size="300" access="Read">cast(comt.id as nvarchar(20)) + N'_' + cast(comt.number as nvarchar(20)) + N'_' + cast(db_id() as nvarchar(20)) + N'_0'</property> <property name="TableID" type="int" access="Read" hidden="true">comt.id</property> <property name="ColumnID" type="int" access="Read" hidden="true">comt.number</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="FKColumn" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <parent_link> <link parent="ID" local="FK_ID"/> </parent_link> <version min_major="7" max_major="8"> <property_link table="dbo.sysforeignkeys AS fk"/> <property_link fields="#ID#Name#" join="dbo.syscolumns AS cfk">cfk.colid=fk.fkey and cfk.id = fk.fkeyid</property_link> <property_link fields="#ReferencedColumn#" join="dbo.syscolumns AS crk">crk.colid=fk.rkey and crk.id = fk.rkeyid</property_link> </version> <version min_major="9" max_major="9"> <property_link table="sys.foreign_key_columns AS fk"/> <property_link fields="#ID#Name#" join="sys.columns AS cfk">fk.parent_column_id = cfk.column_id and fk.parent_object_id = cfk.object_id</property_link> <property_link fields="#ReferencedColumn#" join="sys.columns AS crk">fk.referenced_column_id = crk.column_id and fk.referenced_object_id = crk.object_id</property_link> </version> </settings> <properties> <include file="inc_urn.xml"/> <version min_major="7" max_major="8"> <property name="Name" type="sysname">cfk.name</property> <property name="ID" type="int" cast="true">fk.keyno</property> <property name="ReferencedColumn" type="sysname">crk.name</property> <property name="FK_ID" type="int" hidden="true">fk.constid</property> </version> <version min_major="9" max_major="9"> <property name="Name" type="sysname">cfk.name</property> <property name="ID" type="int">fk.constraint_column_id</property> <property name="ReferencedColumn" type="sysname">crk.name</property> <property name="FK_ID" type="int" hidden="true">fk.constraint_object_id</property> </version> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="Server" impl_type="Server" min_major="7" max_major="9"> <!-- this code will truncate paths longer than 512 unicode chars --> <settings> <version min_major="7" max_major="7"> <prefix fields="#NumberOfLogFiles#"> declare @NumErrorLogs int exec master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'NumErrorLogs', @NumErrorLogs OUTPUT </prefix> <prefix fields="#DefaultFile#"> declare @SmoDefaultFile nvarchar(512) exec master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'DefaultData', @SmoDefaultFile OUTPUT </prefix> <prefix fields="#DefaultLog#"> declare @SmoDefaultLog nvarchar(512) exec master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'DefaultLog', @SmoDefaultLog OUTPUT </prefix> <prefix fields="#LoginMode#"> declare @SmoLoginMode int exec master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'LoginMode', @SmoLoginMode OUTPUT </prefix> <prefix fields="#AuditLevel#"> declare @SmoAuditLevel int exec master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'AuditLevel', @SmoAuditLevel OUTPUT </prefix> <prefix fields="#TapeLoadWaitTime#"> declare @SmoTapeLoadWaitTime int exec master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'Tapeloadwaittime', @SmoTapeLoadWaitTime OUTPUT </prefix> <prefix fields="#BackupDirectory#"> declare @BackupDirectory nvarchar(512) exec master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'BackupDirectory', @BackupDirectory OUTPUT </prefix> <prefix fields="#MailProfile#"> declare @SmoMailProfile nvarchar(512) exec master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'MailAccountName', @SmoMailProfile OUTPUT </prefix> <prefix fields="#PerfMonMode#"> declare @SmoPerfMonMode int exec master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'Performance', @SmoPerfMonMode OUTPUT if @SmoPerfMonMode is null begin set @SmoPerfMonMode = 1000 end </prefix> </version> <version min_major="8" max_major="9"> <prefix fields="#NumberOfLogFiles#"> declare @NumErrorLogs int exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'NumErrorLogs', @NumErrorLogs OUTPUT </prefix> <prefix fields="#DefaultFile#"> declare @SmoDefaultFile nvarchar(512) exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'DefaultData', @SmoDefaultFile OUTPUT </prefix> <prefix fields="#DefaultLog#"> declare @SmoDefaultLog nvarchar(512) exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'DefaultLog', @SmoDefaultLog OUTPUT </prefix> <prefix fields="#LoginMode#"> declare @SmoLoginMode int exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'LoginMode', @SmoLoginMode OUTPUT </prefix> <prefix fields="#AuditLevel#"> declare @SmoAuditLevel int exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'AuditLevel', @SmoAuditLevel OUTPUT </prefix> <prefix fields="#TapeLoadWaitTime#"> declare @SmoTapeLoadWaitTime int exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'Tapeloadwaittime', @SmoTapeLoadWaitTime OUTPUT </prefix> <prefix fields="#BackupDirectory#"> declare @BackupDirectory nvarchar(512) exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'BackupDirectory', @BackupDirectory OUTPUT </prefix> <prefix fields="#MailProfile#"> declare @SmoMailProfile nvarchar(512) exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'MailAccountName', @SmoMailProfile OUTPUT </prefix> <prefix fields="#PerfMonMode#"> declare @SmoPerfMonMode int exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'Performance', @SmoPerfMonMode OUTPUT if @SmoPerfMonMode is null begin set @SmoPerfMonMode = 1000 end </prefix> </version> </settings> <properties> <property name="Urn" type="nvarchar" size="600"> <link_multiple no="2" expression="{0} + '/{1}'"> <link_field type="parent" field="Urn"/> <link_field field="NType"/> </link_multiple> </property> <property name="AuditLevel" type="int" report_type="AuditLevel">@SmoAuditLevel</property> <property name="DefaultFile" type="nvarchar" size="512">ISNULL(@SmoDefaultFile,N'')</property> <property name="DefaultLog" type="nvarchar" size="512">ISNULL(@SmoDefaultLog,N'')</property> <property name="NumberOfLogFiles" type="int">ISNULL(@NumErrorLogs, -1)</property> <property name="LoginMode" type="int" report_type="ServerLoginMode">(case when @SmoLoginMode < 3 then @SmoLoginMode else 9 end)</property> <property name="TapeLoadWaitTime" type="int">@SmoTapeLoadWaitTime</property> <property name="MailProfile" type="nvarchar" size="512">ISNULL(@SmoMailProfile,N'')</property> <property name="BackupDirectory" type="nvarchar" size="512" notusage="filter,order">@BackupDirectory</property> <property name="PerfMonMode" type="int" report_type="PerfMonMode">@SmoPerfMonMode</property> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="Server" impl_type="Server" min_major="7" max_major="9"> <settings> <version min_major="7" max_major="7"> <prefix fields="#PhysicalMemory#ProcessorType#Product#Platform#Processors#VersionString#OSVersion#Language#"> create table #SVer(ID int, Name sysname, Internal_Value int, Value nvarchar(512)) insert #SVer exec master.dbo.xp_msver </prefix> <prefix fields="#NetName#"> declare @NetName sysname exec master.dbo.xp_getnetname @NetName OUTPUT </prefix> <prefix fields="#RootDirectory#"> declare @SmoRoot nvarchar(512) exec master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', N'SOFTWARE\Microsoft\MSSQLServer\Setup', N'SQLPath', @SmoRoot OUTPUT </prefix> <prefix fields="#MasterDBPath#MasterDBLogPath#ErrorLogPath#"> declare @RegPathParams sysname declare @Arg sysname declare @Param sysname declare @MasterPath nvarchar(512) declare @LogPath nvarchar(512) declare @ErrorLogPath nvarchar(512) declare @n int select @n=0 select @RegPathParams=N'Software\Microsoft\MSSQLServer\MSSQLServer'+'\Parameters' select @Param='dummy' while(not @Param is null) begin select @Param=null select @Arg='SqlArg'+convert(nvarchar,@n) exec master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', @RegPathParams, @Arg, @Param OUTPUT if(@Param like '-d%') begin select @Param=substring(@Param, 3, 255) select @MasterPath=substring(@Param, 1, len(@Param) - charindex('\', reverse(@Param))) end else if(@Param like '-l%') begin select @Param=substring(@Param, 3, 255) select @LogPath=substring(@Param, 1, len(@Param) - charindex('\', reverse(@Param))) end else if(@Param like '-e%') begin select @Param=substring(@Param, 3, 255) select @ErrorLogPath=substring(@Param, 1, len(@Param) - charindex('\', reverse(@Param))) end select @n=@n+1 end </prefix> <postfix fields="#PhysicalMemory#ProcessorType#Product#Platform#Processors#VersionString#OSVersion#Language#"> drop table #SVer </postfix> </version> <version min_major="8" max_major="9"> <prefix fields="#PhysicalMemory#ProcessorType#Product#Platform#Processors#OSVersion#Language#"> create table #SVer(ID int, Name sysname, Internal_Value int, Value nvarchar(512)) insert #SVer exec master.dbo.xp_msver </prefix> <prefix fields="#RootDirectory#"> declare @SmoRoot nvarchar(512) exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'SOFTWARE\Microsoft\MSSQLServer\Setup', N'SQLPath', @SmoRoot OUTPUT </prefix> <prefix fields="#MasterDBPath#MasterDBLogPath#ErrorLogPath#"> declare @RegPathParams sysname declare @Arg sysname declare @Param sysname declare @MasterPath nvarchar(512) declare @LogPath nvarchar(512) declare @ErrorLogPath nvarchar(512) declare @n int select @n=0 select @RegPathParams=N'Software\Microsoft\MSSQLServer\MSSQLServer'+'\Parameters' select @Param='dummy' while(not @Param is null) begin select @Param=null select @Arg='SqlArg'+convert(nvarchar,@n) exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', @RegPathParams, @Arg, @Param OUTPUT if(@Param like '-d%') begin select @Param=substring(@Param, 3, 255) select @MasterPath=substring(@Param, 1, len(@Param) - charindex('\', reverse(@Param))) end else if(@Param like '-l%') begin select @Param=substring(@Param, 3, 255) select @LogPath=substring(@Param, 1, len(@Param) - charindex('\', reverse(@Param))) end else if(@Param like '-e%') begin select @Param=substring(@Param, 3, 255) select @ErrorLogPath=substring(@Param, 1, len(@Param) - charindex('\', reverse(@Param))) end select @n=@n+1 end </prefix> <postfix fields="#PhysicalMemory#ProcessorType#Product#Platform#Processors#OSVersion#Language#"> drop table #SVer </postfix> </version> </settings> <properties> <property name="Product" type="nvarchar" size="512" access="Read" expensive="true">(select Value from #SVer where Name = N'ProductName')</property> <property name="OSVersion" type="sysname" access="Read" expensive="true">(select Value from #SVer where Name = N'WindowsVersion')</property> <property name="Language" type="sysname" access="Read" expensive="true">(select Value from #SVer where Name = N'Language')</property> <property name="Platform" type="nvarchar" size="512" access="Read" expensive="true">(select Value from #SVer where Name = N'Platform')</property> <property name="PhysicalMemory" type="int" access="Read" expensive="true">(select Internal_Value from #SVer where Name = N'PhysicalMemory')</property> <property name="Processors" type="int" access="Read" expensive="true">(select Internal_Value from #SVer where Name = N'ProcessorCount')</property> <property name="VersionMajor" type="int" access="Read" expensive="true">(@@microsoftversion / 0x1000000) & 0xff</property> <property name="VersionMinor" type="int" access="Read" expensive="true">(@@microsoftversion / 0x10000) & 0xff</property> <property name="BuildNumber" type="int" access="Read" expensive="true">@@microsoftversion & 0xffff</property> <property name="IsCaseSensitive" type="bit" access="Read" cast="true">case when 'a' <> 'A' then 1 else 0 end</property> <property name="IsFullTextInstalled" type="bit" cast="true" access="Read">FULLTEXTSERVICEPROPERTY('IsFullTextInstalled')</property> <property name="MasterDBLogPath" type="nvarchar" size="512" access="Read">@LogPath</property> <property name="MasterDBPath" type="nvarchar" size="512" access="Read">@MasterPath</property> <property name="ErrorLogPath" type="nvarchar" size="512" access="Read">@ErrorLogPath</property> <property name="MaxPrecision" type="tinyint" access="Read">@@MAX_PRECISION</property> <property name="RootDirectory" type="nvarchar" size="512" access="Read">@SmoRoot</property> <version min_major="7" max_major="7"> <property name="VersionString" type="sysname" access="Read" expensive="true">(select Value from #SVer where Name = N'ProductVersion')</property> <property name="NetName" type="sysname" access="Read" expensive="true">@NetName</property> <property name="Edition" type="sysname" access="Read" cast="true">SUBSTRING(@@version,PATINDEX(N'%Corporation%',@@version)+DATALENGTH('Corporation')+2,PATINDEX(N'% on %',@@version)-(PATINDEX(N'%Corporation%',@@version)+DATALENGTH('Corporation')+2))</property> </version> <version min_major="8" max_major="9"> <property name="VersionString" type="sysname" access="Read">SERVERPROPERTY(N'ProductVersion')</property> <property name="NetName" type="sysname" access="Read" cast="true">SERVERPROPERTY(N'MachineName')</property> <property name="Edition" type="sysname" access="Read" cast="true">SERVERPROPERTY(N'Edition')</property> <property name="ProductLevel" type="sysname" access="Read" cast="true">SERVERPROPERTY(N'ProductLevel')</property> <property name="IsClustered" type="bit" access="Read" cast="true">SERVERPROPERTY('IsClustered')</property> <property name="IsSingleUser" type="bit" access="Read" cast="true">SERVERPROPERTY('IsSingleUser')</property> <property name="EngineEdition" type="int" access="Read" cast="true">SERVERPROPERTY('EngineEdition')</property> </version> <version min_major="7" max_major="8"> <property name="HasNullSaPassword" type="bit" access="Read" cast="true" expensive="true">case when (select password from master.dbo.syslogins where sid = 0x01) is null then 1 else 0 end</property> </version> <version min_major="9" max_major="9"> <property name="HasNullSaPassword" type="bit" access="Read" cast="true" expensive="true">null</property> </version> <version min_major="8" max_major="9"> <property name="Collation" type="sysname" access="Read">convert(sysname, serverproperty(N'collation'))</property> </version> </properties> </EnumObject> I <?xml version="1.0"?> <EnumObject type="UserOption" impl_type="UserOption" min_major="7" max_major="9"> <settings> <version min_major="7" max_major="8"> <prefix> declare @UserOption int select @UserOption=c.value from master.dbo.sysconfigures c, master.dbo.spt_values v where v.type = 'C ' and not c.status is null and v.number = c.config and v.name='user options' </prefix> </version> <version min_major="9" max_major="9"> <prefix> declare @UserOption int select @UserOption=c.value from sys.sysconfigures c where not c.status is null and c.comment='user options' </prefix> </version> </settings> <properties> <property name="DisableDefaultConstraintCheck" type="bit" cast="true">@UserOption & 1</property> <property name="ImplicitTransactions" type="bit" cast="true">@UserOption & 2</property> <property name="CursorCloseOnCommit" type="bit" cast="true">@UserOption & 4</property> <property name="AnsiWarnings" type="bit" cast="true">@UserOption & 8</property> <property name="AnsiPadding" type="bit" cast="true">@UserOption & 16</property> <property name="AnsiNulls" type="bit" cast="true">@UserOption & 32</property> <property name="AbortOnArithmeticErrors" type="bit" cast="true">@UserOption & 64</property> <property name="IgnoreArithmeticErrors" type="bit" cast="true">@UserOption & 128</property> <property name="QuotedIdentifier" type="bit" cast="true">@UserOption & 256</property> <property name="NoCount" type="bit" cast="true">@UserOption & 512</property> <property name="AnsiNullDefaultOn" type="bit" cast="true">@UserOption & 1024</property> <property name="AnsiNullDefaultOff" type="bit" cast="true">@UserOption & 2048</property> <property name="ConcatenateNullYieldsNull" type="bit" cast="true">@UserOption & 4096</property> <property name="NumericRoundAbort" type="bit" cast="true">@UserOption & 8192</property> <property name="AbortTransactionOnError" type="bit" cast="true">@UserOption & 16384</property> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="StatisticColumn" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <parent_link> <link parent="ID" local="IndexID"/> <link parent="ParentID" local="TableID"/> </parent_link> <version min_major="7" max_major="8"> <property_link table="dbo.sysindexkeys c"/> <property_link filed="#Name#" table="dbo.syscolumns clmns"> clmns.id = c.id and clmns.colid = c.colid </property_link> </version> <version min_major="9" max_major="9"> <property_link table="sys.stats_columns sic"/> </version> </settings> <properties> <include file="inc_urn.xml"/> <version min_major="7" max_major="8"> <property name="Name" type="nvarchar" size="256">clmns.name</property> <property name="ID" type="int" cast="true">c.keyno</property> <property name="TableID" type="int" hidden="true">c.id</property> <property name="IndexID" type="int" hidden="true">c.indid</property> <property name="ColumnID" type="int" hidden="true">c.colid</property> </version> <version min_major="9" max_major="9"> <property name="Name" type="sysname">COL_NAME(sic.object_id, sic.column_id)</property> <property name="ID" type="int">sic.stats_column_id</property> <property name="TableID" type="int" hidden="true">sic.object_id</property> <property name="IndexID" type="int" hidden="true">sic.stats_id</property> <property name="ColumnID" type="int" hidden="true">sic.column_id</property> </version> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="AvailableMedia" impl_type="SqlObject" min_major="7" max_major="9"> <settings main_table="#avmed am"> <version min_major="8" max_major="9"> <property_link fields="#SharedDrive#" left_join="#tmpsrdDrive srddrv">convert(nchar(1), am.name)= convert(nchar(1), srddrv.DriveName)</property_link> </version> <prefix> create table #avmed (name nvarchar(512), low_free int, high_free int, type int) insert #avmed exec master.dbo.xp_availablemedia update #avmed set name = convert(nchar(2), name) </prefix> <version min_major="8" max_major="8"> <prefix fields="#SharedDrive#" comment="make temp table to avoid collation conflict"> create table #tmpsrdDrive ( DriveName nvarchar(255) ) insert #tmpsrdDrive select * from ::fn_servershareddrives() </prefix> </version> <version min_major="9" max_major="9"> <prefix fields="#SharedDrive#" comment="make temp table to avoid collation conflict"> create table #tmpsrdDrive ( DriveName nvarchar(255) ) insert #tmpsrdDrive select * from sys.fn_servershareddrives() </prefix> </version> <postfix> drop table #avmed </postfix> <version min_major="8" max_major="9"> <postfix fields="#SharedDrive#"> drop table #tmpsrdDrive </postfix> </version> </settings> <properties> <property name="Name" type="nvarchar" size="512">am.name</property> <property name="LowFree" type="int">am.low_free</property> <property name="HighFree" type="int">am.high_free</property> <property name="FreeSpace" type="float" cast="true">case when am.low_free >= 0 then 0. + am.low_free else 4294967296. + am.low_free end + 4294967296. * am.high_free</property> <property name="MediaTypes" type="int" report_type="MediaTypes">am.type</property> <version min_major="8" max_major="9"> <property name="SharedDrive" type="bit" cast="true">case when srddrv.DriveName is null then 0 else 1 end</property> </version> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="ErrorLogText" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <parent_link> <link parent="ArchiveNo" local="ArchiveNo"/> </parent_link> <version min_major="7" max_major="8"> <request_parent_select> <field name="ArchiveNo"/> </request_parent_select> </version> <version min_major="9" max_major="9"> <request_parent_select> <field name="ArchiveNo"/> </request_parent_select> </version> <property_link table="#err_log_text_tmp ert"/> <version min_major="9" max_major="9"> <prefix> <link_multiple no="1" expression=" create table #err_log_text_tmp(LogDate datetime null, ErrorLevel int null, Text nvarchar(4000), ContinuationRow bit, ArchiveNo int null) declare @ArchiveNoChild int declare crs insensitive cursor for ( {0} ) for read only open crs fetch crs into @ArchiveNoChild while @@fetch_status >= 0 begin insert #err_log_text_tmp (LogDate, ErrorLevel, Text) exec master.dbo.sp_readerrorlog @ArchiveNoChild, 2 update #err_log_text_tmp set ArchiveNo = @ArchiveNoChild where ArchiveNo is null fetch crs into @ArchiveNoChild end close crs deallocate crs "> <link_field field="ParentSelect"/> </link_multiple> </prefix> </version> <version min_major="7" max_major="8"> <prefix> <link_multiple no="1" expression=" create table #err_log_text_tmp(LogDate datetime null, ErrorLevel int null, Text nvarchar(4000), ContinuationRow bit, ArchiveNo int null) declare @ErrorLogChild nvarchar(255) declare @ArchiveNoChild int declare crs insensitive cursor for ( {0} ) for read only open crs fetch crs into @ArchiveNoChild while @@fetch_status >= 0 begin set @ErrorLogChild = (select top 1 ErrorLog from #err_log_tmp where ArchiveNo = @ArchiveNoChild) insert #err_log_text_tmp (Text, ContinuationRow) exec master.dbo.sp_readerrorlog -1, @ErrorLogChild update #err_log_text_tmp set ArchiveNo = @ArchiveNoChild where ArchiveNo is null fetch crs into @ArchiveNoChild end close crs deallocate crs UPDATE #err_log_text_tmp SET LogDate = CASE WHEN Text like '[1-2][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]%' THEN CONVERT(datetime, LEFT(Text, 19), 120) ELSE NULL END, ErrorLevel = CASE SUBSTRING(Text, 21, 3) WHEN '- ?' THEN 3 WHEN '- +' THEN 2 ELSE 1 END, Text = SUBSTRING(Text, 25, 4000) WHERE ContinuationRow = 0 "> <link_field field="ParentSelect"/> </link_multiple> </prefix> </version> <postfix> drop table #err_log_text_tmp </postfix> </settings> <properties> <property name="LogDate" type="datetime">ert.LogDate</property> <property name="ErrorLevel" type="int">ert.ErrorLevel</property> <property name="Text" type="nvarchar" size="4000">ert.Text</property> <property name="ArchiveNo" type="int" hidden="true">ert.ArchiveNo</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="ErrorLog" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <property_link table="#err_log_tmp er"/> <version min_major="9" max_major="9"> <prefix> create table #err_log_tmp(ArchiveNo int, CreateDate nvarchar(24), Size int) insert #err_log_tmp exec master.dbo.sp_enumerrorlogs 2 </prefix> </version> <version min_major="7" max_major="8"> <prefix> create table #err_log_tmp(ArchiveNo int, CreateDate datetime, Size int, ErrorLog NVARCHAR(255)) DECLARE @errorlog_path NVARCHAR(255) DECLARE @errorlog_dir NVARCHAR(255) DECLARE @errorlog_partfile NVARCHAR(255) DECLARE @errorlog NVARCHAR(255) DECLARE @dotIdx INT DECLARE @slashIdx INT DECLARE @logexists INT DECLARE @ArchiveNo INT </prefix> </version> <version min_major="7" max_major="7"> <prefix> EXECUTE master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent', N'ErrorLogFile', @errorlog_path OUTPUT, N'no_output' </prefix> </version> <version min_major="8" max_major="8"> <prefix> EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent', N'ErrorLogFile', @errorlog_path OUTPUT, N'no_output' </prefix> </version> <version min_major="7" max_major="8"> <!-- take special care on how we convert the LastWriteTime from xp_getfiledetails sometimes we get only minutes and seconds and sometimes only secconds. Also the hour can have only one digit In all this cases replace the missing digits with 0--> --> <prefix> EXECUTE master.dbo.xp_fileexist @errorlog_path, @logexists OUTPUT IF(@logexists = 1) BEGIN create table #err_logs_dir_tmp(ErrorLog NVARCHAR(255), d int, f int) create table #file_details_tmp(AltName NVARCHAR(32) NULL, Size int, CDate INT, CTime INT, LWDate INT, LWTime INT, LADate INT, LATime INT, Attributes INT) INSERT #file_details_tmp EXECUTE master.dbo.xp_getfiledetails @errorlog_path SET @errorlog_path = REVERSE(@errorlog_path) SET @dotIdx = CHARINDEX(N'.', @errorlog_path); SET @slashIdx = CHARINDEX(N'\', @errorlog_path); SET @errorlog_path = REVERSE(@errorlog_path) SET @errorlog_dir = @errorlog_path if(@slashIdx <> 0) BEGIN SET @errorlog_dir = SUBSTRING(@errorlog_path, 1, LEN(@errorlog_path) - @slashIdx) SET @errorlog_partfile= SUBSTRING(@errorlog_path, LEN(@errorlog_path) - @slashIdx + 2, 255) END if(@dotIdx <> 0) BEGIN SET @errorlog_partfile = SUBSTRING(@errorlog_partfile, 1, LEN(@errorlog_partfile) - @dotIdx + 1) END INSERT #err_logs_dir_tmp EXECUTE master.dbo.xp_dirtree @errorlog_dir, 1, 1 INSERT #err_log_tmp(ArchiveNo, CreateDate, Size, ErrorLog) SELECT 0, -- convert the 2 int's (20020912 152026) to yyyy-mm-dd hh:mi:ss CONVERT(datetime, STUFF(STUFF(STR(LWDate, 8), 7, 0, '-'), 5, 0, '-') + ' ' + STUFF(STUFF(REPLACE(STR(LWTime,6), ' ', '0'), 5, 0, ':'), 3, 0, ':') , 120), Size, @errorlog_path FROM #file_details_tmp DELETE #file_details_tmp declare crslogs insensitive cursor for ( SELECT ErrorLog FROM #err_logs_dir_tmp WHERE ErrorLog like @errorlog_partfile + '[1-9]' ) for read only open crslogs fetch crslogs into @errorlog while @@fetch_status >= 0 begin SET @ArchiveNo = CONVERT(INT, SUBSTRING(@errorlog, LEN(@errorlog_partfile) + 1, 1)) SET @errorlog = @errorlog_dir + '\' + @errorlog INSERT #file_details_tmp EXECUTE master.dbo.xp_getfiledetails @errorlog INSERT #err_log_tmp(ArchiveNo, CreateDate, Size, ErrorLog) SELECT @ArchiveNo, -- convert the 2 int's (20020912 152026) to yyyy-mm-dd hh:mi:ss CONVERT(datetime, STUFF(STUFF(STR(LWDate, 8), 7, 0, '-'), 5, 0, '-') + ' ' + STUFF(STUFF(REPLACE(STR(LWTime,6), ' ', '0'), 5, 0, ':'), 3, 0, ':') , 120), Size, @errorlog FROM #file_details_tmp DELETE #file_details_tmp fetch crslogs into @errorlog end close crslogs deallocate crslogs DROP TABLE #file_details_tmp DROP TABLE #err_logs_dir_tmp END </prefix> </version> <postfix> drop table #err_log_tmp </postfix> </settings> <properties> <property name="Urn" type="nvarchar" size="600"> <link_multiple no="3" expression="{0} + '/{2}[@ArchiveNo=''' + CAST({1} AS sysname) + ''']'"> <link_field type="parent" field="Urn"/> <link_field type="local" field="ArchiveNo"/> <link_field field="NType"/> </link_multiple> </property> <property name="Name" type="sysname" cast="true">er.ArchiveNo</property> <property name="ArchiveNo" type="int">er.ArchiveNo</property> <version min_major="7" max_major="8"> <property name="CreateDate" type="datetime">er.CreateDate</property> </version> <version min_major="9" max_major="9"> <property name="CreateDate" type="datetime">CONVERT(datetime, er.CreateDate, 101)</property> </version> <version min_major="8" max_major="9"> <property name="Size" type="int">er.Size</property> </version> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="SPHelpJobserver" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <parent_link> <link parent="JobID" local="JobID"/> </parent_link> <request_parent_select> <field name="JobID"/> </request_parent_select> <property_link table="#tmp_sp_help_jobserver" alias="tshj"/> <prefix> <link_multiple no="1" expression=" create table #tmp_sp_help_jobserver (server_id int null, server_name nvarchar(30) null, enlist_date datetime null, last_poll_date datetime null, last_run_date int null, last_run_time int null, last_run_duration int null, last_run_outcome tinyint null, last_outcome_message nvarchar(1024) null, job_id uniqueidentifier null) declare @job_id uniqueidentifier declare crs cursor local fast_forward for ( {0} ) open crs fetch crs into @job_id while @@fetch_status >= 0 begin insert into #tmp_sp_help_jobserver(server_id, server_name, enlist_date, last_poll_date, last_run_date, last_run_time, last_run_duration, last_run_outcome, last_outcome_message) exec msdb.dbo.sp_help_jobserver @job_id = @job_id, @show_last_run_details = 1 update #tmp_sp_help_jobserver set job_id = @job_id where job_id is null fetch crs into @job_id end close crs deallocate crs"> <link_field field="ParentSelect"/> </link_multiple> </prefix> <postfix> drop table #tmp_sp_help_jobserver </postfix> <post_process fields="#LastRunDate#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessCreateDateTime" triggered_fields="#LastRunDateInt#LastRunTimeInt#"/> </settings> <properties> <property name="ServerName" type="nvarchar" size="30">tshj.server_name</property> <property name="ID" type="int">tshj.server_id</property> <property name="EnlistDate" type="datetime">tshj.enlist_date</property> <property name="LastPollDate" type="datetime">tshj.last_poll_date</property> <property name="LastRunDate" type="datetime">null</property> <property name="LastRunDateInt" type="int" hidden="true">tshj.last_run_date</property> <property name="LastRunTimeInt" type="int" hidden="true">tshj.last_run_time</property> <property name="LastRunDuration" type="int">tshj.last_run_duration</property> <property name="LastRunOutcome" type="tinyint" report_type="Agent.JobOutcome">tshj.last_run_outcome</property> <property name="LastOutcomeMessage" type="nvarchar" size="1024">tshj.last_outcome_message</property> <property name="JobID" type="uniqueidentifier" hidden="true">tshj.job_id</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="SPHelpJobhistory" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <parent_link> <link parent="JobID" local="JobID"/> </parent_link> <property_link table="#tmp_sp_help_jobhistory" alias="tshj"/> <prefix> create table #tmp_sp_help_jobhistory (instance_id int null, job_id uniqueidentifier null, job_name nvarchar(128) null, step_id int null, step_name nvarchar(128) null, sql_message_id int null, sql_severity int null, message nvarchar(1024) null, run_status int null, run_date int null, run_time int null, run_duration int null, operator_emailed nvarchar(128) null, operator_netsent nvarchar(128) null, operator_paged nvarchar(128) null, retries_attempted int null, server nvarchar(30) null) insert into #tmp_sp_help_jobhistory exec msdb.dbo.sp_help_jobhistory @mode='FULL' </prefix> <postfix> drop table #tmp_sp_help_jobhistory </postfix> </settings> <properties> <property name="InstanceID" type="int">tshj.instance_id</property> <property name="SqlMessageID" type="int">tshj.sql_message_id</property> <property name="Message" type="nvarchar" size="1024">tshj.message</property> <property name="StepID" type="int">tshj.step_id</property> <property name="StepName" type="nvarchar" size="128">tshj.step_name</property> <property name="SqlSeverity" type="int">tshj.sql_severity</property> <property name="JobID" type="uniqueidentifier">tshj.job_id</property> <property name="JobName" type="nvarchar" size="128">tshj.job_name</property> <property name="RunStatus" type="int" report_type="Agent.CompletionResult">tshj.run_status</property> <property name="RunDate" type="datetime">convert(datetime, stuff(stuff(cast(tshj.run_date as nchar(8)), 7, 0, '-'), 5, 0, '-') + N' ' + stuff(stuff(substring(cast(1000000 + tshj.run_time as nchar(7)), 2, 6), 5, 0, ':'), 3, 0, ':'), 120)</property> <property name="RunDuration" type="int">tshj.run_duration</property> <property name="OperatorEmailed" type="nvarchar" size="128">tshj.operator_emailed</property> <property name="OperatorNetsent" type="nvarchar" size="128">tshj.operator_netsent</property> <property name="OperatorPaged" type="nvarchar" size="128">tshj.operator_paged</property> <property name="RetriesAttempted" type="int">tshj.retries_attempted</property> <property name="Server" type="nvarchar" size="30">tshj.server</property> </properties> </EnumObject> " <?xml version="1.0"?> <EnumObject type="sysalerts" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <parent_link> <link local="JobID" parent="JobID"/> </parent_link> </settings> <properties> <include file="agent_alert.xml"/> </properties> </EnumObject> & <?xml version="1.0"?> <EnumObject type="inc_text" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <version min_major="7" max_major="8"> <post_process fields="#Text#" class_name="Microsoft.SqlServer.Management.Smo.PostProcessText"/> </version> </settings> <properties> <version min_major="7" max_major="8"> <property name="Text" type="varchar" size="300" expensive="true"> <link_multiple no="1" expression="cast({{0}} as varchar(20)) + '_' + cast(db_id() as varchar(20)) + '_0'"> <link_field type="local" field="ID"/> </link_multiple> </property> </version> <version min_major="9" max_major="9"> <property name="Text" type="nvarchar" size="max" expensive="true">{0}.definition</property> </version> </properties> </EnumObject> <?xml version="1.0"?> <EnumObject type="SPHelpTargetservergroupMember" impl_type="SqlObject" min_major="9" max_major="9"> <settings> <parent_link> <link local="GroupName" parent="Name"/> </parent_link> <request_parent_select> <field name="Name"/> </request_parent_select> <property_link table="#tmp_sp_help_targetservergroup_member" alias="tshtm"/> <prefix> <link_multiple no="1" expression=" create table #tmp_sp_help_targetservergroup_member (server_id int null, server_name nvarchar(30) null, servergroup_name sysname null) declare @servergroup_name sysname declare crs cursor local fast_forward for ( {0} ) open crs fetch crs into @servergroup_name while @@fetch_status >= 0 begin insert into #tmp_sp_help_targetservergroup_member(server_id, server_name) exec msdb.dbo.sp_help_targetservergroup @name=@servergroup_name update #tmp_sp_help_targetservergroup_member set servergroup_name = @servergroup_name where servergroup_name is null fetch crs into @servergroup_name end close crs deallocate crs"> <link_field field="ParentSelect"/> </link_multiple> </prefix> <postfix> drop table #tmp_sp_help_targetservergroup_member </postfix> </settings> <properties> <property name="Urn" type="nvarchar" size="600"> <link_multiple no="2" expression="{0} + '/TargetServer[@Name=' + quotename({1},'''') + ']'"> <link_field type="parent" field="ParentUrn"/> <link_field type="local" field="Name"/> </link_multiple> </property> <property name="Name" type="nvarchar" size="30">tshtm.server_name</property> <property name="ID" type="int">tshtm.server_id</property> <property name="GroupName" type="sysname" hidden="true">tshtm.servergroup_name</property> </properties> </EnumObject> ? <?xml version="1.0"?> <EnumObject type="SPHelpTargetservergroup" impl_type="SqlObject" min_major="7" max_major="9"> <settings> <property_link table="#tmp_sp_help_targetservergroup" alias="tsht"/> <prefix> create table #tmp_sp_help_targetservergroup (servergroup_id int null, name nvarchar(128) null) insert into #tmp_sp_help_targetservergroup exec msdb..sp_help_targetservergroup </prefix> <postfix> drop table #tmp_sp_help_targetservergroup </postfix> </settings> <properties> <include file="inc_urn.xml"/> <property name="Name" type="nvarchar" size="128">tsht.name</property> <property name="ID" type="int">tsht.servergroup_id</property> <property name="ParentUrn" type="nvarchar" size="600" hidden="true"> <link_multiple no="1" expression="{0}" hidden="true"> <link_field type="parent" field="Urn"/> </link_multiple> </property> </properties> </EnumObject> ?"