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

The Younger Generation

There are concerns about the next generations of security professionals. The average age of people working in information security is high enough that there is a concern that not enough younger people are entering the profession to meet the demands of the growing security challenges we face.

I wonder if we should we worry about database professionals as well? I have no idea of the average age of data professionals, and I'm not sure we could even get good data. After all, many companies don't hire DBAs, or they have developers working extensively with data in a way that we would think of them as data professionals.

There are always likely to be plenty of people that are willing to develop software and work with data. Even the data science area, where there seem to be few qualified people, is attracting lots of people with a passing interest and a little skill in querying data. However are we getting people that are willing to devote themselves to becoming experts at this craft.

I think that's my concern. It's one I hear Jeff Moden express over and over as well. We find that we have more and more people working in this profession, making their living as a SQL Server focused employee, but they don't have in depth knowledge of SQL Server. I'm not concerned about the guru level understanding of memory clerks, but rather the basic understanding of writing T-SQL, of understanding how and why to use the various types of indexes, of even just being able to get the current date and time.

I know there will always be new people coming to work with SQL Server who will become experts. However I'd hope that we'd have more and more of them percentage-wise, rather than what seems to be fewer and fewer of them.

Steve Jones from SQLServerCentral.com

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

ADVERTISEMENT

Have you got SQL fingers?

Get them here

SQL Finger Tips

Featured Contents

 

Insert Stored Procedure Results Into New Table Without Using OPENQUERY

Orlando Colamatteo from SQLServerCentral.com

OPENQUERY arrives with a lot of baggage. Try this alternative technique to inserting stored procedure results into a new table. More »


 

Better Ways to Build a Database

Additional Articles from SimpleTalk

The purpose of a database build is simple: prove that what you have in version control can successfully create a working database, and yet many teams struggle with unreliable and untested database build processes that slow down deployments and prevent the delivery of new functionality. Grant Fritchey explains how to achieve an automated and reliable database build that is only as complex as the database system it needs to create. More »


 

DevWeek 2016: The Definitive Developer Conference 18-22 April, London

With over 100 breakout sessions and 20 full-day workshops, DevWeek is an unmissable event for developers. Now in its 19th successful year, DevWeek provides a unique opportunity to keep your skills up to date with the latest technologies, best practices and frameworks from industry-leading experts. Register by Thur 24 March and save up to £100 on your delegate pass! More »


 

From the SQLServerCentral Blogs - ETL Logging

Tim Mitchell from SQLServerCentral Blogs

If you were to poll data professionals on which tasks they enjoy working on the most, ETL logging would probably... More »

Question of the Day

Today's Question (by Steve Jones):

In SQL Server 2014, I am trying to determine if a database is a snapshot programmatically. What should 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: Administration.

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

Securing SQL Server - Written by Denny Cherry, a Microsoft MVP for the SQL Server product, a Microsoft Certified Master for SQL Server 2008, and one of the biggest names in SQL Server today, Securing SQL Server, Second Edition explores the potential attack vectors someone can use to break into your SQL Server database as well as how to protect your database from these attacks. In this book, you will learn how to properly secure your database from both internal and external threats using best practices and specific tricks the author uses in his role as an independent consultant while working on some of the largest and most complex SQL Server installations in the world. This edition includes new chapters on Analysis Services, Reporting Services, and Storage Area Network Security.

Get your copy from Amazon today.

Yesterday's Question of the Day

Yesterday's Question (by Steve Jones):

I have this code: 

 CREATE TABLE DDM_Questions ( myemail VARCHAR(300) MASKED WITH (FUNCTION='email()') ) GO INSERT dbo.DDM_Questions ( myemail ) VALUES ( '@dog.com' -- myemail ); GO CREATE USER ddmtest WITHOUT LOGIN; GO GRANT SELECT ON dbo.DDM_Questions TO ddmtest; GO EXECUTE AS USER = 'ddmtest' SELECT * FROM dbo.DDM_Questions; GO 

What is returned from the final SELECT?

Answer: @XXX@XXXX.com

Explanation:

The email mask works by building a string as follows:

  • The first character of the value in the column is included.
  • Next there are 3 Xs appended
  • An @ symbol is next
  • 4 Xs are added
  • .com is the end of the string.

In this case, that means the first character (@) is returned, then the XXX@XXXX.com is next.

Ref: Dynamic Data Masking - https://msdn.microsoft.com/en-us/library/mt130841.aspx


» Discuss this question and answer on the forums

Featured Script

Script DB Level Permissions v4

S. Kusen from SQLServerCentral.com

This is a replacement for http://www.sqlservercentral.com/scripts/Security/71562/ which is corrupt and SSC cannot get it to be editable for me.

This T-SQL code will script out database and object level permissions to help make it easier to backup and restore databases, and subsequently restore the permissions.  A primary use case would be to restore a production database to a lower environment where users have more permissions in the lower environment.  

You could then:

1. Script out the permissions using this script in the lower environment.
2. Restore the database.
3. Restore the permissions from the output from step 1.

It seems to work on SQL 2005-2014, so have at it and let me know in the comments if you come across any problems, and I'll be sure to update the script.

Hope you enjoy!

Steve

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

2014 SSMS - SA Account password changing on it's owm - how to get rid off this issue. - Guys, Have you ever heard of the the SQL password changing on it's own - for our software the SA password? I...

Avoid Blank Values in a column - Hi All, I need to avoid/deny blank values/empty string ('') entered into few columns in a table. This column already does not...


SQL Server 2014 : Development - SQL Server 2014

Trouble Deploying CLR functions - I have some CLR functions that were compiled and under .Net framework 2.0 for SQL Server 2008. I modified and...


SQL Server 2012 : SQL 2012 - General

How do I install AdventureWorks in my local PC - I have SSMS installed on my PC. However, I am not able to install the AW database on my local...

Query slow just once a day - OK, this is driving me nuts. I have a query that runs slowly once a day (2 minutes) and then...

Add Date Stamp to File created using 'INTO' Statement - Hi Forum, I'm creating a file each day that is created as follows; [quote][/Select a,b,c, INTO dbo.MyResults from Table1 quote] I would like...


SQL Server 2012 : SQL Server 2012 - T-SQL

That old conversion failed Date Time error - Hi All, Apologies if I have committed a sin but am starting a new thread after updating another as this is...

Finding retention of a person - I would like to ask if anyone would be able to help out with this. I would be more than...

generate unique id for each row within a range - Hi All I want to assign one unique id to each row in a table and the range is from 1...


SQL Server 2008 : SQL Server 2008 - General

Trim string based on characters - Hi, I have strings like WebApp - 10148 Smart - App - 1458 [b]Expected Result[/b] WebApp Smart - App I want to trim the characters from - to numbers from right. I...

Correct DataType? - If I have a user entry field that could hold a bible of information and could have formatted text (carriage...


SQL Server 2008 : T-SQL (SS2K8)

Looping and scalar value - Hi No doubt this is standard behaviour I should already know about, but I'm a little unclear about it. The example...

Set @var being used in Where IN - I am trying to set up a variable @Location, for use in a where .. IN, but can not seem to...

0 is equal to zero length string. Can someone explain how this can be? - --I know this has to do with an implicit conversion of the varchar to int, --but why does the zero...

xp_cmdshell exec ssis package in 32bit mode - I have a package set to run in 32bit mode on a 64bit machine, and I need to put it...


SQL Server 2008 : SQL Server 2008 Administration

How to find out what databases have not being used for a year - Hello, I started working in a company where we have 6 production servers with a lot of databases on each...


Data Warehousing : Integration Services

SSIS package creation with txt file having multiple select statements - Hi, I have a TXT File with 20 Select statements. Requirement is Execute each Select statement and Email the output in CSV...


SQL Server 2005 : Business Intelligence

Import Excel binary files into SQL Db using SSIS - Hello, I have a several .xlsb (MS Excel binary) files with data that I need to import into a SQL...


SQL Server 7,2000 : Backups

Backup job fails with Error 3013 - I have a backup job that takes a full backup of my production database on a daily basis. It was running...


SQL Server 7,2000 : T-SQL

Wildcard parameter for multiple searches - I have put this here as although it is an SSRS report I am building I am starting with the...

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