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

Daily Coping Tip

Find joy in a simple thing today

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.

Growing Outside of the English World

The CEO of our company is English, and he likes to remind me (jokingly) that there was a long time when the sun never set on the English empire. I will jokingly remind him that one country has set foot on the moon.

One of the things that has changed me in the last decade is travel. I've been lucky enough to visit many countries around the world for work, and a few more for personal trips. In this time, I've often engaged with local people and tried to experience life a bit from their perspective, rather than be a tourist and just look at a thing or place as an outsider. I've often read a bit or researched an area to learn some history or get some context.

That's changed my view, and helped me understand how different the world can be. While I do find most people are similar around the world in many ways, cultures vary, and the emphasis placed on one thing vs. another can be much different.

I also see how the wealth and privilege in the US makes many things quite easy compared to other parts of the world.

This is something I am think about often as I try to restart SQL Saturday and think about events in different parts of the world. It's something I think about as I deal with customers in other countries as well, understanding that their database problems are the same, but the way they work and interact can vary.

Stepping outside my own US-centric view also helps me think about my past and how I may not have respected or treated others equally when their culture was very different from my own. Growing up involves learning more than you already know. In my mind, it also involves some empathy, appreciation, and respect for just how different the world can be for others. Something I am trying to do more and more often, especially with those outside the US/UK/ANZ world.

Steve Jones - SSC Editor

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

 
 Featured Contents
Stairway to SQL Server Virtulization

Stairway to SQL Server Virtualization Level 2 - The Ideal SQL Server Virtual Machine Architecture

David Klee from SQLServerCentral.com

In Level 2 of the Stairway to SQL Server Virtualization, we examine the ideal VM configuration from a standpoint of the various resources involved.

PowerShell editors and environments part 2

Additional Articles from SimpleTalk

In this article, Greg Moore demonstrates two additional PowerShell editors: Azure Data Studio Notebooks and Visual Studio Code.

From the SQL Server Central Blogs - What is Transparent Data Encryption?

Matthew McGiffen from Matthew McGiffen DBA

In this post we look at Transparent Data Encryption (TDE) in SQL Server. What it is - and how it works.

From the SQL Server Central Blogs - Moving Into Consulting 101 - Part 5 - The Tensions of a Consultancy

Will Assaf from SQL Tact

This is part five in a five part series this week, Moving into Consulting 101. 
In the business consulting system, the clients are served by two separate yet equally important groups....

 

 Question of the Day

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

 

A New Array of Zeros

I want to create a new numpy array that is 2x2, and initialized to zeros. How do I do this?
import numpy
a =

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)

LocalDB Install

I have a brand new laptop and I have only installed SQL Server 2019 Developer Edition. I want to work with localdb for a project. How do I install it?

Answer: It is an option if I get the Express for Visual Studio installers

