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

Change Approvals

Part of a developer's or DBA's career is getting their work released to some system where others can use the system. Some of us may do this more than others, but we all usually have some role, whether in packaging changes up or actually pushing the button that runs a script or copies files to some live server. This can be an exciting and stressful time, depending on how you feel about the quality of the work.

Releasing software often isn't something done in a vacuum. Even in the highly agile, DevOps companies like Amazon and Facebook where developers release code many times a day, there is often some sort of approval process, whether implicit or explicit, before code goes out. Even if it's just a peer that code reviews something, or a business person that examines a test version and pronounces it correct, another person often weighs in on our changes.

That's not always the case, as I know in emergencies, some of us make quick decisions and change or run code that only we have examined. I'd hope that's the exception, rather than the rule, with most database changes.

Today I'm curious. Who approves your database changes? Is there a formal process? An informal one? Does the person making the decision even understand the code or do they depend on you to have written and tested solid T-SQL?

It's been said that the person closest to the work is often the best person to judge if it should be released, but that's only partially true. Deploying code is often disruptive. It introduces change, which customers may or may not like. There may be good reasons to release at discrete intervals, rather than whenever the developer things things are working. This may change with heavy use of feature flags or feature toggles, but in general, code releases are interruptions and we want to limit them.

Unless something is broken, in which case, we often want the change as quick as it can be released. Does that mean we want a different change process? Let us know today.

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.0MB) 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
SQL Clone

NEW product launch: SQL Clone - live stream this March!

Data Platform MVPs Grant Fritchey and Steve Jones show how to create database copies in seconds using MBs of disk space with Redgate’s NEW database provisioning tool SQL Clone! Tune in to this live stream session on March 29th 2017. Register now.

Featured Contents

 

The Mysterious Case of the Missing Default Value

Raul Gonzalez @SQLDoubleG from SQLServerCentral.com

Sometimes things are not exactly how we think they are. Read the story of the missing default value and learn why. More »


 

Encrypting SQL Server: Transparent Data Encryption (TDE)

Additional Articles from SimpleTalk

Transparent Data Encryption (TDE) encrypts the data within the physical files of the database, the 'data at rest'. Without the original encryption certificate and master key, the data cannot be read when the drive is accessed or the physical media is stolen. The data in unencrypted data files can be read by restoring the files to another server. TDE requires planning but can be implemented without changing the database. Robert Sheldon explains how to implement TDE. More »


 

From the SQLServerCentral Blogs - The $650 SQL Saturday

Steve Jones from SQLServerCentral Blogs

SQL Saturday #596 – Denver BI Edition was held on Feb 25, 2017. In keeping with my idea for a slimmer... More »


 

From the SQLServerCentral Blogs - Is Your Data Open to Abuse? T-SQL Tuesday

James Anderson - The Database Avenger from SQLServerCentral Blogs

T-SQL Tuesday is a monthly event where SQL Server bloggers write a post based on a subject chosen by the... More »

Question of the Day

Today's Question (by Steve Jones):

What does SQL Server 2016 do to make In-Memory Optimized operations run faster?

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: In-Memory OLTP Tables.

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

Tabular Modeling in Microsoft SQL Server Analysis Services

With SQL Server Analysis Services 2016, Microsoft has dramatically upgraded its Tabular approach to business intelligence data modeling, making Tabular the easiest and best solution for most new projects. In this book, two world-renowned experts in Microsoft data modeling and analysis cover all you need to know to create complete BI solutions with these powerful new tools. Get your copy from Amazon today.

Yesterday's Question of the Day

Yesterday's Question (by Steve Jones):

What does this tell me in SQL Server 2016?

 SELECT OBJECTPROPERTY(OBJECT_ID('order'),'TableIsPinned')

Answer: This tells me nothing as tables cannot be pinned in SQL Server 2016

Explanation:

Prior to SQL Server 7, we could pin tables in memory with dbcc pintable. This option remains, but it does not work from SQL Server 2005+.

Ref: OBJECTPROPERTY() - click here


» Discuss this question and answer on the forums

Featured Script

PatReplace8K

Alan Burstein from SQLServerCentral.com

UPDATE (March 20, 2017): Discovered and resolved a bug. When @replace was a space ( char(32) ) the function would just remove characters that matched the pattern instead of replacing them with a space. This has been resolved. 

You don't need Regex for that! 

