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 black and white clock displaying '60x60.

SQL SERVER – Select and Delete Duplicate Records – SQL in Sixty Seconds #036 – Video

December 19, 2012
Pinal Dave
SQL Video
Database, SQL in Sixty Seconds, SQL Scripts, SQL Server Management Studio

Look before you delete. This SQL in Sixty Seconds video shows one script to select duplicate records and another to delete them while keeping the latest row.

Read More
SQL SERVER - Concat Strings in SQL Server using T-SQL - SQL in Sixty Seconds #035 - Video

SQL SERVER – Concat Strings in SQL Server using T-SQL – SQL in Sixty Seconds #035 – Video

December 5, 2012
Pinal Dave
SQL Video
Database, SQL in Sixty Seconds, SQL Scripts, SQL Server Management Studio

A sixty second video on how to concat strings in SQL Server, from the plus sign to the SQL Server 2012 CONCAT function that needs no casting.

Read More
Gouache painting of a toppled tower of wooden blocks caught by a thick red cushion on a toy shop floor

AutoRecover Settings in SSMS: Protect Your Unsaved Queries

November 28, 2012
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Server Management Studio, SQL Utility

The AutoRecover settings in SSMS decide how often unsaved work is copied to disk and how long the copies are kept. This post shows where to find the two options, what they can and cannot protect, how to test them once, and which habit still matters more than any setting.

Read More
Gouache painting of a wooden boat with a bare stern panel and a pot of red paint with a brush waiting beside it

Rename a Column or Table in SQL Server Safely

November 14, 2012
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Scripts, SQL Server Management Studio, SQL Table Operation

To rename a column in SQL Server, call sp_rename with the table and column name, the new name and the word COLUMN. This post tests the rename on a demo database and shows what it leaves behind: a broken view, an old constraint name and permissions that stay. It ends with a safe way to swap two column names.

Read More
Database Location Change Tool.

SQL SERVER – Changing Default Installation Path for SQL Server

November 11, 2012
Pinal Dave
SQL Tips and Tricks
SQL Server Management Studio

Tired of moving MDF and LDF files after you create a database? Change the default installation path in server properties so new databases go where you want.

Read More
SQL SERVER - Copy Data from One Table to Another Table - SQL in Sixty Seconds #031 - Video

SQL SERVER – Copy Data from One Table to Another Table – SQL in Sixty Seconds #031 – Video

October 31, 2012
Pinal Dave
SQL Video
Database, SQL in Sixty Seconds, SQL Scripts, SQL Server Management Studio

Many developers still use a cursor to copy data from one table to another. This SQL in Sixty Seconds video shows INSERT INTO SELECT and SELECT INTO instead.

Read More
Open cleanout hatch aligned with a chimney flue

Finding the Error Log Folder and Other Paths From T-SQL

October 29, 2012
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Management Studio

Pasted a server path into File Explorer and found nothing? The folder is on the server, not your laptop. Here are the queries that tell you where.

Read More
Previous 1 … 36 37 38 39 40 41 42 … 50 Next
  • Books
  • Testimonials
  • Privacy Policy

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