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 wooden pantry shelf with a row of identical cream jars, three of them crowded together and only one wearing a vermilion lid.

Delete Duplicate Records in SQL Server: SQL in Sixty Seconds #036

December 19, 2012
Pinal Dave
SQL Video
Duplicate Records, SQL Delete, SQL in Sixty Seconds, SQL Index

To delete duplicate records safely, look at them first. The tests here find the duplicates, preview the rows that will go, delete all but the newest copy inside one transaction and add a unique index so they cannot return. Every query ran on SQL Server 2025.

Read More
Gouache painting of three colored ribbons feeding through a brass guide and joining into one braided cord.

Concat Strings in SQL Server: SQL in Sixty Seconds #035

December 5, 2012
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL NULL, SQL Scripts, SQL String

To concat strings in SQL Server, use the + operator or the CONCAT function. The tests here show what each one does with NULL, numbers and dates, how the 8000 character limit cuts a result, and when CONCAT_WS or STRING_AGG is the better tool.

Read More
Gouache painting of paper cards crossing a small wooden bridge between two organized file trays.

Copy Data from One Table to Another in SQL Server: SQL in Sixty Seconds #031

October 31, 2012
Pinal Dave
SQL Video
SQL Constraint and Keys, SQL in Sixty Seconds, SQL Scripts, SQL Table Operation

To copy data from one table to another, use INSERT…SELECT for an existing table or SELECT…INTO for a new one. The tests here show what SELECT…INTO carries over and what it drops, the errors you can hit, and a quick way to check the copy.

Read More
Gouache painting of two disconnected brass couplers on a braided cable between file boxes, with a red test clip.

SQL Server Connection Errors: SQL in Sixty Seconds #030

October 24, 2012
Pinal Dave
SQL Video
SQL Connection, SQL Error Messages, SQL in Sixty Seconds, sqlcmd

SQL Server connection errors have a different message for each cause. The tests here trigger seven of them against a local SQL Server 2025 instance, show what the client says, what the ERRORLOG records, and how to find the port an instance listens on.

Read More
Gouache painting of an illustrated card passing through a wooden frame into a blank calendar card and an hourglass card.

Get Date and Time Separately in SQL Server: SQL in Sixty Seconds #025

September 12, 2012
Pinal Dave
SQL Video
SQL Datatype, SQL DateTime, SQL in Sixty Seconds, SQL Scripts

You can get date and time separately from a datetime value in two ways: formatted text or real DATE and TIME values. The tests here show how each one sorts, filters and fails, and which one to keep in your code.

Read More
Gouache painting of three streams of paper cards merging through wooden channels into an organized output tray.

Insert Multiple Rows in SQL Server: SQL in Sixty Seconds #024

August 29, 2012
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Scripts, SQL Table Operation, SQL Transactions

To insert multiple rows in SQL Server, use separate INSERT statements, UNION ALL or one VALUES list. The tests here compare all three on SQL Server 2025, including failures, the 1,000 row limit and the time for 1,000 rows.

Read More
A row of identical hooks on a wall, each carrying a different coloured enamel tag.

SQL SERVER – Color Coding SQL Server Management Studio Status Bar – SQL in Sixty Seconds #023 – Video

August 22, 2012
Pinal Dave
SQL Video
Database, SQL in Sixty Seconds, SQL Scripts, SQL Server, SQL Server Management Studio

Color code the SQL Server Management Studio status bar so you always know which server you are on before you run a script. A quick video.

Read More
Previous 1 … 19 20 21 22 23 24 25 26 Next
  • Books
  • Testimonials
  • Privacy Policy

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