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

Do you have or make professional goals?

Today we have a guest editorial as Steve is on holiday.

Well, we made it to 2018. It seems like 2017 went by quite quickly. The start of the year can be a good time to think about where you are going professionally. If you are a goal setting person, you are probably assessing the goals you made last year. Keeping some of the ones you didn’t quite accomplish and adding new ones you hope to achieve this year. Others of you may not make professional goals. Perhaps this is the year to start.

First, I think I should mention I am not talking about New Year’s resolutions. Those often seem certain to fail. I am not saying your goals shouldn’t be or couldn’t be lofty. It just seems like resolutions are anything but resolute. I believe a professional goal can be more of a point of reference. It can be a direction you are moving toward. Still, some goals can also be more general and hard to quantify.

When setting a professional goal, it is important to be specific. You could set a general goal like: I want to be a better DBA, but how would you know if you accomplished it? It would be better to focus on something specific that would help you be a better DBA. Like, I want to understand indexes on a deeper level and how to tune them.

So why are professional goals important? I think when we are NOT trying to move toward something, when we are just staying with status quo, we can fall victim to complacency. This could cost us our jobs. Also, when we have a goal, we can measure our success in achieving that goal. It always feels good when you accomplish something. When trying to accomplishing a goal we often have to learn and master new things. This can be valuable in one’s career. You never know, your goals of today might become your career of tomorrow.

I would encourage you to write your goals down. Perhaps, display them someplace where you work. Share them with co-workers, or if you are really brave share them with your manager. Accountability is often a strong motivation to accomplish things.

It doesn’t hurt to get some help with your goals. You don’t have to go it alone. Others have reached for similar goals before you. Try to follow in their footsteps and learn from their mistakes. Perhaps a mentor would be helpful to you in reaching your goal. Someone that has already achieved it, or has knowledge that would help you attain your goal.

I would encourage you if you don’t make professional goals, to spend some time in the near future to think about it and write some down. Share some past or future goals you have and how you plan on getting there.

Ben Kubicek from SQLServerCentral.com

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

ADVERTISEMENT
SQL Source Control

How to track every change to your SQL Server database

See who’s changing your database, alongside affected objects, date, time, and reason for the change with SQL Source Control. Get a full change history in your source control system. Learn more

SQL Monitor

Don’t just fix SQL Server problems, prevent them from happening

SQL Monitor helps teams looking after SQL Server be more proactive. Not only does SQL Monitor alert you to current issues, it gives you the information you need to stop them happening in the future. Download SQL Monitor now and get a 14 day free trial

Featured Contents

 

Install Visual Studio 2015 in Server without Internet Connection

Vishnu Gupthan from SQLServerCentral.com

Install Visual Studio 2015 in Windows Server without Internet Connection More »


 

SQL Server Machine Learning Services – Part 2: Python Data Frames

SQL Server Machine Learning Services provides the ability to run Python scripts directly against data in SQL Server. To do so, you must understand how to work with the data frame object. Robert Sheldon explains how to get started using the data frame object, how to pass data from SQL Server to it, and how to manipulate it with Python and pandas commands. More »


 

How to automatically provision sanitized data using SQL Clone, Data Masker, and PowerShell

This article describes a strategy, using data masking, cloned databases, and PowerShell, which will allow you to sanitize data before it is copied or moved, for example from a production environment into testing or development environments. More »


 

From the SQLServerCentral Blogs - Split Screens (Day 2)

Wayne Sheffield from SQLServerCentral Blogs

Have you ever wanted to see different parts of the same query window at the same time? Well, in SSMS,... More »


 

From the SQLServerCentral Blogs - How Secure is Transparent Data Encryption (TDE) – and How to Prevent Hacking

Matthew McGiffen from SQLServerCentral Blogs

TDE is commonly described as “at-rest” encryption, i.e. it protects your data wherever it is stored on disk. This includes... More »

Question of the Day

Today's Question (by Steve Jones):

I've got this query:

 SELECT SalesYear = YEAR(soh.orderdate) , SalesMonth = MONTH(soh.OrderDate) , SUM(soh.TotalDue) , AggGroup = GROUPING(YEar(soh.OrderDate)) FROM Sales.SalesOrderHeader AS soh WHERE YEAR(soh.OrderDate) = 2014 GROUP BY GROUPING SETS ( YEAR(soh.OrderDate), (YEAR(soh.OrderDate), MONTH(soh.OrderDate)) ) 

