Sometimes, you’re in the middle of doing something, and you need an answer. You google it and find such a great solution, you want to keep it handy for … whenever! Here is such a post. As the title of my post indicates, you can list out the Data Sources that exist on an SSRS server… and you can do so with this code…which i got entirely from http://gallery.technet.microsoft.com/scriptcenter/List-connection-strings-of-1a9a9adc. Thank you Olaf Helper!
Needing to figure out which users in which database are members of roles? You’ve come to the right spot! Try this code… Continue reading “List out all the database users and the roles they are members of…”
Are you tired of “right-click” “refresh” on the job monitor? Want a single, simple script to tell you what step a job is at? Try this script: Continue reading “Script version of SSMS “Sql Server Agent” Job Activity Monitor”
OK…this is a ‘strange’ post… That is because the script i have for you today is a real ‘utility’ script… it does three things that occasionally come in REAL handy! It tells you the location of your SQL binaries. It tells you the length of the session time out for the server your instance is running on. It tells you the full SQL Version information. Enjoy! Continue reading “Sql Binaries location, SessionTimeout, Sql Version”
What’s the first thing you do when you get a report of a problem on one of your servers? In my case… i run this following script that gives me a quick overview of all the top counters of interest. Continue reading “Sql Server Status”
Need a backup script because xp_sqlMaint is not running on 2008? Try this one. You need only fill in the database name and directory name in the appropriate places below: Continue reading “Backup Script to replace xp_sqlmaint”
It’s early in the morning, and you’ve got disk space problems… log file, right? Yep. OK, we need a script that will tell us what we need to know ASAP. Since i experienced this issue multiple times…and since they always happened on Sunday morning…just before i was going to church (how much more inconvenient can it get?)…i created just such a script. Using two CTE’s i first gather the information i need about the database data files, and then the database log files. Since there can be multiple physical files for either type, i max and sum the needed values before grouping. Then, i combine that data with sys.database information. The result gives me almost all i need to know in a single picture…i’m ready then, with a simple “xp_fixeddrives” to get straight to fixing things. Continue reading “Out of disk space…Log file grown too big?”
Do you need to know all the users for a single database…and also to know what roles they have?
(The key is to look for the string “mscs” in the code and replace it with what your databases beginning strings are…
Introduced in sql 2005 the following query will tell you the date your statistics were last update for each of indexes of a table… Continue reading “When were your statistics last updated?”