SQLServerCentral - www.sqlservercentral.com

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

Featured Contents

The Voice of the DBA

Why Change?

I was reading Change is Hard from Jeff Hackert and I started to think about the ways in which I both change and resist change. I then started to think about the ways in which I ask people to change what they're doing. I do this both at work and in life, with mixed levels of success. The one thing the article got me to think about was the idea that in asking someone to change, I'm implying they are doing something poorly, or wrong, already.

In some cases, that's true. When I coach volleyball, I am often telling someone they are not practicing a technique correctly, and they need to change. The trick here is showing them what they are actually doing, since many of us don't realize when we are moving our body incorrectly. We think we're doing what we were told, and often it's only with video evidence do we realize what we're doing wrong. Once we do, it becomes easier to make corrections.

In technology, this is often more nebulous. There isn't often a set way that we should write code. Requirements vary, our schemas and data differ, and we almost always have disparate (and often not enough) indexes. Asking someone to change could very well mean asking them to admit they built something incorrectly. Sometimes we may do that, but often we have confidence in our work. Asking someone else to change how they build or develop software can be hard.

What can even be harder is getting management to change. We often feel pressure from management, who usually see our systems working well enough. While we may see sub-optimal performance, they see business getting completed. While we see stress and long hours, they see work getting done at the same cost. Changing priorities to improve our applications often becomes secondary when potential new features and functions exist. Telling management they're wrong is not only difficult, it's often fruitless.

Change is hard. Most humans like the status quo to continue indefinitely, even when we know that things can improve with some alteration in our routine. Inspiring others to join in and invest for the future is a skill. It's one that I'd encourage you to develop, both with peers and management.

Steve Jones from SQLServerCentral.com

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


The Voice of the DBA Podcast

Listen to the MP3 Audio ( 3.8MB) podcast or subscribe to the feed at iTunes and Libsyn. feed

The Voice of the DBA podcast features music by Everyday Jones. No relation, but I stumbled on to them and really like the music.

ADVERTISEMENT
Webinar

Why the database is at the heart of DevOps success

Wed, Feb 6, 2019 3:00 PM - 3:30 PM GMT - Join Microsoft Data Platform MVP and SQL Server Central Editor Steve Jones to discover why the database is at the heart of DevOps success.
Register now

SQL Provision

SQL Provision: Create, protect, & manage SQL Server database copies for compliant DevOps

With SQL Provisions virtual cloning technology, databases can be created in seconds using just 1MB of storage, and sensitive data can be anonymized or replaced with realistic data to ensure it is protected as it moves between environments. Download your free trial

Featured Contents

 

Creating Your First Stored Procedure

Steve Jones from SQLServerCentral.com

Learn how to get started writing code modules inside of your SQL Server database, More »


 

Getting Started with Database containers

Steve Jones from SQLServerCentral.com

A beginning look at containers in Windows. More »


 

Robotics Process Automation: The New Digital Assistant

Additional Articles from SimpleTalk

When most of us think of robotics used in enterprises, automating manufacturing processes comes to mind. Robotics Process Automation (RPA), however, deals with automating mundane office tasks. In this article, Arvind Kumar explains the benefits of RPA and presents a case study. More »


 

Compliant Database DevOps for SQL Server using Redgate Tools

In this article Stephanie Herr looks at the Redgate tools that give you an end-to-end compliant Database DevOps Solution More »


 

From the SQLServerCentral Blogs - A brief introduction for bcp

Arthur Daniels from SQLServerCentral Blogs

I end up using the bcp utility to move tables between environments, and I’ve found that a lot of the... More »


 

From the SQLServerCentral Blogs - Finding Cluster Log Errors

SQLRUs from SQLServerCentral Blogs

Sometimes you know that a problem occurred, but the tools are not giving you the right information.  If you ever... More »

Question of the Day

Today's Question (by Steve Jones):

I use this code to set a value for a key in my session context:

EXEC sys.sp_set_session_context @key = N'SupplierKey', @value = 7
GO 

Now I want to change this value from a string to a numeric. What happens when I run this code?

EXEC sys.sp_set_session_context @key = N'SupplierKey', @value = N'Acme'
GO 

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: SESSION_CONTEXT().

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

Microsoft SQL Server 2017 on Linux

