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
SQL SERVER - Shortcut to SELECT Single Row from Table - SQL in Sixty Seconds #046 - Video

SQL SERVER – Shortcut to SELECT Single Row from Table – SQL in Sixty Seconds #046 – Video

March 13, 2013
Pinal Dave
SQL Video
Database, SQL in Sixty Seconds, SQL Scripts, SQL Server Management Studio

Many readers struggled with my blog post on this, so here it is as a video: a SQL Server Management Studio shortcut to select single row from any table.

Read More
SQL query tool window.

SQL SERVER – Avoid Using Function in WHERE Clause – Scan to Seek

March 12, 2013
Pinal Dave
SQL Performance
SQL Function, SQL Index

Does a function in WHERE clause really hurt performance? Using AdventureWorks and STATISTICS IO, I show what happens and how to turn a scan into a seek.

Read More
Gouache painting of a xylophone with one new red bar fitted into the middle of the row

How to Add Column at Specific Position in SQL Server

March 11, 2013
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Scripts, SQL Server, SQL Server Management Studio

To add column at specific position in SQL Server, you have three tested options, because ALTER TABLE always adds the column last. This post shows a SELECT list, a view for loads and reports, and a full table rebuild. It also explains what the rebuild costs.

Read More
Glass lavender alembic feeding a small oil vial beside an intact rooted lavender plant

BACPAC or Backup: When an Export Is the Wrong Tool

March 10, 2013
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Migration, SQL Server

A BACPAC export has rows in it, but it is not a recovery backup. Here is a small demo that shows the difference.

Read More
A lone hawthorn tree bent sideways by old winds on a calm day, a red gate below.

Finding Procedures Created With the Wrong SET Options

March 9, 2013
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Stored Procedure

Find procedures with wrong SET options in sys.sql_modules, understand error 1934, and recreate modules with ANSI_NULLS and QUOTED_IDENTIFIER ON.

Read More
SQL SERVER - Tricky Question - What is the Default Size of the Database

SQL SERVER – Tricky Question – What is the Default Size of the Database

March 8, 2013
Pinal Dave
SQL Interview Questions and Answers

What is the default size of the database in SQL Server? Many guess 3 MB or 4 MB, but the real answer depends on the model system database.

Read More
SQL SERVER - Check If String is a Palindrome in Using T-SQL Script - Reverse Function

SQL SERVER – Check If String is a Palindrome in Using T-SQL Script – Reverse Function

March 7, 2013
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL String

A friend building a captcha had to skip words that read the same backward. Here is a T-SQL script with REVERSE to check if a string is a Palindrome.

Read More
Previous 1 … 491 492 493 494 495 496 497 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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