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 - 2012 Functions - FORMAT() and CONCAT() - An Interesting Usage

SQL SERVER – 2012 Functions – FORMAT() and CONCAT() – An Interesting Usage

July 16, 2012
Pinal Dave
SQL Tips and Tricks
SQL Server Management Studio

An interesting way to use the SQL Server 2012 FORMAT() and CONCAT() functions together to show a string like Current Time is Sunday July 16, 2012.

Read More
Table with 'uspGetEmployeeManagers.

SQL SERVER – Find Column Used in Stored Procedure – Search Stored Procedure for Column Name

July 15, 2012
Pinal Dave
SQL Tips and Tricks
SQL Stored Procedure

Want to drop a column? First find column used in stored procedure code. I share the T-SQL script that searches every stored procedure for a column name.

Read More
Table comparing the digit 2 with its full-width form, and E=mc2 with E=mc squared, under Latin1_General_CI_AI, which is width insensitive and treats them as equal, and Latin1_General_CI_AI_WS, which is width sensitive and treats them as different

Width Sensitive and Width Insensitive Collation: An Example

July 14, 2012
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Server, Unicode

What is a width sensitive collation? I explain it with a simple example that compares half-width and full-width characters under both collation settings.

Read More
SQL SERVER - Switch Between Two Parenthesis using Shortcut CTRL+]

SQL SERVER – Switch Between Two Parenthesis using Shortcut CTRL+]

July 13, 2012
Pinal Dave
SQL Tips and Tricks
SQL Shortcut

A reader shared a handy SSMS tip: press CTRL+] to switch between two parenthesis and jump from an opening bracket to its closing one in long queries.

Read More
SQL SERVER - Effect of Case Sensitive Collation on Resultset

SQL SERVER – Effect of Case Sensitive Collation on Resultset

July 12, 2012
Pinal Dave
SQL Tips and Tricks

A simple example of how a case sensitive collation changes the result of the same query, and why you should not change collation without knowing the business need.

Read More
Gouache painting of a guarded control knob and a separate lever on a wooden document machine beside neatly stacked cards.

Debug Button in Older SSMS: SQL in Sixty Seconds #020

July 11, 2012
Pinal Dave
SQL Video
SQL Deprecated Feature, SQL in Sixty Seconds, SQL Server Management Studio, SQL Shortcut

The Debug button in older SSMS could be mistaken for Execute, and the debugger is gone from current versions. This page keeps the 2012 episode and tests four ways to debug T-SQL without it on SQL Server 2025: parse only, error line numbers, progress messages and the OUTPUT clause.

Read More
Two shoes sit immediately on opposite sides of a narrow doorway threshold strip

DATEDIFF Counts Boundaries, Not Time: Getting Durations Right

July 10, 2012
Pinal Dave
SQL Tips and Tricks
Mathematics, SQL DateTime, SQL Function, SQL NULL

A report can say one year of service after a single day. Here is why DATEDIFF does that, and what to use instead.

Read More
Previous 1 … 529 530 531 532 533 534 535 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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