This comprehensive guide shows, step-by-step, how to set up, configure, and administer SQL Server 2017 on Linux for high performance and high availability. Written by a SQL Server expert and respected author, Microsoft SQL Server 2017 on Linux teaches valuable Linux skills to Windows-based SQL Server professionals. You will get clear coverage of both Linux and SQL Server and complete explanations of the latest features, tools, and techniques. Get your copy from Amazon today.

Yesterday's Question of the Day

Yesterday's Question (by Steve Jones):

I want to change the collation of my SQL Server on Linux. What should I do?

Answer: Run mssql-conf with the "set-collation" parameter

Explanation:

The mssql-conf utility can be used to change the collection of your instance on Linux.

Ref: Change the SQL Server Collation - click here


» Discuss this question and answer on the forums

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

auto-generate-sql-server-restore-script-from-backup-files (bak + trn) -in-a-directory for multi databases - Hello everyone I am looking to generate a restoration script for hundreds of databases with their backup Full and log file...

SSISDB packages move - Hi, Looking for an advice in SSIS migration from 2012 to new version of SQL packages exists in all places..SSISDB,MSDB.Filestore . Current system...


SQL Server 2017 : SQL Server 2017 - Development

split data in equal halves - Hi, I have source data as below. How can i split the data into equal halves and get the other half...

How do I convert a uk date in string format to date? - Hi A user enters a date in uk format (i.e '24/01/2019') into a web form (.net).  I then call my stored...


SQL Server 2016 : SQL Server 2016 - Administration

upgrade to 2016 causing performance problems - Hi all Experts, We have strange problem (at least for our case), we have database in 2012 which was restored...

Export multiple query results with different columns (name and number of columns) into one sheet of CSV file - Hi Experts, I have three different queries which returns three different sets of data with different column names/number of columns from...

Move clustered index to a new filegroup - All, I'm trying to move a clustered index (and therefore the table) to a new file group. It won't let me...


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

Split column values using delimiter and insert them into referenced table - Hello, I am copying few million rows from Table1 into Table2 via INSERT INTO...SELECT. Caveat is that 1 column(Column5) in Table1...

Sort already comma separated list - Hi I have values like this in a column which basically is the exact same thing if sorted . ORM;


SQL Server 2014 : Administration - SQL Server 2014

Copy Backup File - Hi Experts, We have backup job taken every 20 mins(trn) every 1 hour(diff) and weekly full. These backups are taken to...

Need Help with Views - SQL Server 2014 enterprise edition 64 bit Windows server 2012 R2 Standard Edition 64 Bit Database A  TableA Create Table TableA ( Varchar(10) NOT...

Fill Factor for OLTP database - I am setting up a new OLTP database and expect to write to the database about 70% of the time...

SQL 2014 Execute Package Utility Error - This question is regarding a SQL 2014 package not running on my local machine when using Execute Package Utility. I have...


SQL Server 2014 : Development - SQL Server 2014

Find individual column mismatch between source and target - Hi All, Source table: CREATE TABLE EMP_CLIENT(  ID INT     NOT NULL,  NAME VARCHAR (20)  NOT NULL,  AGE INT     NOT NULL,  ADDRESS CHAR (25) ,  SALARY DECIMAL (18, 2),  ...

Merge Multiple Rows into a logic - Good Day, Please find below my requirement : --SOURCE TABLE CREATE TABLE .(      (20) NULL,      (20) NULL,      (40) NULL,    &nb


SQL Server 2012 : SQL 2012 - General

Bulk copy from one server into another server. - I have table contains fifty lakhs records and one of its column contains PDF data in blob column .I want...

Log file backup failure for two jobs - Hello -- Two backup jobs for the log files on our server started failing this afternoon. I have been going over...


SQL Server 2012 : SQL Server 2012 - T-SQL

Question on Grouping -Working number of days - Hi All, I am trying to work out the number of days for each (CODE) from the Code (REQUEST DATE) till...

Query Question - I have a table that contains multiple fields: Diagnosis1 Diagnosis2 Diagnosis3 Diagnosis4 Diagnosis5 Diagnosis6 Diagnosis7 Diagnosis8 Diagnosis9 each field only contain codes, the descriptions are in another table. What I...


SQL Server 2008 : SQL Server 2008 - General

How to find the blocker? - I have encountered a situation when I cannot find out what stored procedure or query is blocking others. Here I...

This email has been sent to {user_email}. 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