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

Daily Coping Tip

Choose to see your mistakes as steps to help you learn

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.

The Value of Seniority

There was a short but interesting post on the value of seniority. It's written from the perspective of someone that gets a new co-worker, but the co-worker is from the future. In fact, it's the future you. The post is actually titled senior engineers are living in the future.

We (hopefully) are more capable and impressive over time. I would hope most of us are learning more each day and our work reflects that. The code you write today should be better than what you wrote last month or last year. The choices you make, the bugs you solve, the experience you bring to work often does reflect your seniority. Not always, but often.

Sometimes the extra experience you bring is valuable because of the knowledge you gain over time. Most of us have probably known people that seem to be the go-to resources for answers to questions or to solve problems because of the things they've learned over time about the environment. This can be frustrating to newer employees, and I've certainly seen my son experience that, but it's one reason why staff who have worked there for more time are valuable.

There's a point in the post that notes you shouldn't compare yourself to more senior people. They can seem like they're from the future because they just know more. Junior people will get there, if they work at learning more.

That's a big point of focus that I try to emphasize to people that I work with, speak to, or read my editorials. Put effort into your career, learn more, both specific to technology and about the way your company works. Growing your skills, tech, soft, whatever, is a way that you can enhance your career and prove yourself to be more valuable.

It's a way to make people think you are from the future.

Steve Jones - SSC Editor

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

 
 Featured Contents
Stairway to AlwaysOn

Stairway to AlwaysOn Level 2: Storage 101

Perry Whittle from SQLServerCentral.com

In this new level of the stairway, we examine the storage knowledge you need for an AlwaysOn configuration.

External Article

Delivering Cloud Transformation Excellence: Collaboration, Communication and Governance - Part 6

Additional Articles from MSSQLTips.com

This article covers tips on establishing, enhancing, and empowering collaboration, communication, and governance on Cloud Transformation projects.

Technical Article

Transaction locking and row versioning guide

Additional Articles from SQLServerCentral

In any database, mismanagement of transactions often leads to contention and performance problems in systems that have many users. As the number of users that access the data increases, it becomes important to have applications that use transactions efficiently. This guide describes the locking and row versioning mechanisms the SQL Server Database Engine uses to ensure the physical integrity of each transaction and provides information on how applications can control transactions efficiently.

Blog Post

From the SQL Server Central Blogs - Running SQL Server in Windows Subsystem for Linux (WSL)

dbafromthecold@gmail.com from The DBA Who Came In From The Cold

I previously wrote a post on how to convert a SQL Server Docker image to a Windows Subsystem for Linux distribution. I did this because if you tried to...

Blog Post

From the SQL Server Central Blogs - Azure Managed Instance Changing DNS prefix

jsterrett from John Sterrett

Azure Managed Instances are provisioned by default with a yourname.uniqueid.databases.windows.net DNS fully qualified domain name (FQDN). Even on your private virtual network you will still have to use this...

 

 Question of the Day

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

 

Shutdown without NOWAIT

If I run a Shutdown in SQL Server and don't use NOWAIT, what things happen? (choose 2)

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)

Default Raiserror Levels

I am using RAISERROR in my code with various specific error levels that are in sys.messages. I'm lazy, however, and want to just use the default severity level for a message without having to look it up.

What can I do with RAISERROR in my code to use the default?

Answer: Use -1 for the severity level

