{"id":690,"date":"2015-04-27T19:06:00","date_gmt":"2015-04-27T19:06:00","guid":{"rendered":"https:\/\/www.geekmungus.co.uk\/?p=690"},"modified":"2022-11-05T10:53:19","modified_gmt":"2022-11-05T10:53:19","slug":"dealing-with-suspect-tapes-in-microsoft-dpm-2012-r2-2","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=690","title":{"rendered":"Dealing with &#8220;Suspect Tapes&#8221; in Microsoft DPM 2012 R2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Sometimes a tape will be marked as suspect, seemingly for no reason. To resolve this you need to do the follow these instructions to first identify the MediaID of the suspect tape against its Barcode. Then mark it as normal (i.e. not suspect).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Remember great care should be taken when editing the Microsoft DPM database, ensure you have a working backup of the DPM database before making any changes to it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ensure there is a backup of the SQL database for DPM. In SQL Query analyser:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First run a query of the tapes to get a list of suspect tapes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>select MediaId\n\nFROM &#91;DPMDB].&#91;dbo].&#91;tbl_MM_ArchiveMedia]\n\nWHERE IsSuspect = 1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can join this with the other table to match up the IsSuspect field:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT  &#91;BarcodeValue], &#91;DPMDB].&#91;dbo].&#91;tbl_MM_ArchiveMedia].&#91;MediaID]\n\nFROM &#91;DPMDB].&#91;dbo].&#91;tbl_MM_ArchiveMedia]\n\nLEFT OUTER JOIN &#91;DPMDB].&#91;dbo].&#91;tbl_MM_Media]\n\nON &#91;DPMDB].&#91;dbo].&#91;tbl_MM_ArchiveMedia].&#91;MediaID]=&#91;DPMDB].&#91;dbo].&#91;tbl_MM_Media].&#91;MediaID]\n\nWHERE IsSuspect = 1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This gives you all the suspect tapes. Then to query for that one duff tape by the MediaID.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>select *\n\nFROM &#91;DPMDB].&#91;dbo].&#91;tbl_MM_ArchiveMedia]\n\nWHERE IsSuspect = 1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Lets say you want to mark tape mediaID = 6A146B3C-3DC9-4711-AF1D-9E826AF7979C as not suspect. In this case:000209L4 Like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>select *\n\nFROM &#91;DPMDB].&#91;dbo].&#91;tbl_MM_ArchiveMedia]\n\nWHERE IsSuspect = 1 AND MediaID = '6A146B3C-3DC9-4711-AF1D-9E826AF7979C'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To double check it. Then update the issuspect field with this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>UPDATE &#91;DPMDB].&#91;dbo].&#91;tbl_MM_ArchiveMedia]\n\nSET IsSuspect = 0\n\nWHERE IsSuspect = 1 AND MediaID = '6A146B3C-3DC9-4711-AF1D-9E826AF7979C'<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes a tape will be marked as suspect, seemingly for no reason. To resolve this you need to do the follow these instructions to first identify the MediaID of the suspect tape against its Barcode. Then mark it as normal (i.e. not suspect). Remember great care should be taken when editing the Microsoft DPM database, &#8230; <a title=\"Dealing with &#8220;Suspect Tapes&#8221; in Microsoft DPM 2012 R2\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=690\" aria-label=\"Read more about Dealing with &#8220;Suspect Tapes&#8221; in Microsoft DPM 2012 R2\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-690","post","type-post","status-publish","format-standard","hentry","category-microsoft-dpm"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=690"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/690\/revisions"}],"predecessor-version":[{"id":1444,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/690\/revisions\/1444"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}