Contents tagged with Admin

  • Script to find orphaned/unreachable job steps within your SQL jobs

    Tags: Script, Admin, SQL Jobs

    SQL jobs are great as the SQL agent job engine allows for very granular control over jobs that are created by allowing great flexibility with the scheduling, execution, flow actions and notifications. Invariably, when jobs are setup, they just run and run without many problems, but the other day I was called in to look at a problem where a SQL job seemingly wasn’t doing everything that it should be doing, namely the job steps.

    After a bit of digging around, I discovered that the flow … more

  • Unable to activate a Windows 2003 VM on Hyper-V behind a proxy

    Tags: Windows Server, Admin, VM, Hyper-V

    Ok, so this is not strictly a post about SQL itself (and it's about a fairly old OS), but I did run into this problem myself a couple of weeks ago whilst creating a very specific build to test some functionality and seeing as it took me a little bit of googling, I wanted to jot the fix down as it really was as simple as ticking a box!

    I had to build a new virtual machine running Windows 2003, install .net framework 2 through 4 and also a basic installation of SQL 2008. So I created a new … more

  • Script to analyse space usage by your Service Broker

    Tags: Service Broker, Script, Admin, Performance, Monitoring, Space

    I believe that service broker is one of the best features from SQL server 2005, well along with the xml data type, and I use service broker a lot for messaging between solutions. Over the years it has proven to be extremely reliable; only really stopping because of a poison message or other environment type issue outside the control of the broker.

    Service broker itself uses a number of internal tables which it uses to store details regarding conversations and routing, and there are also any … more

  • Finding orphaned database users

    Tags: Admin, Users

    Database users can become orphaned for a few reasons. For example, a database restore to another instance or deleting the corresponding SQL login would have the effect of leaving a database user orphaned. Development/testing SQL servers may also experience this due to the number of ad-hoc updates that may occur over the years. If you are unlucky enough your production servers may even suffer from this.

    SQL provides a procedure that will provide this information on a database level:

    EXEC … more