Explanation: LocalDB is an version of the SQL Server Express edition. You can install it from the Express Edition installer or it will come with Visual Studio. Ref: SQL Server Express LocalDB - https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/sql-server-express-localdb?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 2016 - Administration
View using Cross Join and LIKE operator please suggest alternate syntax. - Hi, The below view is using cross join and as far as I know, Cross join is not good for performance. Can you please help me rewrite these views? Any suggestions are much appreciated on the below issues 1 & 2. FROM dbo.tbEmp er CROSS JOIN dbo.tbEmpType ect LEFT OUTER JOIN t ON t.Ece_ID = […]
Non clustered Index on #temp table - Hi, In order to avoid a SORT operation in my execution plan, I want to create a Non clustered Index on a Temp table. However I am getting the below error which makes sense since it is a temp table that is created on the fly, however, is there any other way? please advise. ERROR […]
how to properly uninstall SQL server 2008 ? - Hello , I will proceed to install SQL server 2016 after deleting SQL server 2008 properly I saw several programs that depend on SQL server all these propragrams must be uninstalled (Microsoft visual c++ 2008 redistrubutable , Microsoft SQL server CLR Type,SQL server Native client ...)  
SQL Server 2016 - Development and T-SQL
Rounding to 0 - How do I preserve the value (and not result to 0). In the below calculation, how do I preserve the value? I want atleast 0.01 to come out instead of 0. declare @q int declare @weight decimal(33,13) set @q = 6 set @weight = 0.0000000060240 select Sum(@q *COALESCE(NULLIF(COALESCE(@Weight, 0), 0), 0.01)) Result = 0.0000000  
How do I JOIN these records? - Hi, possible to give me a tip on how do I join these 2 tables? TABLE_A record must have the first nearest DateTime on TABLE_B Datetime record on B must be greater than or equal to A (top 1) Record on B can be matched with a record on A multiple times as long  as […]
SQL Server 2019 - Development
Convert teradata REGEXP_INSTR into SQL SERVER - Hi, I need some guidelines to convert Teradata REGEXP_INSTR logic into SQL server code. Please find the attached file in which I had provided a sample script. Appreciate your reply in advance. Thanks    
If Statement in Computed Column - Greetings, Thank You for taking the time to read and hopefully answer my question.  You will soon see how new I am to SQL Server. I am rebuilding in SQL Server a DB that I built in MS Access.  Several of the columns in one of the MS Access tables are calculated using IIF statements.  […]
What to expect on first day of PL SQL at new firm? - Hi All, Looking for answer on what do I expect to happen on very first day for PL SQL job role, given 5 years of experience in resume. Because it will be completely new firm for me, will I receive some time to learn their systems?     Thank you
The Future of Community
Forum Api Project: Setup #7 View Models - This script creates 2 procedures which return view models in JSON format.  The view models return the posts for a thread in either recent view (plain old normal view) or threaded view (similar to old Drupal with nesting expanded).  Both implement offset paging. set nocount off; /* determine if schema 'frm' already exits. If it […]
Forum Api Project: Setup #6 Example Posts (reply to Posts) - This script creates 7 posts in the 'frm.posts' table.  These are "indirect responses" to thread(s) or replies to (other) posts.  The variable declarations are repeated for each procedure execution (to step through 1 reply at a time).  For the purpose of creating example posts the reply p_id's are located by the post title which is […]
Forum Api Project: Setup #5 Example Posts (reply to Threads) - This script creates 5 posts in the 'frm.posts' table.  These are direct responses to threads. /* delete frm.posts; dbcc checkident ('frm.posts', reseed, 0) with no_infomsgs go */ set nocount on; set xact_abort on; begin transaction /*create proc frm.api_posts_post @t_id int, @u_id int, @title nvarchar(256), @body nvarchar(4000), @test_p_id bigint output, @test_msg varchar(2048) output*/ declare @t_id int=(select […]
Forum Api Project: Setup #4 Example Threads - This script creates 5 threads in the 'frm.threads' table. /* delete frm.threads; dbcc checkident ('frm.threads', reseed, 0) with no_infomsgs go */ set nocount on; set xact_abort on; begin transaction /*create proc frm.api_threads_post @f_id int, @u_id int, @title nvarchar(256), @body nvarchar(4000), @test_t_id int output, @test_msg varchar(2048) output*/ declare @f_id int=(select f_id from frm.forums where title='Title 4'), […]
Forum Api Project: Setup #3 Procedures - This script creates 3 stored procedures which create rows in the remaining 2 tables, 'frm.threads' and 'frm.posts' tables.  The proc to create new threads is a plain insert.  The proc to create new posts in response to threads is a plain insert.  As far as I can tell there's 1 key query in the whole […]
Forum Api Project: Setup #2 Seed Data - This script inserts seed data into 5 of the 7 tables created by setup1. 7 users were created: id email username 1 admin@abc123.com SysAdmin 2 stevej@abc123.com SteveJ 3 stevec@abc123.com Steve Collins 4 moderator1@abc123.com Jose SQL 5 moderator2@abc123.com Jane5687 6 member1@abc123.com AdamF 7 member2@abc123.com Bean When 8 claims were created: cl_id securitystamp claim hierarchy 1 74FEAEBE-B13D-4759-9B4F-F63636F48E3F […]
Forum Api Project: Setup #1 DDL - This script creates 7 tables.  The only requirement is there needs to be a schema available called 'frm'.  If one exists already the script fails.  If 'frm' is available for this purpose then the schema and tables are created.    
 

 

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

 

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