With the right tools you don't need Regex, CLRs or other 3rd party tools to deal with complex string parsing in T-SQL. There are a number of tools on SSC that will help you do so using only T-SQL. 

Enter patreplace8K. Patreplace 8K leverages the power of PATINDEX and therefore requires SQL Server 2008 or higher. Even if you never use it for developing SQL feel free to use it as yet another example of what you can do with a tally table.

This function mimics some of the functionality of RegexReplace. Patreplace8K requires Cross Apply to be used against the values in a table. See the comment section of the code for a few examples of how to use this function against a variable or a table. 

Note that you can use this function to remove characters by setting the @replace value to ''. You can do this even faster, however using Patexclude8K. You can also double the speed of this function using Adam Mechanic's make_parallel function. 

To better understand the techniques used in this function see:

The "Numbers" or "Tally" Table: What it is and how it replaces a loop

Understanding and Using APPLY

How to Make Scalar UDFs Run Faster (SQL Spackle)

Next-Level Parallel Plan Forcing: An Alternative to 8649

Feel free to direct any questions about this function to me at via the SSC forumns control panel, AlanJBurstein@Gmail.com

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 - Administration

Licensing of SQL Standard 2016 (and SSIS) as Management Instance alongside SQL Express - I have a client with an in-house database which is being ported to SQL Express.  They have around 25 users...

Migrating Databases from old version to new version- in shortest time - Hi, To migrate lots of databases  (~1200 ) , ( some of them VLDB 500 GB ) on a Fri- Sun Maintenance Window 1.Schedule a maintenance...

Different unused table space on SQL Server 2012 vs 2016 - Hello, I have two servers (different versions) with two same databases, but on Server2 one table is more bigger than on...

Upgrade to 2016 questions - All, Unfortunately we are still running a SQL server 2000 server. I've got provisional approval to upgrade it this year so...


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

Renumbering key column in SELECT query - I'm having a little trouble trying to a simple thing.. We have a surrogate key column that I don't want to...

what is sql logic needed to categorize objects by how much they have in common with other objects - I do not know where to begin to solve this with sql and would like advise for tackling problem/or sample...

SELECT @local_variable '=' Versus SELECT @local_variable '+=' - Hello, I am trying to find out what is the purpose of using += when selecting a local variable to the...


SQL Server 2014 : Administration - SQL Server 2014

Modify Column - Tried to change the datatype from nvarchar(250) to nvarchar (20) using below script and its threw error ,but the same...

Remove all leading zeros from a column of data in SQL? - I have a data table called 'ItemNum' The column is a SKU, which is all numbers...the current format is: 028200136107 I need to...

Refresh table data from Prod to UAT - Hello Folks, What is the best approach to refresh UAT table from Production. Tables have foreign key constraints and identity keys....


SQL Server 2014 : Development - SQL Server 2014

row size exceeds the maximum 8060 - When we tried to access a table from .net code we get this error: An unhandled exception of type'System.Data.SqlClient.SqlException' occurred in...

Differences in this where statement - I'm modifying a few queries to make them more efficient and have had success using the following technique. Instead of manually...


SQL Server 2012 : SQL 2012 - General

performance information for sql server and databases - Guys I would like to know in SQL Server how I get specific performance numbers. For example, how long did...

ssl with wildcard certificate - Hello all, I have SQL Server 2012 and want to encrypt my connections by using a wildcard (*.domain.com) ssl certificate from...


SQL Server 2012 : SQL Server 2012 - T-SQL

insert query takes too long .... - I have a insert query in stored procedure it takes min 59 or 110 specs to insert into table. query is insert...


SQL Server 2008 : SQL Server 2008 Administration

Database Documention Tool - Hi All, Can any one guide me to find what is the best sql server database documentation tool? I have searched...


Programming : General

displaying 2 values when field same - I have a field, stop.city_name, and it can be 2 different locations based on a stop.stop_type...so I'm trying to display...

Hierarchy without cursor/loop - Hi Experts I have a situation in which I want to avoid cursors/loops .Suppose I have a table in  the below...


SQL Server 7,2000 : Replication

Could not find stored procedure .... error 2812 - Hi There, I am running sql server 2000 sp4.  I am trying to do a transactional replication of a large amout of...


Microsoft Access : Microsoft Access

trying to upsize MSACCESS 2010 to sql server 2008 - Using sql server migration assistant 7.3 to try to upsize an MSACCESS database.   When I select the MSACCESS accdb files...

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