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

Data Breach Danger

This editorial was originally published on March 12, 2015 and is being re-run as Steve is at the PASS Summit.

Recently a court in the US ruled that there was no imminent danger from a data breach at a Texas hospital. This is good news and bad news for the world, and I'm a little torn about how I feel. On one hand, it's good for us as data professionals that we aren't necessarily going to be liable for the immediate effects from lost data. While the losses aren't always our fault, we certainly could feel pressure from management if companies faced immediately legal or financial penalties.

However it's bad news because I think there's little else that data breaches do than cause harm to those whose information is lost. It can be incredibly hard to link a specific breach to a specific identity theft incident, and I see this as a way of allowing companies to escape liability for their poor security practices.

In reality, however, I have no solution to propose. As a data professional, I try to keep data safe, but it's very, very difficult. One small hole in your technical infrastructure or human employees and you can lose a ton of data very, very quickly. I know it's not lost, but copied, however you have lost control of it.

We will face more and more security incidents, and as those tasked with protecting data, I'm not sure what we can do, or should do. However, I do think that organizations can't take all responsibility, nor can they take no responsibility. The balance of how to deal with losses and issues is certainly something I hope we work out a a society.

Soon.

Steve Jones from SQLServerCentral.com

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

ADVERTISEMENT
GDPR

How to make your SQL Server development GDPR ready

Redgate’s SQL Data Privacy Suite helps you to build a data catalog of your SQL Server estate, and put in processes to protect and monitor personal information. Find out more about how our tools help with GDPR compliance

Webinar

Enable business agility through Database DevOps

Founder and Chief Technologist at Nebbia Technology, Esteban Garcia, joins Redgate to discuss how DevOps helps technology teams to go faster and automate everything. As teams lower the cycle time between idea and production, how can organizations leverage these new capabilities to improve product delivery and quality?
Register now

Featured Contents

 

Datatypes and the Default Mask with Dynamic Data Masking

Steve Jones from SQLServerCentral.com

This article digs deeper into the ways that Dynamic Data Masking works with different data types. More »


 

Unused Indexes - Are they really unused or have they just not been used YET?

Additional Articles from Brent Ozar Unlimited Blog

Tara explains when index DMVs gets reset by telling a story from her dark past. More »


 

2019 State of Database DevOps – Take the survey!

Database development practices are more integral than ever to DevOps success. How are we saving time, automating processes, deploying more frequently, all whilst keeping business critical data secure? Take part in the survey for an advanced copy of the research report, and a chance to win a $250 Amazon voucher. More »


 

From the SQLServerCentral Blogs - Data Classification in SQL Server 2019

Steve Jones from SQLServerCentral Blogs

One of the areas that Redgate is working on is making data classification easier. Microsoft added some capabilities to SSMS... More »


 

From the SQLServerCentral Blogs - Is your SQL Server environment ready for GDPR? Part 2

Carlos Robles from SQLServerCentral Blogs

In my previous blog post of this topic, I talked about the definition of what GDPR is and also described... More »

Question of the Day

Today's Question (by Steve Jones):

I decide to add a computed column to one of my tables. I use this code:

 ALTER TABLE dbo.SalesOrderHeader ADD WhichDay AS DATEPART(dw, OrderDate) 

I want to index this column. What happens when I run this code?

 CREATE INDEX SalesOrderHeaderIX_DayofWeek ON dbo.SalesOrderHeader (WhichDay) 

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: Indexing.

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

Expert Scripting and Automation for SQL Server DBAs

Automate your workload and manage more databases and instances with greater ease and efficiency by combining metadata-driven automation with powerful tools like PowerShell and SQL Server Agent. Automate your new instance-builds and use monitoring to drive ongoing automation, with the help of an inventory database and a management data warehouse. Get your copy from Amazon today.

Yesterday's Question of the Day

Yesterday's Question (by Steve Jones):

I have a Sales database that is in use by various clients. I want to set this database to the restoring state while we do some work and then make it available for clients again later. I do not want to restore the database from a backup. What can I do?

Answer: Run "BACKUP LOG SALES TO DISK = 'sales.trn' with NORECOVERY"

Explanation:

If you take a tail-log backup, using the BACKUP LOG command, you can use the NORECOVERY (or STANDBY) option to set the databse to the restoring state. Once you are ready, you can use RESTORE DATABASE xxx WITH RECOVERY to make it useable again.

Ref: BACKUP LOG - click here

RESTORE Arguments - click here


» Discuss this question and answer on the forums

Featured Script

Disk Space Check

Rinu George Philip from SQLServerCentral.com

This script will get the information of drives having free percentage less than or equal to 10 % (on all servers that are registered) 

Simply run the script on a Registered Server. 

Right click the Registered server (it could be DEV/QA or PROD or any other) and New Query and execute it.

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

Please advise - Patching questions - Hi All,  I am learning and honestly think this is a great platform and have some basic patching questions. 1. Can I...

Login sa failed - Hi All,  Please advise,  Logon    Login failed for user 'sa'. Reason: Password did not match that for the login provided. . Is some...


SQL Server 2017 : SQL Server 2017 - Development

Column names on INNER JOINS - In my code below I have Invoices.InvID

how to get rows from two datetime fields with hours on morning time. - I have this problem How can I get rows in this example. We are looking for crimes in our database...


SQL Server 2016 : SQL Server 2016 - Administration

Composite indexes; performance - Hi everybody, I have couple quick questions for the DBAs. We have 2 heavy SELECT statements in 2 stored procedures, that are...


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

SSIS Toolbox Different on 2 Servers - I have 2 servers running SQL 2016, but 1 server seems to have "Lost" toolbox items that were there before....

Purchase Order query help - Hello Experts,     Needed some help with a query, the requirement is to identify an Item that is getting ordered but not...

Execute a Stored Procedure against every row insert in Table - I have around 200 tables and we have insert in each table with in each seconds. so there are around 90...

SFTP Options with SQL 2016 ? - Does SQL 2016 have any native support for SFTP ? Looks like previously 3rd party add-ins were the way only option.


SQL Server 2014 : Administration - SQL Server 2014

Maintenance Plan "Ghost" - System details: SQL 2014 SQL Microsoft SQL Server 2014 (SP1-CU9-GDR) (KB3194722) - 12.0.4487.0 (X64) Developer Edition (64-bit) on Windows NT 6.3...


SQL Server 2014 : Development - SQL Server 2014

Subtracting in dynamic SQL - I was updating a stored procedure to change the reporting time to clients timezone. The stored procedure is comprised of...

How to overcome missing 0x for varbinary? - I have a virbinary(MAX)  column which contains an encrypted data. We use standard encryption method EncryptByKey(Key_GUID.... to decrypt the data....

does use of large datatypes where much smaller ones will do, affect performance? - when a table has one hundred columns, where 40 of them have datatypes far exceeding the max(len()) of data actually in them, will this...


SQL Server 2008 : SQL Server 2008 - General

Converting delimiter - Is there a way to change a comma delimited file to pipe delimited using a script? Thanks.


SQL Server 2008 : T-SQL (SS2K8)

Splitting a Full Name - I'm trying to split a full name column up into First / Middle / Last....but some of the names are like "Joe...


Reporting Services : Reporting Services

How to group similar data together in SSRS - Hi,  I created a report and it shows below:   Office Name               Employee # ABC - OFFICE1                   2 ABC - OFFICE2                   3 ABC - OFFICE3            &n


Reporting Services : Reporting Services 2008 Development

How can I prevent the added group items from repeating? - I have a parent group and added two additional columns so they would all show as a group. My problem...


Reporting Services : SSRS 2012

The restrictions imposed by the CONSTRAINED flag in the STRTOMEMBER function were violated. - Hi, I am trying to implement the "calendar picker" functionality in my report, obviously the steps for this functionality has...


Programming : General

Converting between binary hex and GUID (uniqueidentifier) - Sounds easy. but I'm trying to connect the field in msdb.dbo.sysjob (uniqueidentifier) to the text based binary version in...


SQL Server 2005 : SQL Server 2005 Integration Services

How can I update original Ole DB Source after Multicast? - Requirement: I have a flat table that I need to split into many tables, and then timestamp (basically confirming the...

This email has been sent to [email protected]. To be removed from this list, please click here.
If you have any problems leaving the list, please contact the [email protected].
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: [email protected]