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

Chopping Off Data

This editorial was originally published on Oct 19, 2020. It is being republished as Steve is on vacation.

Do you know the difference between XLS and XLSX? They're both Excel formats, and many of us might just use one or the other. After all, the latest versions of Excel work with both, and if you've been using a spreadsheet for years, perhaps you stick with the older format when exchanging data with others.

As many of you might have seen, Public Health England recently learned there is a difference with large amounts of data. They found data was being chopped off in a spreadsheet because they were using the old XLS format, which only supports 65k rows. The newer XLSX format will support a million rows, but both numbers are far below what SQL Server, MySQL, PostgreSQL, and other platforms support. Those platforms support billions, and most are limited only by the storage available.

I know that pandemic has had many groups scrambling to assemble and analyze data. We have people building dashboards and gathering data together in numerous ways, from paper and pencil to Excel to (hopefully) enterprise databases. An import into a relational store would make more sense than Excel, but I also understand that setting a schema, dealing with ETL and different formats from different sources, and other issues are a pain. There is a reason data professionals get paid a lot of money for these tasks.

To me, this highlights one of the issues of working with SQL Server, MySQL, PostgreSQL, etc., in that they are cumbersome and difficult to get started with. Even if scientists chose Cassandra or MongoDB, there would be issues, because there aren't easy, simple client tools that facilitate work with data sets coming in disparate text files and formats.

I don't mean to excuse this, because IT professionals should know better. If you're using XLS, stop. Data volumes increase and you don't want to realize you've hit the limit after data is lost.

I get the ease and convenience of using Excel, but stop using it for major projects once we realize these are important. Once you realize this is data that needs to be intact, secured, and protected, put it in a real platform. Excel, PowerBI, and most tools can query SQL Server.

Use those tools where you need them and where you can, just don't use them as your database.

Steve Jones - SSC Editor

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

 
 Featured Contents
SQLServerCentral Article

T-SQL in SQL Server 2025: Fuzzy String Search II

Steve Jones - SSC Editor from SQLServerCentral

In the last article, we examined fuzzy string matching in SQL Server 2025 with a few new functions. We know comparing strings has always been hard when we don't have great data quality. If we need exact matches, SQL Server works great. However, we often expect users to enter values without typos and know what […]

External Article

Sending messages to Slack from SQL Server 2025

Additional Articles from MSSQLTips.com

In an earlier tip, A history of accessing REST APIs and web pages from SQL Server, I talked about reaching out to external endpoints from SQL Server, including the new sys.sp_invoke_external_rest_endpoint procedure that hit the on-premises editions in SQL Server 2025. This seemed like an ideal use case to enhance our current solution for sending a message to Slack: using xp_cmdshell to call a PowerShell script that calls Invoke-RestMethod. In this tip, I’ll describe how we changed our implementation and why it is a marked improvement for us.

From the SQL Server Central Blogs - SQL, MDX, DAX – the languages of data

DataOnWheels from DataOnWheels

Ramblings of a retired data architect Let me start by saying that I have been working with data for over thirty years. I think that just means I am...

Blog Post

From the SQL Server Central Blogs - Using Prompt AI to Help Setup Data Analysis

Steve Jones - SSC Editor from The Voice of the DBA

I used Claude to build an application that loaded data for me. However, there were a few others things I needed done to help me get the data ready...

Definitive Guide to DAX cover

The Definitive Guide to DAX: Business Intelligence for Microsoft Power BI, SQL Server Analysis Services, and Excel

Site Owners from SQLServerCentral

Now expanded and updated with modern best practices, this is the most complete guide to Microsoft’s DAX language for business intelligence, data modeling, and analytics. Expert Microsoft BI consultants Marco Russo and Alberto Ferrari help you master everything from table functions through advanced code and model optimization.

 

 Question of the Day

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

 

What is Page Density

In SQL Server, there is a concept of page density. This is determined by how much data is stored on each page. What is a page density of 90%?

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)

Adding and Dropping Columns I

I have this table in my SQL Server 2022 database:

CREATE TABLE [dbo].[CityList]
(
[CityNameID] [int] NOT NULL IDENTITY(1, 1),
[CityName] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO

I decide to add two new columns for the StateProvince and Country. What code should I use?

Answer: ALTER TABLE dbo.CityList ADD Country CHAR(3), stateprovince CHAR(2), ALTER TABLE dbo.CityList ADD Country CHAR(3); ALTER TABLE dbo.CityList add stateprovince CHAR(2)

Explanation: Adding columns can use a separate ALTER TABLE ADD statement for each column, but multiple columns can also be separated by commas. The GO separator is for batches, and doesn't separate two statements. On a single line, the semi column will separate two statements. Ref: ALTER TABLE - https://learn.microsoft.com/en-us/sql/t-sql/statements/alter-table-transact-sql?view=sql-server-ver17#add

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.


Analysis Services
Connecting Power BI to SSAS and effective user not working - Hi everyone, Below is a consolidated summary of what we validated Architecture & data path The on-premises data resides in SQL Server, accessed by Power BI Service via on-premises Analysis Services (SSAS Tabular). Effective flow: Power BI Service ? Power BI Gateway ? SSAS Tabular ? SQL Server The issue is not SQL connectivity, but authentication and […]
Relational Theory
Two foreign keys to the same table. Can't cascade deletes. - Not sure if this is really a relational theory question but it seems about the best sub forum for it.  Apologies if it's the wrong one. I have a Person table.  I also have a Relationships table.  The Relationship acts as a linking entity between two Persons.  E.g. John is the father of Ted. I've […]
Anything that is NOT about SQL!
Fantasy Football 2026 - The thread for the league in 2026. Players from last year have priority.
Editorials
JSON Has a Cost - Comments posted to this topic are about the item JSON Has a Cost, which is is not currently available on the site.
An SSIS Upgrade - Comments posted to this topic are about the item An SSIS Upgrade
Where Your Value Separates You from Others - Comments posted to this topic are about the item Where Your Value Separates You from Others
The Future of Community
Azure SQL DBA certification - Hello team Can anyone share popular azure SQL DBA certification exam code? and your recommendation in this regard?
Article Discussions by Author
Which Result II - Comments posted to this topic are about the item Which Result II
Faster Data Engineering with Python Notebooks: The Fabric Modern Data Platform - Comments posted to this topic are about the item Faster Data Engineering with Python Notebooks: The Fabric Modern Data Platform
Semantic Search in SQL Server 2025 - Comments posted to this topic are about the item Semantic Search in SQL Server 2025
Encoding URLs - Comments posted to this topic are about the item Encoding URLs
Fixing the Error - Comments posted to this topic are about the item Fixing the Error
T-SQL in SQL Server 2025: Encoding Functions - Comments posted to this topic are about the item T-SQL in SQL Server 2025: Encoding Functions
SQL Server 2022 - Administration
High Availability setup - has anyone seen this method? - Hi all, I recently moved to a new employer who have their HA setup in a way I've never seen and I'd just like to get opinions on it; I'm not saying it's right or wrong, just different (but it does appear to have caused issues). The way that I'm used to is that two […]
Certificates expired - Can't restore after creating new certificate - The previous DBA created a certificate which expired 12/31/2025. I came in hoping to have an easy day for New Year's Eve and found all of the backups were failing.  After doing the research, I found the certificate had expired. 1.  I created a new certificate since I couldn't update the expiry date. 2.  I […]
 

 

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

 

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