r/SQLServer • • Jun 28 '16

Remember kids...

28 Upvotes

quicksand tie wipe jeans air historical like society merciful nose

This post was mass deleted and anonymized with Redact


r/SQLServer • • Nov 12 '15

"I don't use keys because they slow down the tables and tend to knock things over."

28 Upvotes

I'm doing some knowledge training for an app that I'm taking over because we're getting rid of our contractor. This guy gets paid ~200K AUD a year and just told me this while we were doing knowledge training.

He was showing me the database and I noticed he had no keys on any tables. And in one table where he did have keys, he didn't use them. He does string compares everywhere.

I'm speechless.


r/SQLServer • • Feb 13 '26

Question SQL Server 2025 issue with higher number of databases

27 Upvotes

Hello,
How many databases are you running on new SQL Server 2025?

We are running many projects and small internal services and we use separate MSSQL database for each one. Currently we have several servers running SQL Server 2022 Express each with around 3,000 databases. Everything runs smoothly without any issues.

Databases are relatively small, most are between 10-100 MB and some are up to 1GB. Performance is good, and we have not experienced any problems.

However when we tried same setup on SQL Server 2025 Express we encountered serious issues. Once we exceed approximately 600 databases, server starts freezing and becomes very slow. Listing databases in SSMS is extremely slow. After restarting we cannot re-connect to SQL Server instance long time and sometimes MSSQL service becomes unresponsive or fails to start properly. No explanatory error in ERRORLOG.

We thought this might be new limitation in Express edition. However we tested SQL Server 2025 Standard as well and observed same behavior. We also installed latest Cumulative Update but issue persists.

When we reduce number of databases to below 500, server becomes stable again and runs without issues.

I also tried tuning various SQL Server settings but this did not resolve this strange problem.

Is anyone successfully running higher number of databases on SQL Server 2025 Express?

UPDATE:
Definitely BUG in SQL Server 2025 when creating more than 650 databases.
Same behavior was observed and tested on Express / Standard / Enterprise editions:
https://www.reddit.com/r/SQLServer/comments/1r4018z/comment/o5agaak/


r/SQLServer • • Nov 25 '25

Discussion Ever since upgrading the database to SQL Server 2025, queries have been running noticeably slower.

27 Upvotes

After upgrading my SQL Server from versions 2014 and 2022 to 2025, I noticed a significant slowdown in query performance. This only happens when using SQL Server Authentication, but if I add Trusted_Connection=True, the queries run at normal speed; without it, they become very slow.


r/SQLServer • • Sep 05 '25

Community Share Microsoft listened. GitHub Copikot is coming to SSMS!

27 Upvotes

The most recent comment here has an article explaining why it’s coming. This is exciting news and encouraging that Microsoft is listening and taking action based on customer feedback.

https://developercommunity.visualstudio.com/t/Copilot-in-SSMS-does-not-support-using-G/10907218


r/SQLServer • • Aug 02 '25

Question I shrank a 750 GB Transaction log file but I think it's causing some serious issue

27 Upvotes

So, I received this sql server a few days ago and decided to do some maintenance on it. I found a huge transaction log file and decided to shrink it gradually which is probably the culprit here. I did it in chunks of 50 GB till it's now 50 GB in size. Then after that I ran ola hallengren's index optimization. I received a call two hours later that people can't login to the application. They're checking with the application vendor. I've researched on chatgpt and it said that most likely it's causing some blocking. I ran sp_whoisactive and found a couple of suspended sessions. But those were recent not in the past two hours so I guess this means there are no blocked sessions from two hours ago.

Can someone explain why shrinking gradually would cause blocking?


r/SQLServer • • Aug 03 '24

what is the next course to be good DBA

27 Upvotes

Hello guys, I want to be a Database Administrator but rn I feel I'm not good enough.

I took two courses in Udemy about begin DBA but it was a brief look in everything in the production environment, I need to get more info about like partitions and depth knowledge about Tunning and performance, what is you recommendations of courses Should I take ?


r/SQLServer • • Jun 15 '23

SQL Shades- A Simple & Complete Dark Theme Solution For SQL Server Management Studio in 2023

Thumbnail
youtu.be
27 Upvotes

r/SQLServer • • Sep 12 '22

Blog [Bitesized] A bit on IAM Pages

Post image
27 Upvotes

r/SQLServer • • May 13 '22

Excel to Sql Server

27 Upvotes

I have created a developer utility for getting Excel documents into Sql Server. It's still pre-release, but it's been used in some real life scenarios and has proven useful.

The idea is simply to have a utility that has minimal configuration and can just get data into MSSQL for further evaluation/interrogation without some of the headache I get when using Import Data from Excel in SSMS.

The utility and source are available on GitHub ExcelToSqlServer.

