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 - Bad Practice of Using Keywords as an Object Name - Avoid Using Keywords as an Object

SQL SERVER – Bad Practice of Using Keywords as an Object Name – Avoid Using Keywords as an Object

December 9, 2011
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Stored Procedure

Why using keywords as an object name is a bad practice: a stored procedure named GO runs with EXEC GO, and the result can surprise you.

Read More
A scythe stone beside aligned blade and handle parts with their fitted joint visible

Statement Terminators: Where T-SQL Requires a Semicolon

December 7, 2011
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

Most T-SQL statements run fine without a semicolon, but a pasted CTE, THROW or MERGE will not. Here is how to read the error and fix the line above it.

Read More
A small wooden staircase model beside a plain closed toolbox in soft natural window light.

What a Junior DBA Should Learn First

December 6, 2011
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Build junior DBA skills around restores, permissions, blocking, and safe investigation, with a practical learning order and useful SQL checks.

Read More
A quilting hoop holds a quilt with adjoining pale and sage fabric sections

Partitioned Views: Splitting a Table Without Table Partitioning

December 5, 2011
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

A view over yearly tables only skips the years it does not need while the CHECK constraints are trusted. Here is how to see it, break it and fix it.

Read More
SQL SERVER - Effect of SET NOCOUNT on @@ROWCOUNT

SQL SERVER – Effect of SET NOCOUNT on @@ROWCOUNT

December 2, 2011
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server

Does SET NOCOUNT change @@ROWCOUNT? I ran a quick demo in a session and ten hands went up before I even hit execute. The script and what it shows.

Read More
A wooden glove former beside two differently colored gloves with matching outlines

Storing Email Addresses: Length, Case and Unique Keys

December 1, 2011
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

Two accounts for one customer usually means nobody wrote down the case rule. Build the table, break each rule, and see what the database can promise.

Read More
SQL SERVER - Fix: Error: File Cannot be Loaded Because the Execution of Scripts is Disabled on This System

SQL SERVER – Fix: Error: File Cannot be Loaded Because the Execution of Scripts is Disabled on This System

November 30, 2011
Pinal Dave
SQL Tips and Tricks
PowerShell, SQL Error Messages, SQL Scripts, SQL Server

After a fresh install, PowerShell stopped me with an error: execution of scripts is disabled on this system. The fix takes two lines with Set-ExecutionPolicy.

Read More
Previous 1 … 213 214 215 216 217 218 219 … 366 Next
  • Books
  • Testimonials
  • Privacy Policy

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