Problems displaying this newsletter? View online.
SQL Server Central
Featured Contents
Question of the Day
The Voice of the DBA
 

Daily Coping Tip

Share photos of 3 things you find meaningful or memorable

I also have a thread at SQLServerCentral dealing with coping mechanisms and resources. Feel free to participate.

For many of you out there working in a new way, I'm including a thought of the day on how to cope in this challenging time from The Action for Happiness Coping Calendar. My items will be on my blog, feel free to share yours.

It's Not Yours

This editorial was originally published on Jan 17, 2018. It is being re-published as Steve is at Technorama.

For most of my career, I've felt a tie to the systems I've managed or the code I've written. I've often said that a part of the code was mine, because it was something I'd written. Having some ownership of your work has often meant more pride in ensuring things are well implemented. The same thing goes for administering databases. When an employee feels personally responsible and accountable for  the database and its contents, usually they do a better job.

Most of us know that the systems we manage and the data they contain aren't really "ours", no matter how we might refer to them in conversation. We know that ultimately the data, applications, and hardware belong to our employers. Or, we should know that.

Apparently not everyone does. A contractor just pleaded guilty to stealing classified information from the US National Security Agency, about 50GB worth of data. This isn't a case of spying or malicious intent. Instead, the report is that the employee was a hoarder, just keeping copies of data for some unknown reason. Hopefully that's true.

Many of us will have copies of data that we use for different purposes. We might be building software, or testing queries, or some other task that requires data. We might want to conduct more in depth analysis in our spare time. Those are all positive goals, but none of them mean that we should have copies of data without authorization. We don't own the data, and we should always be sure if we are moving data to other systems, that those systems are secure and someone else has approved the action.

This becomes more important all the time. We have enough issues with data security and keeping our information away from hackers. We make plenty of mistakes with configuration in authorized development and test systems. There's no reason to add to the issues by treating data as our own personal asset, no matter how good your intentions.

Steve Jones - SSC Editor

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

 
 Featured Contents
Stairway to Dynamic Data Masking

Permissions and Security in Dynamic Data Masking - Step 4 of the Stairway to Dynamic Data Masking

Steve Jones - SSC Editor from SQLServerCentral.com

Learn about the permissions associated with Dynamic Data Masking as well as some of the security implications of using this feature.

External Article

Sharing SQL Prompt Code Snippets and Styles via the Redgate Platform

Additional Articles from Redgate

SQL Prompt users can now share formatting style or code snippets in designated Team spaces on the Redgate Platform. Louis Davidson explains how it works.

External Article

Oracle optimizer removing or coalescing subqueries

Additional Articles from SimpleTalk

The Oracle optimizer often changes the query to get better performance. In this article, Jonathan Lewis explains two more optimizations involving subqueries.

Blog Post

From the SQL Server Central Blogs - Logic Apps and Source Control (with PowerShell)

Koen Verbeeck from Koen Verbeeck

At a data warehouse project I’m using a couple of Logic Apps to do some lightweight data movements. For example: reading a SharePoint list and dumping the contents into...

Blog Post

From the SQL Server Central Blogs - Visualizing SQL

Steve Jones - SSC Editor from The Voice of the DBA

While I think SQL is interesting, I know some people struggle with the way the language work. Someone at work posted a link to this site: https://animatesql.com/ I think...

 

 Question of the Day

Today's question (by Steve Jones - SSC Editor):

 

Creating AAD Users in Azure SQL Database

I want to create a user in an Azure SQL Database that will only authenticate in the database and not from the logical master database. This user is an AAD user in my Azure domain. What code is appropriate to create this user?

Think you know the answer? Click here, and find out if you are right.

 

 

 Yesterday's Question of the Day (by Steve Jones - SSC Editor)

Columnstore Index Limits in SQL Server 2019

How many columns can I include in a nonclustered columnstore index in SQL Server 2019?

Answer: 1024

