SCCM 2012: SMS Provider Reported an error


 SCCM2012Logo

SMS Provider Reported an error

Salutare, azi va delectez cu o problema de SCCM 2012 SP1. Problema a fost simpla asa ca nu va retin prea mult atentia.

Ce este SMS Provider?

Pe scurt este intermediarul ce face posibila comunicarea intre SCCM si baza de SQL.

Cand apare problema?

Am zis sa incerc si eu ca tot omul chestiile astea noi in SCCM cum ar fi Application Distribution vs Package Distribution dar cand incerc sa fac deploy la o applicatie fie in Native Mode fie Virtual App (App-V) imi arata urmatoarea erroare:

Capture

Verificand SmsProv.log gasesc ceva ce nu ofera prea multe informarii, cel putin pentru mine:

Updating SDM content definition.  $$<SMS Provider><05-04-2013 01:13:28.148-180><thread=3472 (0xD90)> *** declare @rc int, @errxml xml; EXEC @rc=sp_SetupCI 16780320, 0, @errxml out; select @rc, @errxml  $$<SMS Provider><05-04-2013 01:13:29.233-180><thread=3472 (0xD90)> *** *** Unknown SQL Error!  $$<SMS Provider><05-04-2013 01:13:29.234-180><thread=3472 (0xD90)> ~*~*~*** Unknown SQL Error!     ThreadID : 3472 , DbError: 50000 , Sev: 16~*~*~  $$<SMS Provider><05-04-2013 01:13:29.234-180><thread=3472 (0xD90)> *** if (object_id(‘tempdb..#sp_setupci_resultstr’) IS NOT NULL) select * from #sp_setupci_resultstr; else select N”;  $$<SMS Provider><05-04-2013 01:13:29.234-180><thread=3472 (0xD90)> *** [24000][0][Microsoft][SQL Server Native Client 10.0]Invalid cursor state  $$<SMS Provider><05-04-2013 01:13:29.234-180><thread=3472 (0xD90)> ~*~*~[24000][0][Microsoft][SQL Server Native Client 10.0]Invalid cursor state   *** Unknown SQL Error!  ThreadID : 3472 , DbError: 0 , Sev: 0~*~*~  $$<SMS Provider><05-04-2013 01:13:29.234-180><thread=3472

…..and so on.

Cauza?

Am mutat bazele de date pentru SCCM pe un alt drive. Cum le-am mutat? Ca pe orice baza de date SQL , detach, move, attach, DBCC CHECKDB. Procedura perfect valabila la SQL.

Din pacate pentru bazele de SCCM se modifica cateva proprietati atunci cand se face detach si trebuiesc puse la loc.

Rezolvarea

Rulati urmatoarele query-uri:

ALTER DATABASE <ConfigMgr DB> SET TRUSTWORTHY ON

ALTER DATABASE <ConfigMgr DB>  SET ALLOW_SNAPSHOT_ISOLATION ON

ALTER DATABASE <ConfigMgr DB>  SET READ_COMMITTED_SNAPSHOT ON

sp_changedbowner ‘sa’

Acum totul functioneaza cum trebuie.

sphere

Problema este documentata aici http://support.microsoft.com/kb/2709082 .

Paste Fericit, Romane! :))

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s