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

Daily Coping Tip

Try something new to get out of your comfort zone

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.

Cutting Edge Technology

While talking with a friend recently, they were excited about some of the new services available from cloud vendors. These PaaS (Platform as a Service) or SaaS (Software as a Service) items can be very useful and exciting in for developers. The APIs often are easy to consume and use when building an application.

While talking about cloud technology, I noted that the IaaS (Infrastructure as a Service) options at many providers have been very powerful and popular. Many of my customers have been taking advantage of these, more than I would have suspected a few years ago.

I was surprised that my friend thought that IaaS, which are often just VMs, was an "old" technology. I think the concept is old (though so are PaaS and SaaS), but the options have grown and there is a lot of power in using an IaaS platform. I do think that many developers might find this boring or less exciting than other options, but I do think that many times developers get caught up what technologies are exciting and newer to others in the same industry.

That got me to thinking. What technologies do I think are cutting edge? I'm not often someone that looks to bleed with new options, but I do find them interesting. For me, I think these are often the ML/AI options from vendors, as well as the IoT/Edge options that are being offered to offload and distribute computing power. I might include Blockchain as something that is too new for me, but has possibilities i the database space. I think F# is still cutting edge to me as well.

We don't use any of these at my job, but we might at some point. I wonder today, what is cutting edge to you, and what might be in use by your organization?

Steve Jones - SSC Editor

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

 
 Featured Contents

Your SQL Servers Are Misconfigured...

Kevin3NF from SQLServerCentral.com

It's probably not your fault, but relying on the defaults of a SQL Server installation might be impacting the performance of your instance.

SQL Update Statement with Join in SQL Server vs Oracle vs PostgreSQL

Additional Articles from MSSQLTips.com

In this article we look at the different SQL syntax you need to use when updating data when joining tables for SQL Server, Oracle and PostgreSQL.

The Future of Database DevOps

Additional Articles from Redgate

Join Pramod Sadalage, Director at Thoughtworks, and a stellar line up of speakers for Redgate Summit: The Future of Database DevOps on February 17 & 18. You’ll discover the latest trends in DevOps, brand new insights from the 2021 State of Database DevOps report, an introduction and technical demos of Redgate’s solutions for Database DevOps, and more.

From the SQL Server Central Blogs - [Coping] Hidden Wounds

K. Brian Kelley from Databases – Infrastructure – Security

Through high school and college, I carried deep wounds due to what was going on at home. Only a handful of people outside of my family knew what what...

From the SQL Server Central Blogs - Getting a New Remote Git Branch–#SQLNewBlogger

Steve Jones - SSC Editor from The Voice of the DBA

I was notified of a new PR at DataSaturdays, and I went to look at the changes. In this case, a lot of styling items in the code, which...

 

 Question of the Day

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

 

Pushing an Amend

I committed a change and then pushed the branch (featureSales23). However, I then found a problem in my message. I amended the commit message, but how do I get this up to the remote repository (origin)?

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)

String Shrinking

I have a lot of data in my column that contains spaces. I decide to update the column like this:

UPDATE dbo.strings SET stringval= TRIM(stringval)

When I look at the data values, what do I see?

Answer: No spaces at the beginning or end of strings, but spaces inside

