Creating a tabular view of space used by all database tables

I’ve been asked all too often to forecast database storage growth over time. The cookie-cutter way to do it is tedious: monitor data file growth blindly over a period of time and derive gross growth from it. I, instead, prefer a more detailed approach which allows me to look not only at the overall [...]

Querying Database Role Memberships & Members on SQL 2005 (III)

It’s time to put all the pieces together and create a simple way to take a look at all the memberships & roles which exist across all our databases. Like I mentioned before, this might be very useful whenever an internal audit comes through and we are asked to produce a report: who, what, [...]

Querying Database Role Memberships & Members on SQL 2005 (II)

On our previous article we briefly touched on database roles and what they are, but more importantly, we started to talk about database principals. A database principal is essentially any entity or object that can request SQL Server resources. So what entities are grouped under the principal ‘moniker’? Anythig from database roles downright to [...]

Querying Database Role Memberships & Members on SQL 2005

A question was raised not long ago on one of the boards I frequently visit, by one member who was trying to generate an report for his management team to audit database level roles & memberships -basically, who could do what and where?

The platform in question was Microsoft SQL Server 2005, and [...]