<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Stephen Pincher on Medium]]></title>
        <description><![CDATA[Stories by Stephen Pincher on Medium]]></description>
        <link>https://medium.com/@stephenpincher?source=rss-3fecfa6fc94c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RPjrYgWhm_-o6rZg2nbK4Q@2x.jpeg</url>
            <title>Stories by Stephen Pincher on Medium</title>
            <link>https://medium.com/@stephenpincher?source=rss-3fecfa6fc94c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 17:08:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@stephenpincher/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[My standalone Primavera P6 database was cluttered and slow. I fixed it. Here’s how.]]></title>
            <link>https://medium.com/@stephenpincher/my-standalone-primavera-p6-database-was-cluttered-and-slow-i-fixed-it-heres-how-56dd7d043d6f?source=rss-3fecfa6fc94c------2</link>
            <guid isPermaLink="false">https://medium.com/p/56dd7d043d6f</guid>
            <category><![CDATA[primavera-p6]]></category>
            <category><![CDATA[primavera]]></category>
            <category><![CDATA[scheduling-software]]></category>
            <category><![CDATA[scheduling]]></category>
            <category><![CDATA[p6]]></category>
            <dc:creator><![CDATA[Stephen Pincher]]></dc:creator>
            <pubDate>Tue, 03 Oct 2017 09:43:36 GMT</pubDate>
            <atom:updated>2017-10-03T09:43:36.776Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MyZ65DVoeSfNZ2Jqz1BPqQ.jpeg" /></figure><p><strong>I run a standalone version of Primavera P6</strong> alongside the server connected enterprise version I work with most days. A standalone installation of P6 runs on a <a href="https://www.microsoft.com/en-us/sql-server/sql-server-editions-express">SQL Server Express database</a> or <a href="http://www.oracle.com/technetwork/database/database-technologies/express-edition/overview/index.html">Oracle XE</a> database that’s on your PC as opposed to a server somewhere. I tend to use mine for offline interrogation of schedules and cleansing for imports. As a result of this, schedules are regularly imported and deleted, along with codes, resources, calendars etc.</p><p>The outcome of all this importing and deleting is a cluttered database. It might not look cluttered, after all you’re regularly deleting stuff, but it is. This is because when you delete stuff from P6, you’re not really deleting it. You’re just making it invisible and tagging it for removal by processes you can’t see further down the line. There’s good reason for this. It stops the database becoming corrupted by orphan codes etc. That’s the idea anyway.</p><p>The processes that clean up the database properly are designed to run on the server. On a big enterprise server this works fine, but on a standalone installation, running on a local instance of a database these processes often don’t run as planned. As a result, your database can become <strong>sluggish </strong>and <strong>slow</strong>, with regular <strong>crashes</strong>.</p><p>This post will tell you how to run the processes manually. These instructions are for a SQL Server Express installation but the same principles apply with Oracle XE. You should be able to figure it out.</p><h4>Step by Step</h4><p>First, go to your Start menu and find the folder for Microsoft SQL Server. Look inside and open <strong>SQL Server Management Studio</strong>. It will ask you for the database password for your installation. This is different to your P6 password. If you didn’t do the install yourself and don’t know it, ask whoever did.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*ej0uFZ5yEGJ-owGtC_Dm_Q.jpeg" /><figcaption>Microsoft SQL Server Management Studio</figcaption></figure><p>The next thing to do is open up the <strong>database</strong> node in the Object Explorer pane. You should see your P6 database, probably called PMDB. Open this up, then open the node for <strong>Programmability</strong>, then the node for <strong>Stored Procedures</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R6zOjsXFSGEM8YeCu8JVIg.jpeg" /><figcaption>Where to find the Stored Procedures</figcaption></figure><h4>Stored Procedures</h4><p>Two of the procedures will do the job of cleaning out the clutter, It’s actually lots of procedures doing the job, but two of them get the process underway. First find <strong>dbo.SYSTEM_MONITOR</strong>, right click on it and choose <strong>Execute Stored Procedure</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6WaXfeb77vCHJx7hSazlkA.jpeg" /><figcaption>Execute dbo.SYSTEM_MONITOR</figcaption></figure><p>A dialog box will open, click ok. How long the process takes will depend on the size of your database and the amount of cleaning to be done. The end result will be a dialog box hopefully telling you the query has been executed successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p-h6tNq7e3kDlIy0TCfXdg.jpeg" /><figcaption>Query executed successfully</figcaption></figure><p>The next step is exactly the same as the last one, except with the other query. This is called <strong>dbo.DATA_MONITOR</strong>. Do exactly the same thing — right click, choose Execute Stored Procedure, click ok in the dialog box.</p><p>All being well you’ve now decluttered your database and you should see improvements in <strong>stability </strong>and <strong>speed</strong>.</p><h4>Disclaimer</h4><p>Be aware that these processes might fall over if you have a corrupted database. Export any projects you’re scared to lose. You can also back up your database by right clicking on the database (PMDB) icon in the Management Studio and choosing Tools / Back up. I’m only vaguely aware of what these processes do. Most days I’m only vaguely aware of anything. Run them at your own risk.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56dd7d043d6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>