Explanation: TRIM() removes leading and trailing spaces. Ref: TRIM - https://docs.microsoft.com/en-us/sql/t-sql/functions/trim-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
Grant user access to view database only - Hi I need to grant a user access to a DB on the server with read only access to view all tables and views the user is a domain user so I set them up in logins and gave them data reader only to the db what else do I need to do as when […]
Snapshot Folder is not deleting automatically in Transactional Replication. - Hi Team, I created transnational replication to replicate the data from one server to other server.I am daily generating snapshot for some of the tables on snapshot folder.But old folders are not getting deleted from snapshot folder.. any thought?
SQL Server 2017 - Development
Lookup and insert into column without dynamic SQL? - Hi all, 99% sure the answer to this question is "it is not possible", but figured I'd check anyway. Suppose I have the following schema: CREATE TABLE #FieldValues ( ID INT IDENTITY PRIMARY KEY, Field1 VARCHAR(500), Field2 VARCHAR(500), Field3 VARCHAR(500) ) CREATE TABLE #FieldDefinitions ( ID INT IDENTITY PRIMARY KEY, DefinitionName VARCHAR(50), FieldName VARCHAR(50) ) […]
SQL Server 2016 - Development and T-SQL
Looking for tips on Optimizing - I am probably going about this the wrong way, but my current solution is by using dynamic SQL and a loop. Table creation: DECLARE @dataTable TABLE (Item VARCHAR(255), Quantity INT, WeekStart DATE) DECLARE @headerTable TABLE (Item CHAR(4), Date1 VARCHAR(25), Date2 VARCHAR(25), Date3 VARCHAR(25)) HeaderTable actually has columns Date1 through Date52.  I excluded those for sake […]
Find unmatched between 2 tables using field as selection criteria - I have the following tables as a example. Table 1 EmpID, LastName, FirstName 1,Smith,John 2,Jones,Bob 3,Citizen,Jane Table 2 EmpID,ReqID,ReqDesc 1,1,Car 1,2,Diploma 1,3,Phone 2,1,Car 2,3,Phone 3,1,Car 3,2,Diploma 3,3,Phone I want to return all records from Table 1 that don't have an entry in Table 2 that don't have a Diploma for example so ReqID = 2 […]
Administration - SQL Server 2014
Do I need to install two patches for 2014 individually? - We are on version SP3/CU4 for SQL Server 2014.  Since CU4, there have been two security patches released, one on 2/11/20 and the other recently on 1/12/21. If I install the latest 1/12/21 security patch, will it "include" the patch for 2/11/20, or do I need to install both of them (in sequence)?
Development - SQL Server 2014
Need to strip off the beginning of a field in SELECT statement - I have this table that unfortunately has spaces in the field, which I am trimming using LTRIM(RTRIM(Field)) on. In addition, sometimes the field has "1101" at the beginning of the Field. Is there a way to remove it if it's there? Current SELECT statement: SELECT LTRIM(RTRIM(Field)) FROM myTable Example field values: 1101BRZ INSP etc.
Save results from Stored procedure to a CSV file. - I have a SqlAgentJob calling a stored proc. that loops through a list of locations and passes the location value and other parameters to a stored procedure.  I would like to save each of the results to a CSV on the server. Because i have 50+ locations my current method of a separate sqlAgenjob using […]
Execute As not reading system view - I have a stored procedure with the following: SELECT physical_name FROM sys.master_files Where physical_name like '%' + DB_NAME() + '.%' When the procedure is compiled normally, this runs fine, but when it is compiled With Execute As 'Paleo-Server\SQLServerZaloha', this select statement returns a null. I ran this statement I found on the web: grant view […]
SQL 2012 - General
Aliasing an instance name for remote connections - It's been a long time since I set up a 2012 server. We have an emergency where we have to set up a new one but can't upgrade for a few months, so we're doing another 2012 and I'm having issues with the SSMS connection string. Most of our servers we can connect remotely to […]
Do I need to install two patches for 2012 individually? - We are on version SP4 for SQL Server 2012. Since SP4, there have been two security patches released, one on 2/11/20 and the other recently on 1/12/21. If I install the latest 1/12/21 security patch, will it "include" the patch for 2/11/20, or do I need to install both of them (in sequence)?
SQL Server 2012 - T-SQL
Summary query for number of attendees out of all - hi all i'm trying to write a query to summarize attendance counts per department i've two tables one for event log (login/logout) transactions and the other for users details i need to show the result as dept.      attend users      all users dept1             5        […]
SQL Server 2019 - Administration
MYSQL ERROR - need desperate help - Hi, Im having a problem with new players selecting a player class. Keep getting this error. Message: Error Executing Database Query. URL: /ClassSelect.cfm? Location: C:\websites\myConvicts\www\ClassSelect.cfm Line #: 36 SQL: INSERT INTO DR_Player_Upgrade (PlayerID, UpgradeID, PurchaseDate) VALUES (2930848,27,CURRENT_TIMESTAMP) [Macromedia][SQLServer JDBC Driver][SQLServer]Violation of PRIMARY KEY constraint 'PK_DR_Player_Upgrade'. Cannot insert duplicate key in object 'dbo.DR_Player_Upgrade'. The duplicate key […]
Reporting Services
Search Report definitions - I know that there is a query you can run in SQL to search the SQL text procedures & objects for a specific string. Is there a way to search the report definitions of all reports for a specific string (values, table references, etc.)?
Analysis Services
DAX how to rewrite this FILTER to CALCULATETABLE? - Ahoi,   i have been starting to look into DAX and there is something i could not find an answer to somehow. I am very new to DAX so im trying to understand the basics and have come across something bothers me. How do i rewrite the following Query using CALCULATETABLE instead of FILTER?   […]
 

 

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

 

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