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
Seven herb pots form a sequence with the beginning marked by a vermilion pot

Interview Question of the Week #046 – How @@DATEFIRST and SET DATEFIRST Are Related?

November 22, 2015
Pinal Dave
SQL Interview Questions and Answers
SQL DateTime, SQL Scripts

How are @@DATEFIRST and SET DATEFIRST related? One sets the first day of the week for your session, the other reads it back, and language matters too.

Read More
SQL SERVER - Inserting into ColumnSet with SPARSE Columns

SQL SERVER – Inserting into ColumnSet with SPARSE Columns

November 21, 2015
Pinal Dave
SQL Tips and Tricks
ColumnStore Index

A friend had a table with 1000s of SPARSE columns and asked about inserting into ColumnSet directly. Yes, you can. Here is how it works.

Read More
Illustration for this post

SQL SERVER – InMemory Table Creation Error Message: Msg 41337

November 20, 2015
Pinal Dave
SQL Tips and Tricks
SQL Error Messages

My cousin tried InMemory tables on SQL Server 2016 and hit Msg 41337 while creating one. Here is what the error means and how to get past it.

Read More
Gouache painting of a wide wicker basket heaped with small sage and grey pebbles, with one vermilion pebble on top

Context Switching Has a Cost: Batch Your Interruptions

November 19, 2015
Pinal Dave
Personal
Best Practices, Career Advice, Professional Development

Context switching costs more than the seconds it takes to change windows. This post compares attention with SQL Server commits: pay the fixed fee once per batch, not once per ping. It gives concrete ways to batch messages, tickets and reviews, and ends with a short checklist.

Read More
A single dewdrop at the tip of a leaf hanging over a low stone wall at night, about to fall on the far side

Why datetime Turns .999 Milliseconds Into the Next Day

November 18, 2015
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL DateTime, SQL Server

See why 999 milliseconds rounds into tomorrow with datetime, compare datetime2 precision, and use an exclusive next-day report boundary.

Read More
Hairpins with two metal legs forming each single pin

max_length in sys.columns: Bytes, Not Characters

November 17, 2015
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Datatype, SQL System Table

Your generated column came out twice as wide as the original. Here is why max_length counts bytes and how to turn it back into a real declaration.

Read More
MySQL - Get Latest Identity Value by Inserts

MySQL – Get Latest Identity Value by Inserts

November 16, 2015
Pinal Dave
SQL Tips and Tricks
MySQL

In MySQL, use the LAST_INSERT_ID() function to get the latest identity value after an insert, like @@IDENTITY or SCOPE_IDENTITY() in SQL Server.

Read More
Previous 1 … 347 348 349 350 351 352 353 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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