SQLServerCentral - www.sqlservercentral.com

A community of more than 1,600,000 database professionals and growing

Featured Contents

Featured Script

The Voice of the DBA

Proactive vs Reactive

So, in my new position as a DBA for a consulting firm, I find a lot of my time spent on fighting fires for various clients. Most are smaller companies that use MS SQL Server but don't have a DBA. Normal one of the developers acts the DBA when needed but doesn't really have that much experience with databases.

I am brought in to address whatever their current issues are and while I do that, I normally run a script to see if I can find other obvious issues. Normally it comes back with a laundry list of potential problems. The most common are: everyone is SysAdmin, SQL Login passwords have never been changed, SQL memory setting are left at default, databases are installed on C: drive, no maintenance jobs are set, etc...

When I bring this up the normal response is that "Ted" set up the server and he left 2 years ago. One time I had a developer tell me it was fine, SQL was working great. I was back 2 months later when all the indexes were at 90% fragmentation and the server had crashed due to no free space on the C: drive.

Now, I am not trying to bag on developers, most times they get pushed into the role of accidental DBA because they can spell SQL. They do the best job they can but unless you understand SQL there is a lot of stuff you can miss. No, my complaint is with the companies. Many treat SQL server as a secondary consideration. They have 10 developers and no DBAs. All their data is in SQL server and without that data they can't operate, but they are in reactive mode when they should be in proactive mode. That 48 hours of down time could have been avoided with a bit of disaster recovery planning and regular maintenance on the databases.

So why is SQL server treated as an afterthought? Are DBAs that hard to fine or that expensive? I know there are companies that will come in and do a SQL assessment and give you a list of things that need to be watched or fixed, but it seems like companies never do that until disaster strikes. Or are my experiences the exception rather than the rule?

Companies need to realize that their data is precious and needs to be proactivily patrolled instead of waiting for the crash and then calling someone like me. 

Jim Youmans from SQLServerCentral.com

Join the debate, and respond to today's editorial on the forums

ADVERTISEMENT
SQL Monitor

New SQL Monitor Reporting Module

SQL Monitor now includes a new Reporting module. It allows you to create customized reports, combining the individual server performance metrics available in SQL Monitor with summary information on your entire SQL Server estate. These reports can then be exported to pdf and emailed to you on a scheduled basis. Download SQL Monitor now and get a 14 day free trial.

SQL Prompt

Write, format, and refactor SQL effortlessly with SQL Prompt

Writing SQL is 50% faster with SQL Prompt. Your SQL code can be formatted just the way you like it, you can create and share snippets with your team, and with tab coloring you’ll never deploy to the wrong environment again. Download your free trial.

Featured Contents

 

SSRS Audit: All reports executed/not-executed during previous 30 days

Stan Kulp from SQLServerCentral.com

This article presents a pair of queries and reports that reads the ReportServer.dbo.ExecutionLog table to list all SSRS reports that were executed or not-executed in the past 30 days, how many times they were executed, and who executed them. More »


 

SQL Clone Trivia Quiz - win a $10 gift card every weekday in April

To celebrate the recent launch of their new database provision tool, Redgate are giving you the chance to win a $10 Amazon or Starbucks gift card every weekday this month. To enter the prize draw, just answer the daily SQL Clone trivia question on the right-hand side of the homepage. More »


 

Selecting and Configuring Hardware for SQL Server 2016 Standard Edition

Glenn Berry explains why you need to be very careful about your physical processor choice when configuring servers to run SQL Server 2016 Standard Edition. More »


 

From the SQLServerCentral Blogs - Power BI and Data Security – Row Level Security (RLS)

DataOnWheels from SQLServerCentral Blogs

As Power BI becomes more prevalent in data analytics and visualization within the enterprise, data security becomes a significant concern.... More »


 

From the SQLServerCentral Blogs - Weaning yourself off of SQL Profiler (Part 1)

Wayne Sheffield from SQLServerCentral Blogs

In this brave, new world of Extended Events (XE, XEvents), I find myself with a mixture of scripts for troubleshooting... More »

Question of the Day

Today's Question (by Steve Jones):

I am connected to a SQL Server instance in Azure and want to create an Azure SQL Data Warehouse database. One of the important parameters is the edition. What are my possible values?

Think you know the answer? Click here, and find out if you are right.


We keep track of your score to give you bragging rights against your peers.
This question is worth 1 point in this category: Azure SQL Data Warehouse.

We'd love to give you credit for your own question and answer.
To submit a QOTD, simply log in to the Contribution Center.

ADVERTISEMENT

SQL Server T-SQL Recipes

SQL Server T-SQL Recipes is an example-based guide to the Transact-SQL language that is at the core of SQL Server. This edition has been lightly updated for SQL Server 2014 and provides ready-to-implement solutions to common programming and database administration tasks. Learn to create databases, create in-memory tables and stored procedures, insert and update data, generate reports, secure your data, and more. Get your copy from Amazon today.

Yesterday's Question of the Day

Yesterday's Question (by Steve Jones):

