News & Opinion

Make the Comment Section Look Like a Junior DBA’s Search History

Here’s a homework challenge:

Free, 3× a week

Get my new posts by email

Three posts a week, plus a Monday roundup of the best database news from around the web.

140 comments

  1. I have installed SQL Server* on my laptop, why can’t I connect to my default instance?

    *It’s actually just SSMS

    1. Had a dev doing the opposite, he had temp admin access to set up all his tools on fresh machine and wondered why he couldn’t find SSMS when he had installed SQL Server.

    1. Usually followed by, after a couple of months: “Are the fundamentals and mastering classes worth It?”

  2. My database keeps growing and I have a lot of free space. How can I automate shrinking it so we have a smaller database?

  3. What are these “statistics” things I keep hearing about? Do I need to go take a math course?

  4. Someone gave me an Excel spreadsheet to load in the database? How do I copy and paste the data into a table?

      1. For real though, if you right-click and edit top rows in SSMS, and then line up the columns juuuuuuust right… hah.

    1. The funny part is that we do that for one of our tables. It contains some mapping that the business maintains and we get an excel spreadsheet. We delete all contents from the table and copy paste it into the table. Works like a charm. Not my favorite method though.

  5. Please don’t mess with the SSMS connection “Remember password” in the server, it will make me retype the sa credentials!!!

  6. I want to download IMDB into SQL Server, but only want to get the original movies. Is there a way to index for that?

  7. *Real World Question from a developer* How do I add this database to PowerBI and how to use PowerBI.

  8. what’s a deadlock and why is this stored procedure being “killed” by the system? Why doesn’t it just “wait” its turn to update a table?

    1. I have had this. Database, about 50GB, about 175, unrelated, tables, application being retired. PM asks, can you stick the database all in an excel spreadsheet so we can, for legal reasons, keep it accessible for 50 years?

  9. I have one single data table with 75 columns that holds everything my system needs, why is the performance so bad? I did create 25 indexes already!

  10. I’ve added all the Missing Indexes that SSMS keeps recommending. Now my database is slow when I insert new records. Why?

  11. Why can’t I restore my database from the ‘diskdump’ device?*

    * An actual search made by a jr dba** on versioin 6.5.

    ** Me. I was the jr dba. Inheriting a mess.

    1. hehe, reminds me of the time I blew away a whole database in SQL 7 finding this nifty tool that in enterprise manager sounded like it would copy data from one db to another – which it does, but first it drops every table in the target database. thank god that was dev.

  12. Hey DBAs, application is slow, fix it!
    *and ofc doesn’t provide any type of details
    **provides a looong API error nowhere mentioning databases

  13. I ran the scripts in production instead of dev. I ran ROLLBACK but that didn’t work. Isn’t that like Edit-Undo?

  14. Was there a Primary Server? Just asking since there is a Sequel Server. Also if there is a lock on a table, what keys are used to unlock it?

  15. Senior DBA: Carve out some time to watch Ozar videos every day this week.

    Junior DBA: I’ve seen all 4 seasons and I’m pretty sure Jason Bateman never mentions SQL Server.

  16. Can I get my dropped database back, without a backup? Followup: do we NEED mdf and ldfs? Are they important?

  17. There was nothing under Maintenance Plans in SSMS! I set some up right away to backup the databases and transaction logs and even shrink the files to save space. What? Ola Halla what?

  18. “Brent Ozar First Responder Kit”
    “What is database corruption”
    “Database stuck in recovery mode”
    “How to fix replication”
    “What are Availability Groups”
    “What’s a deadlock”
    “Why is my query slow”
    “How to move user logins”
    “How to restore a database and logs up to a point”
    “Bars near me”
    “Jobs outside of IT”

  19. Dear ChatGPT,
    Do chicks REALLY dig DBA’s? ‘Cause I’ve been doing this for 72 hours and am still gettin’ NO action. :-/

  20. How do you pronounce SQL

    How can I learn SQL in one day

    What IT jobs don’t involve databases

    Online therapy providers

  21. (1) how to automate database engine tuning advisor
    (2) how to change database collation
    (3) create maintenance plans
    (4) how to fix failover cluster
    (5) download free sql monitoring tool
    (6) sql server in-place upgrade failed
    (7) dba resume examples

  22. I broke a prod DB and now restoring from backup:
    – “sql server restore taking forever how to check progress”
    – “how to check estimated completion time of sql restore”
    – “management studio restore progress bar accurate??”
    – “what to tell angry users while restore running”
    – “how to tell if SQL restore is stuck or still running”

  23. I’ve just accidentally kicked off a FULL backup of our main production application database… in the middle of the day. Users are already asking why things feel “slower than usual”
    – “sql server backup progress t-sql”
    – “check backup percent complete sys.dm_exec_requests”
    – “how to see ETA for backup in SQL Server”
    – “does full backup slow down production”
    – “can I cancel backup without corrupting db”
    – “what to tell angry users”
    – “what to tell angry manager”
    – “what is a PIR”

  24. I’ve just accidentally kicked off a FULL backup of our main production application database… in the middle of the day. Users are already asking why things feel “slower than usual”
    – “sql server backup progress t-sql”
    – “check backup percent complete sys.dm_exec_requests”
    – “how to see ETA for backup in SQL Server”
    – “does full backup slow down production”
    – “can I cancel backup without corrupting db”
    – “what to tell angry users”
    – “what to tell angry manager”
    – “what is a PIR”

  25. ChatGPT told me to … now my replication is properly broken. “How do I reconfigure replication without anyone noticing”

  26. Is there any trick to remembering the syntax for CURSORs? Even though I use them for everything I struggle each time I write a new query.

  27. How do I fix this:-

    Msg 824, Level 24, State 2, Line 1
    SQL Server detected a logical consistency-based I/O error: incorrect pageid (expected 1:123456; actual 0:0). It occurred during a read of page (1:123456) in database ID 5 at offset 0x0000003c000000 in file ‘C:\MSSQL\Data\MyDatabase.mdf’. Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.

  28. Why doesn’t SQL use my index
    Table is still in use
    Can I see what caused X some time ago?
    How to import / export csv’s
    SQL Agent is missing on Azure

  29. Download Brent Ozar training for free

    * Silly search prompts:
    Who is Brent Ozar, and why should I care?
    Brent Ozar versus Erik Darling, who would win?

  30. Developer here: I opened my big mouth and said we should migrate the database from Access to SQL-Server. Now I’ve been given the job! Where do I start?

  31. Why is TempDB full?
    What is compatibility level?
    Best chair for sitting all day at a computer
    Funny SQL jokes to impress my team
    How to stop my laptop from making jet engine noises
    Cheap lunch ideas near me
    What does RTFM mean?

    1. I did that on my first day as a real solo DBA in a job for a museum. When I looked for backups I couldn’t find them. When I asked, they said they used backup software, ARC Serve(?). What they didn’t realize is that the software required a plugin for SQL Server, which they didn’t purchase. So there were backups, just not SQL Server backups. They had to tell everyone to re-input the data. No one grumbled. I wonder if it had happened before:)

  32. I mistakenly restored the production database with a day old backup instead of the dev database, now what do I do?

  33. What’s a Foreign Key?

    Who is Joe Celko and why_are_all_his_tables_names_funnys?

    SQL For Dummies vs SQL For Smarties – Ready, FIGHT!!!

  34. I created the login on a different server and restore the database there but I can’t still connect using the login. Why?

    My database is in full recovery and my log file is gigantic, why?

    I am just adding a field with a default value on my very large table and nothing works anymore, why?

  35. a dev asked me this once: “Why does my stored procedure not update in the DB when editing in SSMS and pressing the save button?”

  36. “How do I undelete data?”
    “How do I un-truncate a table?”
    “How to restore database with a log file”
    “How to open database log file”
    “How to restore single database backup file faster”
    “SQL code library”
    “average salary dba”
    “free sql classes”
    “recover corrupt backup file”
    “difference between junior dba and senior dba”
    “how to become a dba”
    “how to download database”
    “truncate table with rollback”
    “drop database with rollback”
    “why do I get the same query results when I changed the server connection by clicking on another server in Object Explorer?” (I actually had a software developer who thought that changed the query window’s connection)
    “how to find SQL Server Management Studio after installing SQL Server”
    “how to find SQL Server Management Studio”
    “difference between SQL Server Management Studio and SSMS”
    “how to pronounce SQL”
    “how to import screenshot data to populate table”
    “my server is still slow even with daily reboots”
    “why won’t SQL Server let me drop tempdb when I don’t need a temp database for my work?”

  37. The users says this query is really slow when it’s run via the app but it’s fast when I run it in SSMS. wtf?

Leave a comment

Your email address will not be published. Required fields are marked *

Email me about new comments: