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

Daily Coping Tip

Appreciate your hands and all the things they enable

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.

Expanded Support for Non-Windows SQL Server

When I started working with computer in college, we used various mainframe and mini technologies. As I went through my coursework, I learned in various environments, but at some point we started to us SunOS, a Unix variant from Sun Microsystems. Over the years, I worked with different variants, but a friend actually got me interested in the BSD Oses, primarily FreeBSD. Before Windows, there was a time I installed this on a few PCs and even a couple laptops. When SQL Server on Linux became a reality, I was somewhat excited that this would open up SQL Server to all platforms, but this was only Linux, not other OSes.

I'm glad to see that SQL Server is going to support Unix in the future, with an on-premises install, as well as in BSD containers. While those platforms are less used than Linux, there are a lot of companies that still run various Unix variants, and providing support for them allows them to take advantage of the incredible SQL Server platform, while also reducing the licensing costs associated with Oracle and Db2.

The longer I am in my career, the more I find that SQL Server is a better platform for most data operations than the other major RDBMSes. I also find that April 1 jokes become harder to come up with, mostly because Microsoft keeps building things I'd make big jokes about. ICYMI, this is a joke, though I am impressed with the directions the platform has taken and the additional features added.

This isn't to say that I wouldn't like to see existing items enhanced and improved, or that I think they shouldn't press into new areas. I don't think Unix is used that much anymore. There are legacy systems, but most of the measurement from clients, from web servers, shows that Unix is just a tiny fraction of the market. Likely not worth porting SQL Server over and maintaining it. At least, I don't think it's worth it. Maybe this joke will come true at some point in the future.

Steve Jones - SSC Editor

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

 
 Featured Contents

Power BI Reports in SSMS

Steve Jones - SSC Editor from SQLServerCentral

Get more interactive reports in SSMS.

Using Flyway Output in PowerShell

Additional Articles from Redgate

How to send Flyway logging and error output to JSON and consume it in PowerShell to produce ad-hoc database migrations reports, including any errors that occurred, the version of the database, runtimes for each migration script and more.

Considerations for Running SQL Server on Kubernetes

Additional Articles from MSSQLTips.com

In this article we discuss deploying SQL Server containers / images using Azure Kubernetes Cluster.

From the SQL Server Central Blogs - Easy SSIS Package Compare

Steve Jones - SSC Editor from The Voice of the DBA

I’ve been asking for a way to compare SSIS packages for a long time, and finally Redgate has released an early access version. Years ago we had an internal version, but the visual comparison format was a problem. Really, we couldn’t decide how to actually compare packages on screen in a way that makes sense for users.

From the SQL Server Central Blogs - Power BI Monthly Digest – March 2021

Devin Knight from Devin Knight

In this month’s Power BI Digest Matt and I will again guide you through some of the latest and greatest Power BI updates this month.

 

 Question of the Day

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

 

Fun Quotes

What movie is this quote from: "You have been recruited by the Star League to defend the frontier against Xur and the Ko-Dan armada. "?

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)

More Which in R

I have this code:

> newletters<- c("q","w", "e", "r", "t", "y", "u", "i", "o", "p", "q", "w", "e" )
> which (new_letters=="q")

What is returned from this?

Answer: 1 and 11