Explanation: The limit for columns in a nonclustered columnstore index in SQL Server 2019 is 1024. Ref: CREATE COLUMNSTORE INDEX - https://docs.microsoft.com/en-us/sql/t-sql/statements/create-columnstore-index-transact-sql?view=sql-server-ver15

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 - Administration
AG backup preference behavior - Hi All, We have 3-node AG setup in our Production environment. Primary site (2 nodes), (DR site 1node). SQL Version is :Microsoft SQL Server 2017 (RTM-CU23) Enterprise Edition:(64-bit) We have 3 user databases as part of AG. We had some performance issues and decided to offload the backup load to secondary node of AG. For […]
Named instance connectivity - Hi We have a new named instance, I can able to connect using SSMS. However when I ping the instance name, it’s not working. It is enabled for mixed mode & enabled for the remote connections. TCP/IP port is enabled.  I added the 1434 udp port in the firewall. Also changed the dynamic port to […]
SQL Server 2017 - Development
How to validate user if input formate no yyyy-MM-dd for created date ? - I work on sql server 2017 i need to validate user input of temp table if formate of created date not YYYY-MM-DD then reject by update status field of temp table to be Notvalid and if formate of created date is YYYY-MM-DD then update status by Valid CREATE TABLE #TempPC ( [ID] INT IDENTITY , […]
Adding leading zeroes after the decimal - Hello, I have the following requirement to add leading zeros after the decimal from numeric string, please advice the same. Input -> OutPut 100 -> 100.0000 1.1 -> 1.0001 1.10 -> 1.0010 1.100 -> 1.0100 200.00 -> 200.0000
Administration - SQL Server 2014
StartDate & End Date parameters - Hi, I've created a view to populate data from existing tables In my report project I built using SSDT 2014, I created Dataset to read form this view. I also set a Startdate and Endate parameter with default calander values. The expectation is for the dates to filter the dates by above parameters. The Report […]
Development - SQL Server 2014
Pivot - Unpivot - Hi everybody, i have a table in SQl Server 2014 like the following: And i woul like to abtain an output like this: any help is appreciated. Thank you
Pivot Database Names - Hello, I have been trying and failing for days to create a query, or SSRS report, that makes a column for each database on the server, with each row representing a logon.  The values of the database named columns would be the database role that logon has in the database.  I have been trying with […]
SQL 2012 - General
SQL Server 2012 Standard Media/ISO - Does anyone have a copy of SQL Server 2012 Standard handy? I just need the ISO or DVD contents to install on a new server. I have the key already from the old server, but we don't have the media any longer. I checked online and can't seem to find a good place to download […]
SQL Server 2019 - Development
Using RTRIM, LTRIM with a LEFT Function. - Is there a particular order for using the LTRIM, RTRIM with a LEFT function? Example - I only want the Left 35 from a field and want to trim any unnecessary off it. Is this the correct Syntax - LEFT(RTRIM(LTRIM(Guar.First)),35) or should I use the TRIM's then the LEFT?
Newbie Question:If else Sql Question - In this case i am expecting the else statement to execute. please correct dECLARE @BusinessEntityId INT SET @BusinessEntityId=1003 IF @BusinessEntityId<=(SELECT MAX(BusinessEntityId) AS BusinessEntityId FROM Person.Person) BEGIN SELECT * FROM Person.Person WHERE BusinessEntityID<=@BusinessEntityId END ELSE IF @BusinessEntityId>=1000 AND @BusinessEntityId<2000 SELECT * FROM Person.Person WHERE BusinessEntityID>=@BusinessEntityId AND BusinessEntityID<=@BusinessEntityId
SQL Azure - Development
Troubleshooting a pipeline error - I am creating a pipeline in a data factory per this page's instructions, https://docs.microsoft.com/en-us/azure/data-factory/tutorial-incremental-copy-change-data-capture-feature-portal. I am a beginner with this and am trying to follow the instruction as closely as possible. The change, in my case, is that I am using a VM SQL installation, also in Azure, but not a managed instance. I have […]
Amazon AWS and other cloud vendors
Migrating Existing AWS Infrastructure into CM? - Have an old EC2 environment with dozens of Classic ELB's & AutoScale Groups/Launch Configs/CloudWatch Alarms/Policies/SecurityGroups etc, with different specifics etc. AWS is discontinuing Classic range in coming months I believe. So looking to transfer it all to App/Network ELB's. It'll be a combination of things be recreated eg. new ELB's and things being reused eg. […]
Migrating Existing AWS Infrastructure into CM? - Have an old EC2 environment with dozens of Classic ELB's & AutoScale Groups/Launch Configs/CloudWatch Alarms/Policies/SecurityGroups etc, with different specifics etc. AWS is discontinuing Classic range in coming months I believe. So looking to transfer it all to App/Network ELB's. It'll be a combination of things be recreated eg. new ELB's and things being reused eg. […]
Reporting Services
SSRS subscription reporting as "Pending" - I have a data-driven subscription which emails a report to 82 recipients, with the email addresses returned by the data-driven dataset. The SSRS logfile reports 82 successful email entries for this subscription but the subscription page shows the result as "Pending". Any ideas why the result isn't showing as successful or failed?
General
Is SQL Express enough? - I am assisting a company in upgrading their server. It is a small business with 9 computers. The mostly have a few shared documents and spreadsheet on the server, and the server hosts and MS SQL database for their accounting software. The accounting software has a maximum of 6 users at a time. The database […]
 

 

RSS FeedTwitter

This email has been sent to {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.
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
webmaster@sqlservercentral.com

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -