This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
Gouache painting of a brass mail slot beside a tied bundle of envelopes, with one vermilion envelope sticking out at an angle.

MongoDB insertOne and insertMany: Adding Documents the Right Way

May 19, 2020
Pinal Dave
SQL Tips and Tricks
Database, MongoDB, NoSQL, SQL Scripts

MongoDB insertOne adds a document and insertMany adds a list. This post tests both with a unique index, a generated _id and a duplicate key in the middle of a batch, comparing ordered: true with ordered: false and showing what landed.

Read More
Gouache painting of open cardboard folders on a desk holding cards of different shapes, a brass key beside them and one vermilion folder.

Getting Started With mongosh: Databases, Collections and Documents

May 18, 2020
Pinal Dave
SQL Tips and Tricks
Database, MongoDB, NoSQL, SQL Scripts

mongosh is the shell that connects you to MongoDB. This post connects, creates a database and a collection on the first write, and stores a document. It explains the _id, the BSON types and the habits that surprise SQL Server people.

Read More
Grain flowing into a hopper illustrates a measured transfer

How to Know Backup Speed in SQL Server? – Interview Question of the Week #277

May 17, 2020
Pinal Dave
SQL Interview Questions and Answers
SQL Backup and Restore, SQL Scripts, SQL Server

Question: How to Know Backup Speed in SQL Server?

Answer: It is very simple to know the backup speed in SQL Server. Let us discuss today.

Read More
Gouache painting of a row of five wooden doors in a stone wall, four grey and slate and one vermilion

HAS_DBACCESS Function: List the Databases You Can Open

May 16, 2020
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server Security

The HAS_DBACCESS function tells you whether the current login can open a database. One query over sys.databases turns it into a list, and this post tests six databases to show what each zero means: no user, offline, restricted or a busy single user slot.

Read More
Gouache painting of a shelf of cream pots with plants and one differently shaped vermilion pot

Memory-Optimized TempDB Tables: List Them and Check Status

May 15, 2020
Pinal Dave
SQL Performance
In-Memory OLTP, SQL DMV, SQL Memory, SQL TempDB

Memory-optimized TempDB tables are the system tables that SQL Server 2019 and later can keep in memory. This post shows two queries: one that checks whether the feature is on, and one that lists the tables it covers. It also explains the limits that come with the feature.

Read More
Gouache painting of a large orange pumpkin beside a barn door with smaller pumpkins nearby

Metadata Contention in TempDB: When Memory-Optimized Metadata Helps

May 14, 2020
Pinal Dave
SQL Performance
In-Memory OLTP, SQL Memory, SQL TempDB, SQL Wait Stats

Metadata contention in TempDB happens when many sessions create and drop temporary tables at the same moment. This post reads the waits that point to it, explains why RESOURCE_SEMAPHORE is a different problem, and shows how SQL Server 2019 and later can keep that metadata in memory.

Read More
A glass water jug refilled from three tumblers, stopping just below its red rim line.

Why FLOAT Math Does Not Add Up in T-SQL Queries

May 13, 2020
Pinal Dave
SQL Tips and Tricks
Mathematical Function, SQL Datatype, SQL Server

See why FLOAT math produces approximate sums and comparisons in SQL Server, then use DECIMAL or tolerance checks for the right data.

Read More
Previous 1 … 110 111 112 113 114 115 116 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com