I also created a video which shows one use case and goes over each of the individual configuration options. Excel To Sql Server: a utility to simplify your life

I hope that a few of you find some value in this solution. Maybe even fork the repo as a start to making it super awesome for your own needs.


r/SQLServer • • May 18 '21

.LDF file grew beyond 1 TB (on a 250 Gb database..) And, the Fix!

27 Upvotes

In a rare reddit post, I will start by saying I SOLVED this problem already. But, as a give-back to the community for helping me last week, and also to populate searches in the hopes that those stackExchange articles from 2005 finally die the death they deserve, here goes.

Server monitoring system reported extreme low free space on the data drive of a MS SQL server. I log in, and see that it's been losing space for days! In fact, it's at 7% free and headed for disaster within 24 hours! I fire up WizTree, and quickly identify the .ldf file of our biggest database. It's 1.1 TB! First, I try shrinking the file via SSMS: Right-click, actions, Shrink.. File,,, yadda yadda. It spins for a few minutes or so, finishes, and NOTHING. file's still there. So, I do the needful: Check to ensure that backups are in "Simple" recovery mode, and kick off a backup. Of course, the backup volume needed extended, and I had to delete a couple of dailys sitting in there... but.. after it ran forever, STILL THERE.

I was searching & googling around for the better part of 2 hours, then suddenly a keyword hit me in a random article: "Replication". A blast of white-hot realization struck me in the forebrain: WE had just set up REPLICATION on that database!! I checked under the Replication settings, and, sure enough, there it was: The Publication was still there, even though there were no subscribers! Here's where I hit problem #2.

Deleting the publication hit a 2nd error: Basically, permissions! Try to right-click and delete the publication, and get an error dialogue.. Something, something, 'dbo schema role' yadda yadda. SO I google THAT. and, from a 2008 article on StackExchange, I see that somebody had to change owner of the database to 'sa'. I look at the owner: It's literally ME, my AD account that I'm logged in as! Baffling. Still, trust the rope. I run 'sp_whatever' to change owner to 'sa'. and, like, magic, I'm able to 1. delete the Publication (Which, by the way, had NO articles selected in it), and then 2. Shrink the .ldf file .. which took all of TWO SECONDS to complete! Whew. Disaster averted.

Just thought I'd share a win, and a lesson: Don't test things on Production servers!


r/SQLServer • • Apr 16 '21

Question What the must have tools for ssms?

27 Upvotes

Your personal favorites?


r/SQLServer • • Mar 14 '21

Architecture/Design SQL Injection Attack on a Microsoft SQL Server (MSSQL): Overview For Beginners

Thumbnail
cybercoastal.com
27 Upvotes

r/SQLServer • • Mar 02 '21

Meme [Meme] I guess Google thinks Microsoft added Thor to SQL Server.

Post image
27 Upvotes

r/SQLServer • • May 10 '20

Licensing Why do people pay so much money for licensing

27 Upvotes

I recently found out that Microsoft charges 7k USD per core for Enterprise edition as licencing fee while Oracle charges 47k USD per core. Why wouldn't all companies go for mysql or Postgres and use all the money saved through licensing on better hardware. This may sound like a bad question. I am not really sure why some companies wouldn't want to do this


r/SQLServer • • Oct 30 '19

Blog New high availability and disaster recovery benefits for SQL Server

Thumbnail
cloudblogs.microsoft.com
27 Upvotes

r/SQLServer • • Sep 16 '19

Some time ago I created this Azure Data Factory introduction video in which I showcase how can you easily import files into Azure SQL. I thought you might like it.

Thumbnail
youtu.be
27 Upvotes

r/SQLServer • • Jul 25 '19

Just passed 70-761 and 70-762

27 Upvotes

As the title says, Let me know if you have any high level questions, happy to help :)


r/SQLServer • • Sep 13 '18

Career Question Took Job at Small Dev Shop, Databases Are a Disaster

27 Upvotes

So I'm been at this company for a couple months now, as the sole database developer(they don't have a DBA, just sysadmins that *try*) and literally every database I am asked to work with is a complete disaster. No normalization, no FK's/Check Constraints/etc, Indexing is all over the place, and most start with _dta_index_(Database Tuning Advisor index, with unfriendly name), and every time I bring these issues up, the answer is "Yeah, we know it's bad, but that's why we hired you! Also it can't change because the application that's been running for 10 years expects it that way. and it's all hard-coded SQL in the app. But one of these days we'll get it fixed. Until then, we want you to help us convert access databases, and set up our data warehouse" "Also the CEO and folks don't want to change it, they see the DB as a glorified spreadsheet."