Explanation: The which function returns the places where the values match. In this case, both positions 1 and 11 contain a "q", so they are returned: Ref: which() - https://stat.ethz.ch/R-manual/R-devel/library/base/html/which.html

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 - Development
Simple GROUP BY Query - Hello: I have this query.  I am trying to understand why I have to GROUP by all of the fields in my SELECT Statement.  Also, the query is returning the sum for all of the jmoJobID fields, when I want this to be summed by the jmaPartID field. SELECT DISTINCT JobOperations.jmoJobID, JobAssemblies.jmaPartID, JobOperations.jmoWorkCenterID, JobOperations.jmoProcessID, JobOperations.jmoOperationQuantity, […]
SQL Server 2016 - Administration
AG Question - is it possible to make secondary database to read/write in secondary replica in always on .
Development - SQL Server 2014
Problem when copying from a table into another table - Hi All.I have a wired situation here. I have 2 tables: table 1 with let say 5 records on it and an empty table2 (same schema), Trying to copy records from table1 into table2. When my script says(i am trying to make my script simple) with x as (select * from table1 ) insert into […]
Count Null Records with Group BY - I've searched and tried many variations, but must be missing something simple. If there are no records, I'm trying to get RecordCount to display zero '0'. I don't get errors, just no results. What am I missing?   Thanks! SELECT IsNull(Count(InvNo),0) AS RecordCount, BatchID FROM BatchOrders GROUP BY BatchID
group parts by row count - hello I have a table similar to this: Create table parts ( partid int not null serial varchar(50) not null )   insert into parts(partid, serial) values(1,'31511') values(1,'961511') values(1,'61511') values(1,'77421') values(1,'74522') values(1,'329484') values(1,'1934891') values(1,'19348924')   so what they want is to have it grouped by for ever 5, give it a group ID, and have […]
SQL 2012 - General
Query Issues - pageiolatch_sh wait high clustered index insert cost - Hi Accidental DBA here We have an application that runs a select * on a table upon starting the application. There are 2.4 million rows in the table. Today it was reporting a pageiolatch_sh wait and took 50 minutes to complete. During this time the application cannot be used until the query completes. Looking at […]
Change Owner on AG Endpoints - A long-serving DBA is leaving us soon, and his account is the owner of various bits and pieces within one of our AGs. Not ideal, but one of those things from when the company originally set the system up, many years ago,  and has never been addressed. We're quite happy with the code that we […]
SQL Server 2019 - Administration
There and back again: From a partition number to a filegroup and vice versa -   I've been trying to navigate the DMVs concerning partitions and filegroups and find my way between them. I might have a partition number and want the filegroup name(s) (and ultimately the files in the group). Or, I might have a filegroup or filename and want the partition(s) that it holds. Here's my test case: USE master; DROP DATABASE IF EXISTS TestParts; CREATE DATABASE TestParts ALTER DATABASE TestParts ADD FILEGROUP FG1 ALTER DATABASE TestParts ADD FILEGROUP FG2 ALTER DATABASE TestParts ADD FILEGROUP FG3 ALTER DATABASE TestParts ADD FILE (NAME=File1, FILENAME = 'C:\temp\File1.ndf', SIZE = 1MB) TO FILEGROUP FG1 ALTER DATABASE TestParts ADD FILE (NAME=File2, FILENAME = 'C:\temp\File2.ndf', SIZE = 1MB) TO FILEGROUP FG2 ALTER DATABASE TestParts ADD FILE (NAME=File3, FILENAME = 'C:\temp\File3.ndf', SIZE = 1MB) TO FILEGROUP FG3 Now, create a partitioned table: USE TestParts […]
SQL Server DWH on local Storage Spaces - Hi there, I am setting up a SQL Server 2019 EE with WS2019 with local storages spaces. I have tried out different layouts for the storage e.g. Storage Spaces - Virtual Disk with 2way mirror, Storage Spaces - Virtual Disk with 3way mirror. with my DWH tests on my specific hardware the version Storage Spaces […]
Patching SQL Servers - Hi all. Just curious about SQL patching and SQL updates. Who does the patching in your environment? Networking teams or DBAs? What are the pros and cons of either.  Thanks! Anita
SQL Server 2019 - Development
Loan Amortization Schedule for SQL Server - So, long story short... A conversation about loops, cursors and in-line functions ended up with me proclaiming that I could could do a full payment level, loan amortization schedule using only set based t-sql (famous last words). My attempt to cheat by finding something pre-rolled on Google fell flat and was forced to actually do […]
Subquery returned more than 1 value. This is not permitted ! - Hello, I run the following query: SELECT RIS_OPT_SERV.CTC_DEPOT ,CONVERT(CHAR(4), B.DATE_DEPOT, 120) + '-' + CONVERT(CHAR(2), B.DATE_DEPOT, 101) DATE_DEPOT ,RIS_OPT_SERV.NO_CONTRAT_DEPOSANT ,RIS_OPT_SERV.NOM_DEPOSANT ,RIS_OPT_SERV.NO_CLIENT_DEPOSANT ,RIS_OPT_SERV.NUMERO_REF ,RIS_OPT_SERV.LB_PRODUIT_LONG ,RIS_OPT_SERV.LIB_OPTION_AFF ,RIS_OPT_SERV.NO_BORDEREAU ,RIS_OPT_SERV.LIB_SERVICE ,B.PRODUIT ,B.MECA ,B.PRESENTATION ,B.TRANCHE ,B.NB_PLIS ,B.POIDS ,B.TARIF FROM (SELECT RIS.NO_CONTRAT_DEPOSANT ,RIS.NOM_DEPOSANT ,RIS.NO_CLIENT_DEPOSANT ,RIS.CTC_DEPOT ,RIS.NUMERO_REF ,RIS.NO_BORDEREAU ,RP.LB_PRODUIT_LONG ,(SELECT RS.LIB_SERVICE FROM RESSOURCE_SERVICE RS WHERE RS.CLE_REF = RIS.CLE_REF AND RS.CODE_SERVICE in (SELECT […]
SQL Server 2008 Performance Tuning
Same queries different client with different performance - I have 20 same client programs each installed in windows xp. Each client issues a specific query to sql server 2008 R2 in a database with compatibility level 80 (Sql Server 2000). The clients use ODBC. The performance suddenly dropped too much. except for one machine. and now I'm wondering why. I attach 2 trace […]
Same queries different client - I have a Siebel CRM with Sql Server back-end database (Sql server 2008 R2 but the database has compatibility Level 80 (Windows 2000)). Each Siebel client is Windows XP with a front-end installation. The client pc has access to the back-end database through ODBC (Sql Server 2000). All of the clients suddenly slow down a […]
Reporting Services 2005 Administration
How can we let SQL Server 2005 X86 recognize and use RAM greater than 4GB - I have a windwos server 2003 R2(64bit) installed SQL Server 2005 X86 Standard Edition . I have enabled AWE(as screenshot), and restarted windows server, but when I ran SQL Server (even if I ran the complicated computation). system can't use the RAM greater than 4GB.  because as some reason we can't upgrade SQL server from […]
 

 

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

 

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