With Dynamic Data Masking in SQL Server 2016+, I have the following mask applied to this table:

 ALTER TABLE users ALTER COLUMN emailaddr ADD MASKED WITH (FUNCTION='email()' )

I have this data in the emailaddr column: "bill@gatescharity.org". If a user that does not have the UNMASK permission but does have SELECT permission queries the table, what is returned?

Answer: bXXX@XXXX.com

Explanation:

The email mask changes all email domains to .com, and shows the first character only of the email address. The domain is masked to xxxx no matter how many characters it is.

Ref: Dynamic Data Masking - click here


» Discuss this question and answer on the forums

Featured Script

PowerShell 3rd Party tool Memory Alert

Edward Pochinski from SQLServerCentral.com

We use a 3rd party tool to monitor some SQL Servers on our farm. After an upgrade we had a memory issue( leak ) on one of the nodes. Once the memory usage crosses 90% you can not re start the service seems the server needs a rebooting not an acceptable solution. If you just bounce the services prior to the 90% mark things stay fine and he product continues working as expected. We developed this as a temporary band aid until the bug fix is sent and applied. This is scheduled from Windows task scheduler. I hope someone may be able to make use of the alert.

More »

Database Pros Who Need Your Help

Here's a few of the new posts today on the forums. To see more, visit the forums.

SQL Server 2016 : SQL Server 2016 - Development and T-SQL

basic SSIS 2016 import fails - ACE OLEDB driver errors - I was trying (in vain) to get my head around SSIS the other day, and tried running the Import Wizard...

expensive key lookup - have the below code from 3rd party app trying to get rid of expensive key lookup. Output from therapyadmin table...

ORALCE TO SQL SERVER MIGRATION Query performance Tuning - Hi Experts, We are migrated Oracle to SQL Server 13.0 using the Cognos Reporting When we run the the below Report query...

SSDT with Express Edition - Hello Community! A customer has an SQL Server Express Edition running in his company. Now I should help to build a system...


SQL Server 2014 : Administration - SQL Server 2014

Uninstallation Logs - Hi All, Is there any way we can find who has uninstalled SQL Server. I have checked Windows logs but could not...


SQL Server 2014 : Development - SQL Server 2014

Help with SQL Loop Query - Hi Guys, I am using below While Loop Syntax but for some reason, I can't update the records or it...

Split out a field of comma separated values based on a unique code in the same row. - Hi I have a comma separated field containing numerous 2 digit numbers that I would like splitting out by a corresponding...


SQL Server 2012 : SQL 2012 - General

SQL Server 2012 with VMWare - Hello, We have a SQL Cluster (2008 + R2) with our database content sitting on a SAN. SAN is coming to end...

SQL Agent Job not sending email failure when 1 step failed - Hi, I have a SQL Server Agent Job which have 5 steps. Each step run a different store procedure.  It setup...

Access Denied after changing HD - Hi, I am running SS2008R2, SS2012 and SS2014 on a home PC for development purposes, read this also as I am...

Ola Hallengren Differential Backup issue - Hello, We have Ola Hallengren Backup solution, the daily differential backup job is failing attached the job history, can some one...

creating new partition files on table - hello all,   I have a table that has 2,948,231,398 billion rows...I know...last week I had to figure out how to...


SQL Server 2008 : T-SQL (SS2K8)

insert query and email - Have a table that when records are inserted will fire off email via trigger.  One record works fine, if I...


SQL Server 2008 : SQL Server Newbies

Stupid Question: Return Object Explorer to It's original position - Stupid question but I accidentally moved object explorer from it's original default position on SSMS. By default, object explorer is...


SQL Server 2008 : SQL Server 2008 Administration

SQL server back up - We are currently using sql server 2005. For back up, we use sql server maintainance job to back up all the...


Data Warehousing : Integration Services

How to query tfs within your ssis package - Hello,  I am looking to query TFS data using SSIS . Please suggest how I can retrieve data from TFS. Thanks, PSB

Multiple versions of SSDT on one workstation - I recently did a series of data imports into SQL Server using the Import/Export Wizard in SSMS 2014, saving the...

Exexute SQL Task, OLEDB , stored procedures parameters - I have mapped 2 parameters - named 0  , 1 within the task Then I have tried EXEC spName ? , ? I have tried it...


SQL Server 2005 : Administering

SQL Server job to delete old backups - Hi, I need to create a job that cleans backups and log backups that are older than a month. I do...


Microsoft Access : Microsoft Access

Dynamic connection string for pass through query - Hi all I've got a pass thorugh query which gets a list of users from SQL (various servers) that's stopped working...

This email has been sent to newsletter@newslettercollector.com. To be removed from this list, please click here.
If you have any problems leaving the list, please contact the webmaster@sqlservercentral.com.
This newsletter was sent to you because you signed up at SQLServerCentral.com.
Feel free to forward this to any colleagues that you think might be interested.
If you have received this email from a colleague, you can register to receive it here.
This transmission is ©2017 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
Contact: webmaster@sqlservercentral.com