What values are returned for the AggGroup column?

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: T-SQL.

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

The Phoenix Project: A Novel about IT, DevOps, and Helping Your Business Win

The company's new IT initiative, code named Phoenix Project, is critical to the future of Parts Unlimited, but the project is massively over budget and very late. The CEO wants Bill to report directly to him and fix the mess in ninety days or else Bill's entire department will be outsourced.  Get your copy from Amazon today.

Yesterday's Question of the Day

Yesterday's Question (by Steve Jones):

I want to see just how quickly a backup for my AllTheOrdersEverMade database can run and eliminate the potential latency from storage. Which command should I use? I'm running SQL Server 2016.

Answer: BACKUP DATABASE AllTheOrdersEverMade TO DISK = 'NUL'

Explanation:

There is a null device for Windows backups that is known as NUL. You specify this as a disk backup with the format:

 BACKUP DATABASE AllTheOrdersEverMade TO DISK = 'NUL'

This will read all the backup pages and discard them, not sending them across a network or to any storage device, eliminating any latency from the backup target.

Note this can also be DISK = 'NUL:'

Linux uses /dev/null, but SQL Server 2016 doesn't run on Linux.

Ref: Backup with option disk = nul - https://www.sqlservercentral.com/Forums/Topic958673-357-1.aspx

BACKUP DATABASE - click here

BACKUP DEVICES - click here


» Discuss this question and answer on the forums

Featured Script

Database-based Transaction Counting Find Script

Yusuf Kahveci from SQLServerCentral.com

Within the last minute you can learn about our transaction volume on our database with our script below.

NOTE: You can monitor the number of transactions that occur within the range of 10 minutes, 2 minutes, etc., by entering the desired time interval into the WAITFOR DELAY statement.
This script can also be graphically monitored in charts via SSRS by being converted into Jobs in certain periods.
Yusuf KAHVECI
yusufkahveci@sqlturkiye.com
www.sqlturkiye.com
Thanks.

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 2017 : SQL Server 2017 - Administration

How to find who has changed the SQL Server service account - Hi, How to find who has changed the SQL Server service account to run? Tried to find in eventvwr/sql errorlog but...

How do I log into SSMS v17 on a home network? - I've got SSMS v17 installed on a new laptop. And I've got SQL Server 2016 Developer Edition on a desktop...


SQL Server 2017 : SQL Server 2017 - Development

What exactly are window functions and partitions? - Hi everyone, I've been reading about ranking functions in the T-SQL docs and I'm still unclear on the concepts of window...


SQL Server 2016 : SQL Server 2016 - Administration

Running out of space on Server OS drive, where SQL Server app located, what to clear out? - I'm running a MS Windows Server 2012 R2, and SQL Server 2016 SP2, the main HDD OS drive is split...

Audting User Logins - How might you do it. - Hi, So as part of a GDPR requirement I need to audit logins to a database as follows; 1. A user tries to...


SQL Server 2008 : SQL Server 2008 High Availability

Logshipping copy job failure - Hi Team, I am trying to setup logshipping from PROD to DR, and my copy job fails with following error. 2018-01-14 08:15:14.12    Retrieved...


Reporting Services : Reporting Services

ssrs 2010 report date icon is not displaying - I have an ssrs 2010 report that has a date icon on 2 of the parameters that are dates that...


Data Warehousing : Integration Services

How do I code a three-level table name in SSDT that will honour environment settings in deployed job? - Hi, Say I have these databases on my server: Extract_Dev Extract_Prod Transform_Dev Transform_Prod Load_Dev Load_Prod And say my SSDT job has an SQL task such as: INSERT INTO Transform_Dev.dbo.SomeTable SELECT...


Data Warehousing : Analysis Services

Error when setting AttributeHierarchyEnabled to false - When I set on a dimension attribute the property AttributeHierarchyEnabled to false I get an error. When I go to the...

Dup error in dimension attribute in SSAS (not key of table) - Hi, I have a dim in a SSAS cube like this: id_customer  name  city .....................1   Peter H.  Paris .................2   Jhon C.   Paris...


Database Design : Relational Theory

Defining keys as sets that must not intersect instead of scalar values that must not be equal - I have been doing a lot of thinking about data models for the last couple of weeks. I have, just...

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 ©2018 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
Contact: webmaster@sqlservercentral.com