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

The Return to the Office Debate

At the end of last year I ran into a friend I hadn't seen in a long time. We were chatting and they mentioned that they were looking for a new job. They had been laid off and needed something. This is someone with a lot of experience and skill, so I wasn't worried. At the time, they mentioned they had gotten an introduction and interest from Amazon, but they weren't interested in the offer because of the return-to-the-office (RTO) mandate that Amazon was implementing.

I was recently chatting with another friend at a different company. This person manages a team, and was looking to hire another data engineer, but was told they could only hire in a certain city (City A)  in the US. In this case, it was the city with their main office. They have offices in a few cities, and a large one in City B, but the organization has been thinking of their own RTO plans and has limited hiring. My friend is now wondering if they need to consider moving to City A (not likely) or find a new job. They don't want to go to the office every day in City B.

Over the last five years we went through a pandemic where many people moved to remote work. As we've come out of that ordeal, lots of organizations have questioned how to structure their workforce moving forward. Some want to have their staff in the office, some want to remain remote, and there are lots of reasons behind each approach. Within many companies there are wide ranging opinions and desires, from both management and workers.

Tech professionals certainly can work remotely. They can also see benefits from being in the same office. The efficiency of their work habits can vary depending on the day and situation, so it's not easy to decide how remote or how in-person someone should be, even week to week. I enjoy my commute down the stairs each day, but I also find the office invigorating. I like going to the office, and I think I'd go every day if my job required it. I'd get less done for the company each week, but I'd do it.

How do you feel about remote work vs in office work vs hybrid? Do you have mandates? Would you look for another job? These are questions I see many people asking themselves these days as executives start to make new rules about their workforce.

Steve Jones - SSC Editor

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

 
  Featured Contents
Stairway to Columnstore Indexes

Stairway to ColumnStore Indexes Level 7: Optimizing Nonclustered Columnstore Indexes

Hugo Kornelis from SQLServerCentral.com

In this level, we will focus on optimization techniques to apply while building the nonclustered columnstore index, which is available in all versions of SQL Server from 2012 up.

External Article

Using the CASE expression instead of dynamic SQL in SQL Server

Additional Articles from MSSQLTips.com

I have a lot of SQL update queries where I need to make IF/ELSE types of decisions. In some cases, I am using a cursor but looping through thousands of rows for update takes a long time. I also use some dynamic SQL to handle some query parameter decision making. Is there a better alternative?

Blog Post

From the SQL Server Central Blogs - Announcements from the Microsoft Fabric Community Conference

James Serra from James Serra's Blog

A ton of new features for Microsoft Fabric were announced at the Microsoft Fabric Community Conference recently. Here are all the new features that I found most interesting, with some...

Blog Post

From the SQL Server Central Blogs - T-SQL Tuesday #185: Video

Diligentdba 46159 from Mala's Data Blog

This month’s invite is from Erik Darling, who invites you to make a video on any topic of your choice. I liked his reasoning for this and appreciate his...

Practical Graph Structures in SQL Server and Azure SQL: Enabling Deeper Insights Using Highly Connected Data

Site Owners from SQLServerCentral

Use the graph table features in Azure SQL that were introduced in SQL Server 2017 and further refined in SQL Server 2019. This book shows you how to create data structures to capture complex connections between items in your data. These connections will help you analyze and draw insights from connections in your data that go beyond classic relationships.

 

  Question of the Day

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

 

Getting the TEXTSIZE

How can I check what value I used for TEXTSIZE? I ran this code:
SET TEXTSIZE 8096
But then deleted the code and couldn't remember. Is there a way to check this?

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)

Database Files on Shares I

I want to store database files on a file share for a SQL Server 2017 instance. Can I use \\fileserver\D$ as a location?

Answer: No, administrative shares cannot be used

Explanation: You can store database files on an SMB file share, but not with administrative shares. Ref: SMB File Share - https://learn.microsoft.com/en-us/sql/database-engine/install-windows/install-sql-server-with-smb-fileshare-as-a-storage-option?view=sql-server-ver16#installation-considerations

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
Changing Machine Type - Hi, presently my azure server running under Standard_D64ds_v4 .i am planning to upgrade the server . can you please help me what is next configuration .
SQL Server 2016 - Development and T-SQL
Need help accessing and loading a temp table - I'm trying to dynamically create a temp table, basing the column names on another table.  It appears to be working (???) but I can't select or insert any data into the table that was just built? Here is a test of what I'm trying to do. IF OBJECT_ID('tempdb..#source_table', 'U') IS NOT NULL DROP TABLE #source_table; […]
How to get result from deleted row - Hi Guys I have a store proc that delete a row from a and I would like to get the result of the deleted row whether be =1 or True in order to execute another store proc. Could this be possible? ---- I am aware this code won't work I am trying to explain what […]
Joining against min date only - This is one of those things very hard (for me)to explain in words. See image below, the requirement is assign all of the sales with Reqdate prior to the "Best Before Date"  but ONLY the earliest "Best Before Date." I am trying to do this only with T-SQL.  My full scenario is of course more […]
Union where it matches against only one shared column - Hi folks I have two tables, both with a NAME, START and END fields I'd like to list all of the rows from Table A, and then only the rows from Table B where only the START does not exist in Table A.  The NAMES in Table B will ALWAYS be different from those in […]
SQL Server 2019 - Administration
Running DML on a Primary AG Instance - Kind of a DML question - but specific to an AG instance running on SQL Server 2019 - so starting here. We have 3 AGs and 3 SQL Server 2019 Instances. I cannot so easily remember the AG listener names so I often use the Primary Instance name instead - thinking that other than in […]
SQL Server 2019 - Development
Replace calculation in cursor with set based logic - Hello and thanks if you can help. The calculation in the cursor is correct. Alas my attempt at doing the calculation in a select statement is not.  SQL Server 2019 DROP TABLE IF EXISTS #Test CREATE TABLE #Test (PricingDate DATE NOT NULL,Price DECIMAL (5,2) NOT NULL,Factor DECIMAL (9,7) NULL) INSERT INTO #Test VALUES ('2025-04-01',11.94,NULL) INSERT […]
t-SQL help.. - I have the following...anyone can point me the right direction to rewrite this code?       IF Object_id('tempdb..#TMP1') IS NOT NULL DROP TABLE #TMP1 IF Object_id('tempdb..#TMP2') IS NOT NULL DROP TABLE #TMP2 SELECT * INTO #TMP1 FROM ( SELECT 1251470 XID,       1569175 TRX,       59164   CID UNION ALL SELECT 1251470,    […]
what etl tool are folks moving toward? - Hi as we replace on prem machines , sometimes not with vm's, what should we be thinking about for etl? from my little corner of the world where we use both talend and ssis, and where talend is getting costly, and where ssis is slowly being squeezed into a call from data factory to an […]
General
Count of Distinct Values - Hi If value is 21000030 it should return 4 not 5 . In first record 21000030 exists 2 times 21000032 then it should return 3 not 4. USE [Live] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[OCRD]( [CardCode] [nvarchar](15) NOT NULL, [Emp_1] [nvarchar](10) NULL, [Emp_2] [nvarchar](10) NULL, […]
SQL Server 2022 - Administration
Snapshot Replication: Pre-application script to check prerequisites - Is it possible to write a script that checks a subscriber's environment for prerequisites and prevents the application of the snapshot if those prerequisites are not met? I'm familiar with adding the (pre/post) scripts to the Publication, but not how I can force the job to fail before the snapshot gets applied.
install sql express - I yesterday dowload a sqlexpress and intalled on one of a testing database for one of my test applications. After Install I found i n sql server configuration manager there are two intances installed, one is called sqlexpress, one is called MSSQLServer. Both of them are sqlexpress Edition, I cannot remember how comes it installed […]
Sever Migration - Hi, one of my server configured with Standard_D64ds_v4 what is next level of version is it Standard_D98ds_v4 or Standard_D128ds_v4
SQL Server 2022 - Development
SSIS XML Source Columns Don't Match XML/XSD - In my SSIS package I have a Data Flow with a XML Source with the below XSD. The problem I have is when I try to do a Data Conversion and subsequently an OLE DB Destination, the columns available for PortfolioExport__PortfolioData__OfficeParks__OfficePark__Properties are Properties_Id and OfficePark_Id. What I need are the OfficePark.Id and the Properties.SourceId. I […]
Get days between 2 dates excluding weekends. - Hello all. Trying to measure the time in days between to dates excluding weekends. Currently I have this but  I am nit sure how to use the generate_series command in this code so there are errors. Select fsono, fcompany, forderdate, confirmdate, confirmed--, (select Count(*) as daysopen from generate_series(a.confirmdate, a.forderdate -interval '1 day' interval '1 day') […]
 

 

RSS FeedTwitter

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

 

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