Don't get me wrong, I loathe access, and am glad to see gone, but it gets tedious. Also I can 100% say this company doesn't understand the purpose of a data warehouse, and the kind of time and money it takes to get one set up, and set up right.

So I'm left wondering what the heck I am supposed to do every day, while cringing and dying a little on the inside every time I see another table with UserID, followed by 10 columns tied to said user(Name, Address, Title, Etc). It's all over the place, and bad. Of the 12 developers that work here, 10 of them came here straight out of college, and not a single one of them could even answer when I asked them about normalization, or the necessity of a proper data model.

SO I guess this post is a bit of a vent, but I'm also curious how you guys cope, when you enter into a new gig. At the last place I worked, I was part of a team of 12 DBA's, things were structured, we actually had code reviews before things were put into production, and data model design was actually part of the dev workflow. I realize I need to ask more questions next time in the interview, and maybe even ask to see a bit of the database structure before I just latch onto that nice salary hook.... :) At what point do you say "For the sake of my sanity, and for the sake of my skills not getting rusty just sitting around working on access conversions, I'm moving elsewhere."?


r/SQLServer • • Nov 28 '17

DBA 911 Kindle Edition is Free Until Saturday!

27 Upvotes

As a gift to all Reddit friends and family you can get my Amazon Kindle eBook DBA 911! for FREE!!!

Beginning today(11/28/2017) and lasting until 12/02/2017 you can download the Kindle version of DBA 911! for FREE by using this link: https://www.amazon.com/dp/B01MRPUHH1

This book is written for Database Administrators or people that manage Database Administrators in worst case scenarios. What do you do if your environment is failing? What if your security is non-existent? What if you have no backups? What if your performance is terrible?? What if everything is going wrong?

Where do you start? What is your highest priority? What do you do to get everything under control?

This book will lead you through the steps to stabilize and secure your environment and cover such topics as: How to analyze your environment and create a plan to stabilize your environment. What are the duties and responsibilities? What tasks should you be doing frequently and what tasks should you be doing periodically? What tasks are condition based? How many DBAs do you need for your environment? What is the cost savings for your DBAs? Implementing automated database health checks. Implementing database best practices. Implementing capacity management. Implementing performance monitoring

https://www.amazon.com/dp/B01MRPUHH1


r/SQLServer • • Mar 23 '17

Why is my app running slowly? (A humorous cautionary tale)

27 Upvotes

So this is just a light humorous story that happened this week.

I work at a law firm. One of the systems we support is a platform that law teams use to find relevant case data. We've several terabytes of stored cases, mostly text. It's that large because every case that gets entered goes through a "full text index" process, where the system analysis all the text and creates a cross linked index. It's an associative system as well. If a user were to type in "Peyton Manning"; they'd get case files from any case involving those words, but also cases involving the NFL, Football, Sport Medicine, etc etc. Needless to say the full text index takes up quite a large chunk of space for large case files. Usually each case ends up in a database just for that case and its' associated index, for a variety of reasons.

Anyways, we had a user complain that a particular case was loading very slowly when he was accessing the files through the front end interface. My coworker took a look, and this database should have been around 20gb in size. It was however, over 300gb. Digging into it, we discovered the case had something to do with genetics, or research, or something along those lines. Part of the case files were several 1.25Gb ASCII formatted text files, containing the entire gene sequence for several bacteria. Nothing but a single, unbroken string of ATCG. Doing its due diligence the full text indexer had gone through all of them and created cross linked references for every single unique "term" in all the documents.

TL;DR: Never underestimate what a user will load into your system, input sanitization and limits are important!


r/SQLServer • • Feb 07 '13

DBA reactions

27 Upvotes

i haven't laughed this hard in a long time. http://dbareactions.tumblr.com/


r/SQLServer • • Sep 16 '26

Discussion Do yourself a favor... Create all your projects/scripts in a case-sensitive environment.

26 Upvotes

EDIT: To clear up some confusion, I only meant my own personal code that I use as a DBA...have it sanitized in a case sensitive environment so I don't have to scratch my head wondering what happened when I use it on a random new system. Let the devs worry about case sensitivity for their own stuff and have sleepless nights. πŸ˜„

Currently working for a bank with many disparate systems. I find it a major irritant many of my go-to scripts in my personal toolbox often fail on certain environments that are CS. I'm in the process of converting all of them to be case-sensitive compliant now.

Rant over.


r/SQLServer • • Oct 03 '25

Community Request It's "Life of a SSMS PM" Friday Feedback!

26 Upvotes

(🧑 I see you #SQLSwifties πŸ’š)

For those of you that manage SQL databases and do not use a Microsoft product to do so...can you share one feature you love about that product that SSMS doesn't have? Bonus internet points if you share why and how it helps you in your daily workflow.

Double bonus points if you share your favorite song off the new album πŸͺ­