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 - Replace a Column Name in Multiple Stored Procedure All Together

SQL SERVER – Replace a Column Name in Multiple Stored Procedure All Together

September 21, 2012
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Server Management Studio, SQL Stored Procedure

A beginner on a development server asked how to replace a column name in Multiple Stored Procedure code all together. Here is the quick way I suggest.

Read More
A tall boot beside a small open shoebox that holds only a small red paper star instead of the boot.

Why CAST to a Short VARCHAR Returns a Star Instead of an Error

September 20, 2012
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Server, SQL String

Understand why a short VARCHAR returns a star for an integer, compare Unicode errors and string truncation, and size conversions safely.

Read More
SQL SERVER - SQL Server Statistics Name and Index Creation

SQL SERVER – SQL Server Statistics Name and Index Creation

September 17, 2012
Pinal Dave
SQL Performance
SQL Error Messages, SQL Index, SQL Scripts, SQL Server, SQL Statistics

Guest author Sandip hit Msg 1913 while creating an index, because an index or statistics with that name already existed. A lesson on statistics name and index creation.

Read More
Three simple ceramic cups containing different amounts of water on a small wooden tray.

When One Number Has Three Different Answers

September 16, 2012
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Diagnose reporting inconsistency by matching filters, refresh cutoffs, and row grain before comparing totals from different reports.

Read More
Two hands moving a young tomato plant with its roots intact from a small pot into a prepared garden bed

Moving From LocalDB to a Real Instance

September 15, 2012
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Collation, SQL Migration, SQL Server, SQL Server Express

Moving from LocalDB to a server instance takes a tested backup and restore, new connection strings, mapped logins, and a collation check.

Read More
SQL SERVER - Grouping by Multiple Columns to Single Column as A String

SQL SERVER – Grouping by Multiple Columns to Single Column as A String

September 14, 2012
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL XML

How do you group data from multiple columns into one comma separated string per row, grouped by another column? Here is a sample dataset and the query.

Read More
A sparrow leaving a birdbath taken by a big pigeon, flying toward a puddle beside a red tulip

SET LOCK_TIMEOUT and Error 1222: Waiting Less for Locks

September 13, 2012
Pinal Dave
SQL Performance
SQL Error Messages, SQL Lock, SQL Server, SQL Transactions

Set LOCK_TIMEOUT to bound lock waits, reproduce error 1222, clean up the transaction, and retry safely without confusing client timeouts.

Read More
Previous 1 … 285 286 287 288 289 290 291 … 416 Next
  • Books
  • Testimonials
  • Privacy Policy

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