Skip to content
SQLInsight

SQLInsight

We Do SQL Right!

  • What’s New
  • Power BI Gallery
  • PowerPoint Downloads
  • About Us
  • Contact Us
  • Home
  • 2012

Year: 2012

List out all the database users and the roles they are members of…

July 2, 2012 Steve Schneider

Needing to figure out which users in which database are members of roles? You’ve come to the right spot! Try this code…

SQL 2005, SQL 2008, SQL AdministrationLeave a Comment on List out all the database users and the roles they are members of…

Script version of SSMS “Sql Server Agent” Job Activity Monitor

June 25, 2012 Steve Schneider

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:

SQL 2000, SQL 2005, SQL 2008, SQL AdministrationLeave a Comment on Script version of SSMS “Sql Server Agent” Job Activity Monitor

Sql Binaries location, SessionTimeout, Sql Version

June 6, 2012 Steve Schneider

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…

Read more

SQL 2005, SQL 2008, SQL AdministrationLeave a Comment on Sql Binaries location, SessionTimeout, Sql Version

Sql Server Status

May 31, 2012 Steve Schneider

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.

SQL 2005, SQL 2008, SQL AdministrationLeave a Comment on Sql Server Status

Backup Script to replace xp_sqlmaint

May 25, 2012 Steve Schneider

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:

SQL 2005, SQL 2008, SQL AdministrationLeave a Comment on Backup Script to replace xp_sqlmaint

Out of disk space…Log file grown too big?

May 17, 2012 Steve Schneider

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…

Read more

SQL 2005, SQL 2008, SQL Administration, UncategorizedLeave a Comment on Out of disk space…Log file grown too big?

Find the users and their roles in a Database

April 2, 2012 Steve Schneider

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…

Read more

SQL 2005, SQL 2008, SQL AdministrationLeave a Comment on Find the users and their roles in a Database

When were your statistics last updated?

March 30, 2012 Steve Schneider

Introduced in sql 2005 the following query will tell you the date your statistics were last update for each of indexes of a table…

Performance Tuning, SQL 2005, SQL 2008Leave a Comment on When were your statistics last updated?

Improved EventLogs in Win 2008

March 29, 2012 Steve Schneider

Recently at one client location we had numerous unexplained cluster failovers. I had SQL Server and Analysis Services running on the clusters. When analysis was done on the failover, the analysts found that the “FlightRecorder” showed errors immediately before the…

Read more

SQL AdministrationLeave a Comment on Improved EventLogs in Win 2008

Determine “Locked Paged” use across your domain…

February 28, 2012 Steve Schneider

So, building on my previous blog entry, now, let’s open a multi-server query and run this script that follows.  It will tell you for each server it’s version and how much memory is in locked pages.

SQL 2005, SQL 2008, SQL AdministrationLeave a Comment on Determine “Locked Paged” use across your domain…

Posts navigation

1 2 Next
Copyright SQL Insight 2017 © All rights reserved.
Business Era by mProThemes