<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Quae Nocent Docent</title>
	<atom:link href="http://nocentdocent.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://nocentdocent.wordpress.com</link>
	<description>What hurts, teaches - Ordinary tales from management trenches</description>
	<lastBuildDate>Thu, 16 May 2013 11:51:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>Comment on SysCtr 2012 SP1 &#8211; ACS upgrade error (#scom #sysctr) by Dmitry Spesiviy</title>
		<link>http://nocentdocent.wordpress.com/2013/02/12/sysctr-2012-sp1-acs-upgrade-error-scom-sysctr/comment-page-1/#comment-2777</link>
		<dc:creator><![CDATA[Dmitry Spesiviy]]></dc:creator>
		<pubDate>Thu, 16 May 2013 11:51:04 +0000</pubDate>
		<guid isPermaLink="false">https://nocentdocent.wordpress.com/?p=1469#comment-2777</guid>
		<description><![CDATA[I have faced with the same issue. Case 1
Before finding this info - each time I just started ACS again.
So in result I had new tables and views - and default DbUpgV7toV8.sql wasn&#039;t work. I got alerts like “There is already an object named ‘dtClaimString_de5aa3ec_d1fa_46a8_8cf3_213be7f2c733′ in the database.”

So I&#039;ve modified DbUpgV7toV8.sql script.

/******************************************************************************
 *
 * DbUpgV7toV8.sql
 *
 * Updates ACS DB schema from V7 to V8
 *
 ******************************************************************************/

declare @iVersion    int -- current schema version

set @iVersion = (select Value from dtConfig where Id = 2)

if (@iVersion = 7)
begin
    begin tran

    -- update description for existing category
    if exists (select * from dtCategory where Id = 0)
        update dtCategory set Description = N&#039;ACS&#039; where Id = 0
    else
        insert into dtCategory  (Id, Description)                   values (0, N&#039;ACS&#039;)

    -- insert new category entries
    if not exists (select * from dtCategory where Id = 101)
        insert into dtCategory  (Id, Description)                   values (   101, N&#039;Event processing&#039;)
    if not exists (select * from dtCategory where Id = 103)
        insert into dtCategory  (Id, Description)                   values (   103, N&#039;Service shutdown&#039;)
    if not exists (select * from dtCategory where Id = 0x3109)
        insert into dtCategory  (Id, Description)                   values (0x3109, N&#039;User / Device Claims&#039;)
    if not exists (select * from dtCategory where Id = 0x320D)
        insert into dtCategory  (Id, Description)                   values (0x320D, N&#039;Central Access Policy Staging&#039;)

    -- create empty dtClaimString_!g! dtOldResourceAttribute_!g! dtNewResourceAttribute_!g! dtUserClaim_!g! dtDeviceClaim_!g! tables
    declare @vchStmt nvarchar(max)
    declare @vchPartitionId nchar(36)
    declare cPartition cursor for
        select PartitionId from dtPartition order by PartitionCloseTime desc
		
    open cPartition
    fetch next from cPartition into @vchPartitionId
    while @@fetch_status = 0
    begin
        set @vchStmt =  N&#039;create table dtClaimString_&#039; + @vchPartitionId + N&#039; &#039;
        set @vchStmt =  @vchStmt + N&#039;(&#039;
        set @vchStmt =  @vchStmt + N&#039;Id int not null constraint pkClaimString_&#039; + @vchPartitionId + &#039; primary key identity     (0,1),&#039;
        set @vchStmt =  @vchStmt + N&#039;Hash                     binary(20)      not null,&#039;
        set @vchStmt =  @vchStmt + N&#039;strClaimId               nvarchar(max)   not null,&#039;
        set @vchStmt =  @vchStmt + N&#039;strClaimDisplayName      nvarchar(max)   not null,&#039;
        set @vchStmt =  @vchStmt + N&#039;strClaimValue            nvarchar(max)   not null,&#039;
        set @vchStmt =  @vchStmt + N&#039;strClaimValueDisplayName nvarchar(max)   not null&#039;
        set @vchStmt =  @vchStmt + N&#039;)&#039;

		IF OBJECT_ID(&#039;dtClaimString_&#039; + @vchPartitionId, &#039;U&#039;) IS NULL
		BEGIN
			exec (@vchStmt)
		END

        set @vchStmt =  N&#039;create table dtOldResourceAttribute_&#039; + @vchPartitionId + N&#039; &#039;
        set @vchStmt =  @vchStmt + N&#039;(&#039;
        set @vchStmt =  @vchStmt + N&#039;EventId         bigint      not null,&#039;
        set @vchStmt =  @vchStmt + N&#039;CreationTime    datetime    not null,&#039;
        set @vchStmt =  @vchStmt + N&#039;ClaimId         int         not null    constraint fkOldResourceAttributeClaimId_&#039; + @vchPartitionId + N&#039; references dtClaimString_&#039; + @vchPartitionId + N&#039; (Id),&#039;
        set @vchStmt =  @vchStmt + N&#039;)&#039;

		IF OBJECT_ID(&#039;dtOldResourceAttribute_&#039; + @vchPartitionId, &#039;U&#039;) IS NULL
		BEGIN
			exec (@vchStmt)
		END

        set @vchStmt =  N&#039;create table dtNewResourceAttribute_&#039; + @vchPartitionId + N&#039; &#039;
        set @vchStmt =  @vchStmt + N&#039;(&#039;
        set @vchStmt =  @vchStmt + N&#039;EventId         bigint      not null,&#039;
        set @vchStmt =  @vchStmt + N&#039;CreationTime    datetime    not null,&#039;
        set @vchStmt =  @vchStmt + N&#039;ClaimId         int         not null    constraint fkNewResourceAttributeClaimId_&#039; + @vchPartitionId + N&#039; references dtClaimString_&#039; + @vchPartitionId + N&#039; (Id),&#039;
        set @vchStmt =  @vchStmt + N&#039;)&#039;

		IF OBJECT_ID(&#039;dtNewResourceAttribute_&#039; + @vchPartitionId, &#039;U&#039;) IS NULL
		BEGIN
			exec (@vchStmt)
		END

        set @vchStmt =  N&#039;create table dtUserClaim_&#039; + @vchPartitionId + N&#039; &#039;
        set @vchStmt =  @vchStmt + N&#039;(&#039;
        set @vchStmt =  @vchStmt + N&#039;EventId         bigint      not null,&#039;
        set @vchStmt =  @vchStmt + N&#039;CreationTime    datetime    not null,&#039;
        set @vchStmt =  @vchStmt + N&#039;ClaimId         int         not null    constraint fkUserClaimClaimId_&#039; + @vchPartitionId + N&#039; references dtClaimString_&#039; + @vchPartitionId + N&#039; (Id),&#039;
        set @vchStmt =  @vchStmt + N&#039;)&#039;

        IF OBJECT_ID(&#039;dtUserClaim_&#039; + @vchPartitionId, &#039;U&#039;) IS NULL
		BEGIN
			exec (@vchStmt)
		END

        set @vchStmt =  N&#039;create table dtDeviceClaim_&#039; + @vchPartitionId + N&#039; &#039;
        set @vchStmt =  @vchStmt + N&#039;(&#039;
        set @vchStmt =  @vchStmt + N&#039;EventId         bigint      not null,&#039;
        set @vchStmt =  @vchStmt + N&#039;CreationTime    datetime    not null,&#039;
        set @vchStmt =  @vchStmt + N&#039;ClaimId         int         not null    constraint fkDeviceClaimClaimId_&#039; + @vchPartitionId + N&#039; references dtClaimString_&#039; + @vchPartitionId + N&#039; (Id),&#039;
        set @vchStmt =  @vchStmt + N&#039;)&#039;

        IF OBJECT_ID(&#039;dtDeviceClaim_&#039; + @vchPartitionId, &#039;U&#039;) IS NULL
		BEGIN
			exec (@vchStmt)
		END

        fetch next from cPartition into @vchPartitionId
    end

    close cPartition
    deallocate cPartition

    -- create empty dvUserClaims_!g! dvDeviceClaims_!g! dvNewResourceAttribute_!g! dvOldResourceAttribute_!g! views
    declare cPartition cursor for
        select PartitionId from dtPartition order by PartitionCloseTime desc

    open cPartition
    fetch next from cPartition into @vchPartitionId
    while @@fetch_status = 0
    begin
        set @vchStmt =  N&#039;create view dvUserClaims_&#039; + @vchPartitionId + N&#039; &#039;
        set @vchStmt =  @vchStmt + N&#039;as &#039;
        set @vchStmt =  @vchStmt + N&#039;select &#039;
        set @vchStmt =  @vchStmt + N&#039;    uc.EventId as EventId, &#039;
        set @vchStmt =  @vchStmt + N&#039;    uc.CreationTime as CreationTime, &#039;
        set @vchStmt =  @vchStmt + N&#039;    ucs.strClaimId as UserClaimId, &#039;
        set @vchStmt =  @vchStmt + N&#039;    ucs.strClaimDisplayName as UserClaimDisplayName, &#039;
        set @vchStmt =  @vchStmt + N&#039;    ucs.strClaimValue as UserClaimValue, &#039;
        set @vchStmt =  @vchStmt + N&#039;    ucs.strClaimValueDisplayName as UserClaimValueDisplayName &#039;
        set @vchStmt =  @vchStmt + N&#039;FROM &#039;
        set @vchStmt =  @vchStmt + N&#039;    dtUserClaim_&#039; + @vchPartitionId + &#039; as uc &#039;
        set @vchStmt =  @vchStmt + N&#039;    inner join dtClaimString_&#039; + @vchPartitionId + &#039; ucs on ucs.Id = uc.ClaimId &#039;

        IF OBJECT_ID(&#039;dvUserClaims_&#039; + @vchPartitionId, &#039;V&#039;) IS NULL
		BEGIN
			exec (@vchStmt)
		END

        set @vchStmt =  N&#039;create view dvDeviceClaims_&#039; + @vchPartitionId + N&#039; &#039;
        set @vchStmt =  @vchStmt + N&#039;as &#039;
        set @vchStmt =  @vchStmt + N&#039;select &#039;
        set @vchStmt =  @vchStmt + N&#039;    dc.EventId as EventId, &#039;
        set @vchStmt =  @vchStmt + N&#039;    dc.CreationTime as CreationTime, &#039;
        set @vchStmt =  @vchStmt + N&#039;    dcs.strClaimId as DeviceClaimId, &#039;
        set @vchStmt =  @vchStmt + N&#039;    dcs.strClaimDisplayName as DeviceClaimDisplayName, &#039;
        set @vchStmt =  @vchStmt + N&#039;    dcs.strClaimValue as DeviceClaimValue, &#039;
        set @vchStmt =  @vchStmt + N&#039;    dcs.strClaimValueDisplayName as DeviceClaimValueDisplayName &#039;
        set @vchStmt =  @vchStmt + N&#039;FROM &#039;
        set @vchStmt =  @vchStmt + N&#039;    dtDeviceClaim_&#039; + @vchPartitionId + &#039; as dc &#039;
        set @vchStmt =  @vchStmt + N&#039;    inner join dtClaimString_&#039; + @vchPartitionId + &#039; dcs on dcs.Id = dc.ClaimId &#039;

        IF OBJECT_ID(&#039;dvDeviceClaims_&#039; + @vchPartitionId, &#039;V&#039;) IS NULL
		BEGIN
			exec (@vchStmt)
		END

        set @vchStmt =  N&#039;create view dvNewResourceAttributes_&#039; + @vchPartitionId + N&#039; &#039;
        set @vchStmt =  @vchStmt + N&#039;as &#039;
        set @vchStmt =  @vchStmt + N&#039;select &#039;
        set @vchStmt =  @vchStmt + N&#039;    nra.EventId as EventId, &#039;
        set @vchStmt =  @vchStmt + N&#039;    nra.CreationTime as CreationTime, &#039;
        set @vchStmt =  @vchStmt + N&#039;    ncs.strClaimId as NewClaimId, &#039;
        set @vchStmt =  @vchStmt + N&#039;    ncs.strClaimDisplayName as NewClaimDisplayName, &#039;
        set @vchStmt =  @vchStmt + N&#039;    ncs.strClaimValue as NewClaimValue, &#039;
        set @vchStmt =  @vchStmt + N&#039;    ncs.strClaimValueDisplayName as NewClaimValueDisplayName &#039;
        set @vchStmt =  @vchStmt + N&#039;FROM &#039;
        set @vchStmt =  @vchStmt + N&#039;    dtNewResourceAttribute_&#039; + @vchPartitionId + &#039; as nra &#039;
        set @vchStmt =  @vchStmt + N&#039;    inner join dtClaimString_&#039; + @vchPartitionId + &#039; ncs on ncs.Id = nra.ClaimId &#039;

        IF OBJECT_ID(&#039;dvNewResourceAttributes_&#039; + @vchPartitionId, &#039;V&#039;) IS NULL
		BEGIN
			exec (@vchStmt)
		END

        set @vchStmt =  N&#039;create view dvOldResourceAttributes_&#039; + @vchPartitionId + N&#039; &#039;
        set @vchStmt =  @vchStmt + N&#039;as &#039;
        set @vchStmt =  @vchStmt + N&#039;select &#039;
        set @vchStmt =  @vchStmt + N&#039;    nra.EventId as EventId, &#039;
        set @vchStmt =  @vchStmt + N&#039;    nra.CreationTime as CreationTime, &#039;
        set @vchStmt =  @vchStmt + N&#039;    ncs.strClaimId as OldClaimId, &#039;
        set @vchStmt =  @vchStmt + N&#039;    ncs.strClaimDisplayName as OldClaimDisplayName, &#039;
        set @vchStmt =  @vchStmt + N&#039;    ncs.strClaimValue as OldClaimValue, &#039;
        set @vchStmt =  @vchStmt + N&#039;    ncs.strClaimValueDisplayName as OldClaimValueDisplayName &#039;
        set @vchStmt =  @vchStmt + N&#039;FROM &#039;
        set @vchStmt =  @vchStmt + N&#039;    dtOldResourceAttribute_&#039; + @vchPartitionId + &#039; as nra &#039;
        set @vchStmt =  @vchStmt + N&#039;    inner join dtClaimString_&#039; + @vchPartitionId + &#039; ncs on ncs.Id = nra.ClaimId &#039;

        IF OBJECT_ID(&#039;dvOldResourceAttributes_&#039; + @vchPartitionId, &#039;V&#039;) IS NULL
		BEGIN
			exec (@vchStmt)
		END

        fetch next from cPartition into @vchPartitionId
    end

    close cPartition
    deallocate cPartition

    -- mark all active partitions for closing
    if (select count(*) from dtPartition where Status = 0) &gt; 0
        update dtPartition set Status = 1 where Status = 0

    -- update schema version
    update dtConfig set Value = 8 where Id = 2
    commit tran
end
go]]></description>
		<content:encoded><![CDATA[<p>I have faced with the same issue. Case 1<br />
Before finding this info &#8211; each time I just started ACS again.<br />
So in result I had new tables and views &#8211; and default DbUpgV7toV8.sql wasn&#8217;t work. I got alerts like “There is already an object named ‘dtClaimString_de5aa3ec_d1fa_46a8_8cf3_213be7f2c733′ in the database.”</p>
<p>So I&#8217;ve modified DbUpgV7toV8.sql script.</p>
<p>/******************************************************************************<br />
 *<br />
 * DbUpgV7toV8.sql<br />
 *<br />
 * Updates ACS DB schema from V7 to V8<br />
 *<br />
 ******************************************************************************/</p>
<p>declare @iVersion    int &#8212; current schema version</p>
<p>set @iVersion = (select Value from dtConfig where Id = 2)</p>
<p>if (@iVersion = 7)<br />
begin<br />
    begin tran</p>
<p>    &#8212; update description for existing category<br />
    if exists (select * from dtCategory where Id = 0)<br />
        update dtCategory set Description = N&#8217;ACS&#8217; where Id = 0<br />
    else<br />
        insert into dtCategory  (Id, Description)                   values (0, N&#8217;ACS&#8217;)</p>
<p>    &#8212; insert new category entries<br />
    if not exists (select * from dtCategory where Id = 101)<br />
        insert into dtCategory  (Id, Description)                   values (   101, N&#8217;Event processing&#8217;)<br />
    if not exists (select * from dtCategory where Id = 103)<br />
        insert into dtCategory  (Id, Description)                   values (   103, N&#8217;Service shutdown&#8217;)<br />
    if not exists (select * from dtCategory where Id = 0&#215;3109)<br />
        insert into dtCategory  (Id, Description)                   values (0&#215;3109, N&#8217;User / Device Claims&#8217;)<br />
    if not exists (select * from dtCategory where Id = 0x320D)<br />
        insert into dtCategory  (Id, Description)                   values (0x320D, N&#8217;Central Access Policy Staging&#8217;)</p>
<p>    &#8212; create empty dtClaimString_!g! dtOldResourceAttribute_!g! dtNewResourceAttribute_!g! dtUserClaim_!g! dtDeviceClaim_!g! tables<br />
    declare @vchStmt nvarchar(max)<br />
    declare @vchPartitionId nchar(36)<br />
    declare cPartition cursor for<br />
        select PartitionId from dtPartition order by PartitionCloseTime desc</p>
<p>    open cPartition<br />
    fetch next from cPartition into @vchPartitionId<br />
    while @@fetch_status = 0<br />
    begin<br />
        set @vchStmt =  N&#8217;create table dtClaimString_&#8217; + @vchPartitionId + N&#8217; &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;(&#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;Id int not null constraint pkClaimString_&#8217; + @vchPartitionId + &#8216; primary key identity     (0,1),&#8217;<br />
        set @vchStmt =  @vchStmt + N&#8217;Hash                     binary(20)      not null,&#8217;<br />
        set @vchStmt =  @vchStmt + N&#8217;strClaimId               nvarchar(max)   not null,&#8217;<br />
        set @vchStmt =  @vchStmt + N&#8217;strClaimDisplayName      nvarchar(max)   not null,&#8217;<br />
        set @vchStmt =  @vchStmt + N&#8217;strClaimValue            nvarchar(max)   not null,&#8217;<br />
        set @vchStmt =  @vchStmt + N&#8217;strClaimValueDisplayName nvarchar(max)   not null&#8217;<br />
        set @vchStmt =  @vchStmt + N&#8217;)&#8217;</p>
<p>		IF OBJECT_ID(&#8216;dtClaimString_&#8217; + @vchPartitionId, &#8216;U&#8217;) IS NULL<br />
		BEGIN<br />
			exec (@vchStmt)<br />
		END</p>
<p>        set @vchStmt =  N&#8217;create table dtOldResourceAttribute_&#8217; + @vchPartitionId + N&#8217; &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;(&#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;EventId         bigint      not null,&#8217;<br />
        set @vchStmt =  @vchStmt + N&#8217;CreationTime    datetime    not null,&#8217;<br />
        set @vchStmt =  @vchStmt + N&#8217;ClaimId         int         not null    constraint fkOldResourceAttributeClaimId_&#8217; + @vchPartitionId + N&#8217; references dtClaimString_&#8217; + @vchPartitionId + N&#8217; (Id),&#8217;<br />
        set @vchStmt =  @vchStmt + N&#8217;)&#8217;</p>
<p>		IF OBJECT_ID(&#8216;dtOldResourceAttribute_&#8217; + @vchPartitionId, &#8216;U&#8217;) IS NULL<br />
		BEGIN<br />
			exec (@vchStmt)<br />
		END</p>
<p>        set @vchStmt =  N&#8217;create table dtNewResourceAttribute_&#8217; + @vchPartitionId + N&#8217; &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;(&#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;EventId         bigint      not null,&#8217;<br />
        set @vchStmt =  @vchStmt + N&#8217;CreationTime    datetime    not null,&#8217;<br />
        set @vchStmt =  @vchStmt + N&#8217;ClaimId         int         not null    constraint fkNewResourceAttributeClaimId_&#8217; + @vchPartitionId + N&#8217; references dtClaimString_&#8217; + @vchPartitionId + N&#8217; (Id),&#8217;<br />
        set @vchStmt =  @vchStmt + N&#8217;)&#8217;</p>
<p>		IF OBJECT_ID(&#8216;dtNewResourceAttribute_&#8217; + @vchPartitionId, &#8216;U&#8217;) IS NULL<br />
		BEGIN<br />
			exec (@vchStmt)<br />
		END</p>
<p>        set @vchStmt =  N&#8217;create table dtUserClaim_&#8217; + @vchPartitionId + N&#8217; &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;(&#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;EventId         bigint      not null,&#8217;<br />
        set @vchStmt =  @vchStmt + N&#8217;CreationTime    datetime    not null,&#8217;<br />
        set @vchStmt =  @vchStmt + N&#8217;ClaimId         int         not null    constraint fkUserClaimClaimId_&#8217; + @vchPartitionId + N&#8217; references dtClaimString_&#8217; + @vchPartitionId + N&#8217; (Id),&#8217;<br />
        set @vchStmt =  @vchStmt + N&#8217;)&#8217;</p>
<p>        IF OBJECT_ID(&#8216;dtUserClaim_&#8217; + @vchPartitionId, &#8216;U&#8217;) IS NULL<br />
		BEGIN<br />
			exec (@vchStmt)<br />
		END</p>
<p>        set @vchStmt =  N&#8217;create table dtDeviceClaim_&#8217; + @vchPartitionId + N&#8217; &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;(&#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;EventId         bigint      not null,&#8217;<br />
        set @vchStmt =  @vchStmt + N&#8217;CreationTime    datetime    not null,&#8217;<br />
        set @vchStmt =  @vchStmt + N&#8217;ClaimId         int         not null    constraint fkDeviceClaimClaimId_&#8217; + @vchPartitionId + N&#8217; references dtClaimString_&#8217; + @vchPartitionId + N&#8217; (Id),&#8217;<br />
        set @vchStmt =  @vchStmt + N&#8217;)&#8217;</p>
<p>        IF OBJECT_ID(&#8216;dtDeviceClaim_&#8217; + @vchPartitionId, &#8216;U&#8217;) IS NULL<br />
		BEGIN<br />
			exec (@vchStmt)<br />
		END</p>
<p>        fetch next from cPartition into @vchPartitionId<br />
    end</p>
<p>    close cPartition<br />
    deallocate cPartition</p>
<p>    &#8212; create empty dvUserClaims_!g! dvDeviceClaims_!g! dvNewResourceAttribute_!g! dvOldResourceAttribute_!g! views<br />
    declare cPartition cursor for<br />
        select PartitionId from dtPartition order by PartitionCloseTime desc</p>
<p>    open cPartition<br />
    fetch next from cPartition into @vchPartitionId<br />
    while @@fetch_status = 0<br />
    begin<br />
        set @vchStmt =  N&#8217;create view dvUserClaims_&#8217; + @vchPartitionId + N&#8217; &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;as &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;select &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    uc.EventId as EventId, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    uc.CreationTime as CreationTime, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    ucs.strClaimId as UserClaimId, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    ucs.strClaimDisplayName as UserClaimDisplayName, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    ucs.strClaimValue as UserClaimValue, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    ucs.strClaimValueDisplayName as UserClaimValueDisplayName &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;FROM &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    dtUserClaim_&#8217; + @vchPartitionId + &#8216; as uc &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    inner join dtClaimString_&#8217; + @vchPartitionId + &#8216; ucs on ucs.Id = uc.ClaimId &#8216;</p>
<p>        IF OBJECT_ID(&#8216;dvUserClaims_&#8217; + @vchPartitionId, &#8216;V&#8217;) IS NULL<br />
		BEGIN<br />
			exec (@vchStmt)<br />
		END</p>
<p>        set @vchStmt =  N&#8217;create view dvDeviceClaims_&#8217; + @vchPartitionId + N&#8217; &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;as &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;select &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    dc.EventId as EventId, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    dc.CreationTime as CreationTime, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    dcs.strClaimId as DeviceClaimId, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    dcs.strClaimDisplayName as DeviceClaimDisplayName, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    dcs.strClaimValue as DeviceClaimValue, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    dcs.strClaimValueDisplayName as DeviceClaimValueDisplayName &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;FROM &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    dtDeviceClaim_&#8217; + @vchPartitionId + &#8216; as dc &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    inner join dtClaimString_&#8217; + @vchPartitionId + &#8216; dcs on dcs.Id = dc.ClaimId &#8216;</p>
<p>        IF OBJECT_ID(&#8216;dvDeviceClaims_&#8217; + @vchPartitionId, &#8216;V&#8217;) IS NULL<br />
		BEGIN<br />
			exec (@vchStmt)<br />
		END</p>
<p>        set @vchStmt =  N&#8217;create view dvNewResourceAttributes_&#8217; + @vchPartitionId + N&#8217; &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;as &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;select &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    nra.EventId as EventId, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    nra.CreationTime as CreationTime, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    ncs.strClaimId as NewClaimId, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    ncs.strClaimDisplayName as NewClaimDisplayName, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    ncs.strClaimValue as NewClaimValue, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    ncs.strClaimValueDisplayName as NewClaimValueDisplayName &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;FROM &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    dtNewResourceAttribute_&#8217; + @vchPartitionId + &#8216; as nra &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    inner join dtClaimString_&#8217; + @vchPartitionId + &#8216; ncs on ncs.Id = nra.ClaimId &#8216;</p>
<p>        IF OBJECT_ID(&#8216;dvNewResourceAttributes_&#8217; + @vchPartitionId, &#8216;V&#8217;) IS NULL<br />
		BEGIN<br />
			exec (@vchStmt)<br />
		END</p>
<p>        set @vchStmt =  N&#8217;create view dvOldResourceAttributes_&#8217; + @vchPartitionId + N&#8217; &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;as &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;select &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    nra.EventId as EventId, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    nra.CreationTime as CreationTime, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    ncs.strClaimId as OldClaimId, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    ncs.strClaimDisplayName as OldClaimDisplayName, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    ncs.strClaimValue as OldClaimValue, &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    ncs.strClaimValueDisplayName as OldClaimValueDisplayName &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;FROM &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    dtOldResourceAttribute_&#8217; + @vchPartitionId + &#8216; as nra &#8216;<br />
        set @vchStmt =  @vchStmt + N&#8217;    inner join dtClaimString_&#8217; + @vchPartitionId + &#8216; ncs on ncs.Id = nra.ClaimId &#8216;</p>
<p>        IF OBJECT_ID(&#8216;dvOldResourceAttributes_&#8217; + @vchPartitionId, &#8216;V&#8217;) IS NULL<br />
		BEGIN<br />
			exec (@vchStmt)<br />
		END</p>
<p>        fetch next from cPartition into @vchPartitionId<br />
    end</p>
<p>    close cPartition<br />
    deallocate cPartition</p>
<p>    &#8212; mark all active partitions for closing<br />
    if (select count(*) from dtPartition where Status = 0) &gt; 0<br />
        update dtPartition set Status = 1 where Status = 0</p>
<p>    &#8212; update schema version<br />
    update dtConfig set Value = 8 where Id = 2<br />
    commit tran<br />
end<br />
go</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to boost the performance widget performance (#sysctr #scom) by Stephen Hull</title>
		<link>http://nocentdocent.wordpress.com/2013/02/21/how-to-boost-the-performance-widget-performance-sysctr-scom/comment-page-1/#comment-2774</link>
		<dc:creator><![CDATA[Stephen Hull]]></dc:creator>
		<pubDate>Tue, 14 May 2013 18:14:55 +0000</pubDate>
		<guid isPermaLink="false">https://nocentdocent.wordpress.com/?p=1480#comment-2774</guid>
		<description><![CDATA[Fantastic!  What a  great post!  I am going to dig deeper into this as well.]]></description>
		<content:encoded><![CDATA[<p>Fantastic!  What a  great post!  I am going to dig deeper into this as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Applying Update Rollup 2 (UR2) to OpsMgr 2012 SP1&#8211;be warned #sysctr #scom by Daniele Grandini</title>
		<link>http://nocentdocent.wordpress.com/2013/04/19/applying-update-rollup-2-ur2-to-opsmgr-2012-sp1be-warned-sysctr-scom/comment-page-1/#comment-2771</link>
		<dc:creator><![CDATA[Daniele Grandini]]></dc:creator>
		<pubDate>Tue, 14 May 2013 11:00:02 +0000</pubDate>
		<guid isPermaLink="false">https://nocentdocent.wordpress.com/?p=1500#comment-2771</guid>
		<description><![CDATA[not yet as far as I know, but the product Group is aware of the issue.]]></description>
		<content:encoded><![CDATA[<p>not yet as far as I know, but the product Group is aware of the issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Applying Update Rollup 2 (UR2) to OpsMgr 2012 SP1&#8211;be warned #sysctr #scom by Matt</title>
		<link>http://nocentdocent.wordpress.com/2013/04/19/applying-update-rollup-2-ur2-to-opsmgr-2012-sp1be-warned-sysctr-scom/comment-page-1/#comment-2770</link>
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Tue, 14 May 2013 10:06:29 +0000</pubDate>
		<guid isPermaLink="false">https://nocentdocent.wordpress.com/?p=1500#comment-2770</guid>
		<description><![CDATA[Hi,

is a Hotfix from MS available for this Problem?]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>is a Hotfix from MS available for this Problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using Workflow Analyzer remotely by Setup the Workflow Analyzer manually (Part 3) - PointofShare - Site Home - TechNet Blogs</title>
		<link>http://nocentdocent.wordpress.com/2010/08/23/using-workflow-analyzer-remotely/comment-page-1/#comment-2760</link>
		<dc:creator><![CDATA[Setup the Workflow Analyzer manually (Part 3) - PointofShare - Site Home - TechNet Blogs]]></dc:creator>
		<pubDate>Wed, 08 May 2013 18:34:17 +0000</pubDate>
		<guid isPermaLink="false">https://nocentdocent.wordpress.com/?p=761#comment-2760</guid>
		<description><![CDATA[[...] http://nocentdocent.wordpress.com/2010/08/23/using-workflow-analyzer-remotely/comment-page-1/ [...]]]></description>
		<content:encoded><![CDATA[<p>[...] <a href="http://nocentdocent.wordpress.com/2010/08/23/using-workflow-analyzer-remotely/comment-page-1/" rel="nofollow">http://nocentdocent.wordpress.com/2010/08/23/using-workflow-analyzer-remotely/comment-page-1/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Global Service Monitoring &#8211; moving service testing to the cloud by Jason</title>
		<link>http://nocentdocent.wordpress.com/2013/02/07/global-service-monitoring-moving-service-testing-to-the-cloud/comment-page-1/#comment-2754</link>
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Tue, 07 May 2013 12:03:46 +0000</pubDate>
		<guid isPermaLink="false">https://nocentdocent.wordpress.com/?p=1462#comment-2754</guid>
		<description><![CDATA[Thank you. The reason the link doesn&#039;t work yet it it needs access to microsoftonline-p.com. I am working on getting the rules approved and created. Thank you for your assistance!]]></description>
		<content:encoded><![CDATA[<p>Thank you. The reason the link doesn&#8217;t work yet it it needs access to microsoftonline-p.com. I am working on getting the rules approved and created. Thank you for your assistance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Global Service Monitoring &#8211; moving service testing to the cloud by Daniele Grandini</title>
		<link>http://nocentdocent.wordpress.com/2013/02/07/global-service-monitoring-moving-service-testing-to-the-cloud/comment-page-1/#comment-2753</link>
		<dc:creator><![CDATA[Daniele Grandini]]></dc:creator>
		<pubDate>Tue, 07 May 2013 06:18:09 +0000</pubDate>
		<guid isPermaLink="false">https://nocentdocent.wordpress.com/?p=1462#comment-2753</guid>
		<description><![CDATA[Hi Jason,
the only port needed is tcp/443 for https communication to the MS cloud, in my post you can find the fqdn of the endpoints if you need to specify them. Don&#039;t know why the link isn&#039;t working for you, just tried and right now it works.

Daniele]]></description>
		<content:encoded><![CDATA[<p>Hi Jason,<br />
the only port needed is tcp/443 for https communication to the MS cloud, in my post you can find the fqdn of the endpoints if you need to specify them. Don&#8217;t know why the link isn&#8217;t working for you, just tried and right now it works.</p>
<p>Daniele</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Global Service Monitoring &#8211; moving service testing to the cloud by Jason</title>
		<link>http://nocentdocent.wordpress.com/2013/02/07/global-service-monitoring-moving-service-testing-to-the-cloud/comment-page-1/#comment-2752</link>
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Mon, 06 May 2013 18:48:58 +0000</pubDate>
		<guid isPermaLink="false">https://nocentdocent.wordpress.com/?p=1462#comment-2752</guid>
		<description><![CDATA[Greetings, I am trying to configure GSM but cannot even get the &quot;Start Subscription&quot; link to work. Our security team wants to know what firewall rules GSM needs, however I cannot find any documentation on what firewall rules are needed. Does anyone know what websites and ports the management servers need to have access to?]]></description>
		<content:encoded><![CDATA[<p>Greetings, I am trying to configure GSM but cannot even get the &#8220;Start Subscription&#8221; link to work. Our security team wants to know what firewall rules GSM needs, however I cannot find any documentation on what firewall rules are needed. Does anyone know what websites and ports the management servers need to have access to?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Applying Update Rollup 2 (UR2) to OpsMgr 2012 SP1&#8211;be warned #sysctr #scom by Daniele Grandini</title>
		<link>http://nocentdocent.wordpress.com/2013/04/19/applying-update-rollup-2-ur2-to-opsmgr-2012-sp1be-warned-sysctr-scom/comment-page-1/#comment-2732</link>
		<dc:creator><![CDATA[Daniele Grandini]]></dc:creator>
		<pubDate>Thu, 25 Apr 2013 15:53:22 +0000</pubDate>
		<guid isPermaLink="false">https://nocentdocent.wordpress.com/?p=1500#comment-2732</guid>
		<description><![CDATA[yes if you use that method to update and/or deploy agents, but if you use OpsMgr console then you need to manually update your gateways. Personally I just use OpsMgr console push or SCCM software deployment to manage my agents, I want to have control at every stage when I update or deploy agents.]]></description>
		<content:encoded><![CDATA[<p>yes if you use that method to update and/or deploy agents, but if you use OpsMgr console then you need to manually update your gateways. Personally I just use OpsMgr console push or SCCM software deployment to manage my agents, I want to have control at every stage when I update or deploy agents.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Applying Update Rollup 2 (UR2) to OpsMgr 2012 SP1&#8211;be warned #sysctr #scom by Curtiss</title>
		<link>http://nocentdocent.wordpress.com/2013/04/19/applying-update-rollup-2-ur2-to-opsmgr-2012-sp1be-warned-sysctr-scom/comment-page-1/#comment-2731</link>
		<dc:creator><![CDATA[Curtiss]]></dc:creator>
		<pubDate>Thu, 25 Apr 2013 15:15:25 +0000</pubDate>
		<guid isPermaLink="false">https://nocentdocent.wordpress.com/?p=1500#comment-2731</guid>
		<description><![CDATA[won&#039;t the agents--managed by gateways or not-- get UR2 through windows update/wsus/SCCM?]]></description>
		<content:encoded><![CDATA[<p>won&#8217;t the agents&#8211;managed by gateways or not&#8211; get UR2 through windows update/wsus/SCCM?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
