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
A music-box mechanism with separate cylinders for repeated passages

Interview Question of the Week #009 – Is GO T-SQL Statement?

March 1, 2015
Pinal Dave
SQL Interview Questions and Answers
SQL Command, SQL Scripts, SQL Server

Explain GO T-SQL confusion with batch boundaries, GO repetition, variable scope, semicolon errors, and a procedure creation example.

Read More
Old book protected under glass domes, read only

SQL SERVER – ReadOnly Databases and Notes Using Snapshots

February 27, 2015
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server

Can you get the ReadOnly error without marking the database ReadOnly? Yes, using snapshots. Here is a script that shows the behavior step by step.

Read More
Chain coupling joining overlapping ends before a separate unbridged gap

Building the Restore Script for the Latest Backup Chain From msdb

February 24, 2015
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Log, SQL Scripts

Do not type a restore sequence by hand at 2 AM. Let msdb tell you the order, and prove the script works before you need it.

Read More
An unfinished rope-knot challenge sits between two empty interview chairs

Interview Question of the Week #008 – Write Scripts to Convert String to Title Case or Proper Case

February 22, 2015
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL String

Convert string values to title case with a corrected function, ordered SQL Server aggregation, and clear limits for personal names.

Read More
Gouache painting: a plain cream ribbon unrolled along a short wooden shelf, the ribbon stopping at the shelf edge where one vermilion pin marks the last spot

SQL SERVER – Quiz with DATEADD Function – SQL Puzzle

February 17, 2015
Pinal Dave
SQL Puzzle
SQL DateTime, SQL Function, SQL Scripts, SQL Server

The DATEADD function returns the last day of the month when the day does not exist, so one month after January 31 is February 28. This post keeps the quiz, runs every query on SQL Server 2025 and explains the month rule and the Msg 517 overflow with the real results.

Read More
A bookbinding press beside many ordered stacks awaiting work

Interview Question of the Week #007 – How to Reindex Every Table of the Database?

February 15, 2015
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts

Reindex every table selectively with SQL Server catalog checks, quoted identifiers, and a clear choice of rebuild or reorganize.

Read More
SQL SERVER - Msg 8152, Level 16, State 14 - String or Binary Data Would be Truncated

SQL SERVER – Msg 8152, Level 16, State 14 – String or Binary Data Would be Truncated

February 14, 2015
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Error Messages, SQL Scripts, SQL Server

Msg 8152, String or binary data would be truncated, is an error most developers have seen. Here is what causes it and why the setting that hides it needs care.

Read More
Previous 1 … 168 169 170 171 172 173 174 … 366 Next
  • Books
  • Testimonials
  • Privacy Policy

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