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

Emotions and Decision Making

Today we have a guest editorial from Grant Fritchey as Steve is out of town.

This has been an interesting year for elections. Between the Brexit vote and the US Presidential election, emotions around votes and voting seem to be running quite high. I don’t want to get into the politics of either of these votes. Stay or go, Trump or Clinton, there are choices that we make all the time. Same thing goes for the choices we make regarding technology. I read a very interesting article about voting that suggests there’s a lot more emotion tied to that decision than many of us are willing to admit. Not only did it lead me to reexamine my own choices, but it got me thinking, how much emotion is tied up in our technical decision making?

Technical choices are just down to 1s and 0s, right? Emotion doesn’t enter into it… Ha! OK. Let’s try this little thought experiment:

You are a DBA. Your development team has just stated that they’re going to build the next application using an Object/Relational Mapping tool.

How many of you are actual DBAs and you just felt your blood pressure spike or your heart race a little. Think emotion isn’t going to enter into your decision making process? It absolutely will. Are there very successful, well-functioning systems, out there based on ORM tools? Yes. Have there also been train wrecks based on these tools? Yes.

The question isn’t whether or not ORMs, or any other technology (have you moved some of your databases to the cloud?), is inherently evil. The question is, can this technology be applied, appropriately, within the problem space we’re facing. To answer that question, and answer it well, you must divorce yourself from the emotion of the situation. You will have to look at both sides of the equation. Does an ORM tool make database management more difficult? Yeah, it can. Does an ORM tool make coding easier and faster. Yes. Now we have to arrive at a balance point. Are there tools and techniques we can use that will enable us to take advantage of the positive aspects of the ORM tool while still ensuring good database management? Yes. It just takes a little extra effort and research, both on the part of the DBA and on the part of the development team.

The emotional baggage we tie to technology leads us to poor choices. I’ve been around a while. I remember when a DBA said to me: “There is no way we will ever host databases on a virtual machine.” Who believes such a statement now? That was an emotional decision. I was once told: “Azure SQL Database is never going to be fast enough to support average database work loads.” Yet, I now have a couple of friends who are putting more databases into Azure SQL Database because, and I quote, “it’s a lot easier to get good performance.”

I’m not about to question your voting decisions. However, let’s examine, and reexamine, our decisions regarding technology. Are we opposed to TechX because it’s fundamentally flawed? Or, are we instead opposed to TechX because of a past bad experience, or we saw someone make fun of it online, or our favorite presenter/blogger said it was stupid, or we’re just resisting change? Let’s try to take the emotion out of technical decisions so that we can better support our respective businesses. 

Grant Fritchey from SQLServerCentral.com

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

ADVERTISEMENT
SQL Compare

New Redgate SQL Compare 12 has landed!

SQL Compare 12 has landed with a brand new user interface, support for SQL Server 2016, and a wealth of fixes and improvements. Check out this blog post from Redgate's Carly Meichen to hear more about what’s new, why the team have built it, and how. Read now.

DLM Dashboard

Track schema changes for free

DLM Dashboard tracks SQL Server databases to show you exactly what schema changes have been made, by who, and when. You get a full history, with line-by-line differences, and a clear audit trail of your database moving from development to production. Download free tool.

DLM Patterns & Practices

Library of articles for Database Lifecycle Management

Discover a collection of articles about database lifecycle management – covering best practices for your team and tips on each stage in your journey from version control to deployment. Find out more on Simple-Talk.

Featured Contents

 

Learning SQL Server 2016

Site Owners from SQLServerCentral.com

Here is a reference that lets you take a quick look at the new features in SQL Server 2016 and dig into the various items with a collection of links we'll maintain. More »


 

Visualize the timeline of your SQL jobs using Google graph and email

Theo Ekelmans from SQLServerCentral.com

Generate an HTML page with the timeline of your SQL jobs using Google graph and sp_send_dbmail More »


 

SQL Server 2016 DBCC CHECKDB with MAXDOP

Additional Articles from MSSQLTips.com

Ahmad Yaseen explains how you can control the number of processors assigned to the SQL Server DBCC CHECKDB command in order to free-up the server's resources. More »


 

From the SQLServerCentral Blogs - Power BI with Narrative Science: Look Who's Talking (Part 2: Predicting the Future)

Rayis Imayev from SQLServerCentral Blogs

[2016-Oct-18] I read a book one time about the importance of using visual aids in teaching. They also used a well... More »


 

From the SQLServerCentral Blogs - SQL Cruise as a Speaker and Sponsor

Grant Fritchey from SQLServerCentral Blogs

SQL Cruise offers a number of unique opportunities for everyone involved, including speakers and sponsors. I’ve written before, severaltimes, about... More »

Question of the Day

Today's Question (by Steve Jones):

I have a SQL Audit set up and running on SQL Server 2016. This audit has a single server audit specification enabled and running with it.

I find that the audit is no longer needed, so I decided to drop the session. What must I do? 

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

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

Professional Microsoft SQL Server 2014 Integration Services

The 2014 release of Microsoft's SQL Server Integration Services provides enhancements for managing extraction, transformation, and load operations, plus expanded in-memory capabilities, improved disaster recovery, increased scalability, and much more. The increased functionality will streamline your ETL processes and smooth out your workflow, but the catch is that your workflow must change. New tools come with new best practices, and Professional Microsoft SQL Server 2014 Integration Services will keep you ahead of the curve. SQL Server MVP Brian Knight is the most respected name in the business, and your ultimate guide to navigating the changes to use Microsoft SQL Server Integration Services 2014 to your utmost advantage. Get your copy from Amazon today.

Yesterday's Question of the Day

Yesterday's Question (by Steve Jones):

If I am working in Power BI Desktop, I am trying to decide between CONCATENATE() and CONCATENATEX() in a measure. What items are true about these functions? (choose 2)

Answer:

  • CONCATENATE() can combine two string expressions together, either scalar values or columns
  • The delimiter in CONCATENATEX() can be passed in as a parameter.

Explanation:

The CONCATENATE() function is used to concatenate two string values together. These can be any string expression (literal or column name).

CONCATENATEX() will concatenate all the values in a column. The table, column and an optional delimiter are the parameters.

Ref: CONCATENATE - https://msdn.microsoft.com/en-us/library/ee634811.aspx

CONCATENATEX() - https://msdn.microsoft.com/en-us/library/mt163697.aspx

Stairway to DAX and Power BI - Level 11: Function / Iterator Function Pairs: The DAX Concatenate() and ConcatenateX() Functions http://www.sqlservercentral.com/articles/DAX/146049/


» Discuss this question and answer on the forums

Featured Script

Refresh all views in a database

S M from SQLServerCentral.com

Assume that the tables in a database are changed in a way that would affect the definition of any views that are created on it. To help solve this, you will need to refresh the views in the database.

If you have a requirement to refresh all the views in a database, use the script. Change the database name at the top with your required database name and run the script. It should work.

Also if you have any requirement to refresh all views in all the databases, then use a cursor and run through the script. Fairly simple!!!

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

Accidentally Overwrote Stored Procedure - I was working in the "Modify" script of a stored procedure just now. I accidentally selected only a small part...


SQL Server 2014 : Administration - SQL Server 2014

Bit of a rant - queries on space - Sorry this might be me ranting abit, but am prepared for someone to tell me I am being unreasonable hehe. So...

backward compatibility - do I have to install backward compatibility after installing SQL server 2014. And what is backward compatibility used for. And Can I...

Displaying Multiple rows clock event Under a different Column view - I would like to query the data were table output is by each row but i need need display the...


SQL Server 2012 : SQL 2012 - General

function to clean a phonenumber - Hello, I want a sql function that will allow to make one update but with several replace on the same column. For...

Can I do this? - Here is my brilliant idea (that I am sure someone else already thought of...) We have a situation where we regularly...

SSRS Report is not Refreshing - To all: I have created an SSRS report, but the data does not refresh. I am using the SSRS Report Buidler...

SSIS Data Flow Items tab missing in the SSDT 2010 for SSIS 2012 - Hi, I need to see inside a SSIS 2012 project a new SSIS installed component, but in the SSDT 2010 I...


SQL Server 2012 : SQL Server 2012 - T-SQL

Can anyone help optimize runtime on a dimension creating query? - Here's the code I have, and perhaps someone can suggest a better way that will run in less time. This...

Code first vs rightsizing nvarchar(n)/nvarcar(max) - I'm working on a project with a co-worker and I was working on creating a database for some integration of...

Big data: transfer x-number of rows per batch? - Hi all, I must transfer a big table (231k rows not that big, but 735GB big because of blob) to another...


SQL Server 2008 : SQL Server 2008 - General

why my query returns scientific notation for a varchar field? - My first time seeing this: My table has a column of varchar which contains 9 characters registration numbers, if I run...

SQL Alerts - I've created an alert to email me if Lock Wait times exceed 10 seconds. It fires the email after the...


SQL Server 2008 : SQL Server 2008 High Availability

Delete massive records and still can't shrink db - Hi All, I just deleted massive unnecessary records in a database ( around 1 million records ) but unfortunately I am still not...


SQL Server 2008 : Data Corruption (SS2K8 / SS2K8 R2)

String or binary data would be truncated. Error when inserting empty table results into TEMP table - Has someone ran into something strange like this where no data is being inserted but this error happens. Msg 8152, Level...


Programming : General

Want to learn SQL - Dear Friends, Please suggest me some sites to learn SQL online. Thanks in advance.


Programming : Powershell

Powershell help - Hi Experts, Is there is powershell script which displays top 10 database tables taking up more space in each database...


Data Warehousing : Integration Services

Run package when email is received or based on database value? - Hi. I've seen a couple of questions/answers here describing how to use a script to check a folder and see...


Data Warehousing : Analysis Services

100 Concurrent Queries - We are doing some load testing, using 100 XMLA scripts containing MDX queries. We have discovered that not all 100...


SQL Server 2005 : Backups

Error .........While Restoring MASTER database - hi I have build a new Sql server Machine(64 bit ) i am restoring Master database , whose Backup has been taken...

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