473,325 Members | 2,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Maintenance/Auditing Scripts for SQL Server

Maybe I am asking for the world, but it seems to me that I should be
able to run some scripts against a SQL Server to derive everything of
interest to a database administrator. Things like:

Server Name
Database Name
Database Owner (DBO)
File Group(s)
Users and Permissions
Database Size/Log File Size and Space Available
Recovery Model
Maintenance Plan w/Backup Location
Last successful backup date/time
etc.

Any suggestions greatly appreciated!!!

RBollinger

Sep 19 '08 #1
2 1709
All the information is available, though you have to ask a lot of
different questions. Some things to look into include @@servername,
sp_helpdb (both with and without a specific database name),
sp_helplogin, sp_helpuser, sp_helprotect. Note that you can inspect
the source of all the system stored procedures so that you can figure
out where the information came from.

For backup information I query tables in msdb, mostly msdb..backupset.

Roy Harvey
Beacon Falls, CT

On Fri, 19 Sep 2008 06:16:51 -0700 (PDT), robboll
<ro*****@hotmail.comwrote:
>Maybe I am asking for the world, but it seems to me that I should be
able to run some scripts against a SQL Server to derive everything of
interest to a database administrator. Things like:

Server Name
Database Name
Database Owner (DBO)
File Group(s)
Users and Permissions
Database Size/Log File Size and Space Available
Recovery Model
Maintenance Plan w/Backup Location
Last successful backup date/time
etc.

Any suggestions greatly appreciated!!!

RBollinger
Sep 19 '08 #2
Thanks Roy
Oct 10 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: William F. O'Neill | last post by:
The gentleman at my company who is responsible for the DB(SQL Server 2000) told me today that he wants to clean out all the unused tables from the DB, and asked if I had any suggestions on how to...
4
by: byrocat | last post by:
I know that there are tools like Lumigent, but an wondering about the internal facilities to track events such as table creation, security operations (add login, add role), and such. Under...
4
by: johnm | last post by:
Hello, We currently are running a CRM application that uses DB/2 7.2 for the data repository. We will be upgrading to 8.2 later this year....maybe....time and resources permitting. The...
0
by: gabedog | last post by:
What would be a good (and safe) way to enable/disable a web site in a web farm that needs to come down for maintenance? Periodically, we have db folks that run db scripts. I'd like to put a back...
4
by: Ed Rauscher | last post by:
Does ayone know what Class is used to enable Registry Auditing? Any help would be great.
14
by: Jonas | last post by:
Hi! I'm developing the middletiers of an ASP.NET application in VB.NET. I've got a business logic layer in which I would like to perform auditing to a database. Instead of making an auditing...
0
by: JimLad | last post by:
Hi, I've been tasked with reviewing the Authentication and Auditing of an application and database. ASP/ASP.NET 1.1 app with SQL Server 2000 database. Separate audit trail database on same...
0
by: dba | last post by:
Hi folks, I would just like to share with you SQL CodeSecure, a newly released database protection and auditing tool from SqlLabs: SQL CodeSecure provides ultimate protection from unauthorized...
4
by: Mike Gleason jr Couturier | last post by:
Hi, What's a clean way to redirect users on an information page while doing site maintenance... Can we do it with urlMappings !? (wildcard "*"?) Thanks
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.