Explanation: If you use -1, the default severity level for the error specified is used. Ref: Raiserror - https://docs.microsoft.com/en-us/sql/t-sql/language-elements/raiserror-transact-sql?view=sql-server-ver16

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
Shrink database issue - In my database, I have few temp tables that total up to 50GB in size. I already removed the data from the table. When I set the shrinkdatabase in my maintenance plan, it runs successfully but doesn't shrink the database. I tried dbcc shrinkfile(1,truncateonly) and got the same result. However, from sql management studio when […]
TCP Provider: A connection attempt failed for target server - Hi. In source SQL Instance target linked server has been created and connection tested succeeded. but while executing stored procedure execution failed as below errors. how to fix this issues? checked it is enabled at target instance allow remote connection. TCP Provider: A connection attempt failed because the connected party did not properly respond after […]
SQL Server 2016 - Development and T-SQL
How to copy XML converted data to file on local drive? - Hi everyone, So I have been working on converting my SQL tables data into XML files. I have designed a query that looks like this: --START OF TABLE List SELECT ( SELECT --(SELECT COALESCE (List_ID,'')) AS List_ID, (SELECT COALESCE (List_Type,'')) AS List_Type, --(SELECT COALESCE (List_Description,'')) AS List_Description, --(SELECT COALESCE (List_Provider,'')) AS List_Provider, --(SELECT COALESCE (Issuing_Body,'')) […]
How to calculate orders historically, during month - Good Morning There, CREATE TABLE Customers ( CID int NOT NULL PRIMARY KEY, GroupName varchar(255) NOT NULL, FirstName varchar(255), Age int, CustomerStatus SMALLINT, ---1 Means Active, 0 Inactive CustomerJoinDate Date ) CREATE TABLE Customers_Orders ( CID int NOT NULL PRIMARY KEY, Day_Date Date, ORDER_INDICATOR SMALLINT, --- 1 means made order 0 means no order Account_CashDeposit […]
Insert data into multiple tables after each batch of 100000 rows - Hello! I have a table with 2 million rows. I need to insert data into new table for each batch of 100000 rows.     Thanks in advance.  
SQL Server 2012 - T-SQL
table design for user "matching" - I am finding users that have liked each other. I have a user table and matched table: create table matched (match_id int identity not null primary key ,user_id char(1) ,interested_in_user_id char(1) ,interested_by_user_id char(1) ,mutual_yn char(1) ); insert into matched values('A','C',null,'N'), ('A','D',null,'N'), ('C','B',null,'N'), ('C','A',null,'N'); select * from matched;​   query results: When a record is inserted […]
SQL Server 2019 - Development
Migration of simple SPs from 120 to 150 COMPATIBILITY_LEVEL issue. - Migration of simple SPs from 120 to 150 COMPATIBILITY_LEVEL issue. Execution time for the first time run of any SP is close to 3 min. After the first execution, it takes ms to repeated execution. The execution plan is identical in 120 and 150. Recompile did not help. SPs are sitting on wait: PAGEIOLATCH_SH for […]
Referencing a SQLCMD variable in a Post Deployment script using SqlPackage - Ive got a Database project running in JetBrains Rider. The project publishes a DACPAC to create or update a target database. Now I have a set of reference data scripts which run (in Create mode) and these are reference through the Script.PostDeployment which looks like this: :r .\LoadDeviceConnectionType.sql :r .\LoadUser.sql :r .\LoadConversionType.sql :r .\LoadChannelType.sql :r […]
Calling stored procedure to bulk import from SSIS causes access denied - Hi, I'm working on building a data validation engine, which is supposed to check a number of items, such as existence of fields in CSV files before they are imported by SSIS. This is done with the bulk import command via a stored procedure. What I'm trying to do is the following [SSIS] Gather filenames […]
undocumented syntax? - I recently saw this syntax used in an example - SELECT INTO FROM (SELECT 'Literal') AS EX();      Now I have figured out what it accomplishes but I have yet to find any documentation for the EX() syntax.  Can anyone point me to it or is this an undocumented feature?
Missing weekend data to Zero - Hi All, I have a requirement that if there is no weekend data then i should mark the next row with zero. Here for 123 , A there is no sales received for week 4 and so we need to make it to zero. and the same for 123,B there is no sales for week […]
Save Query Results to Excel and Automatically run it - Hello,   I have a very simple query Select * from Employees where company = 'Company A' order by firstName   I want to run this query to run automatically on a daily basis and save the results in excel. Is their any way I can achieve this purpose? I tried using SQL server jobs […]
BlobColumn to String - I have this column in sql server that has value of "dog,cat,mouse" so I want to fetch this data into SSIS then transform it into an array using script so I can loop through it but I'm having an error when doing so. var columnfromDB = "1,2,3"; // Need population so that Split won't throw […]
SSRS 2014
Get Part number and display in Header - Hello, so I have a part number, and I want to display it in the header, however I do see it available as "FIRST" meaning it will only display the FIRST part, however this particular report, the user has a chance to select Multiple parts, so the report is grouped by parts to show the […]
General
How and where did you learn SQL from? - Could you give me advice on where I should learn SQL and Python to become high-skill engineer? Most tutorials and courses seem here to focus on the querying part of SQL. But I want to learn how to design, structure and create Data and databases.
 

 

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

 

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