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 netted fruit cage over blackcurrant bushes, a blackbird perched outside unable to get in.

Safe Dynamic SQL With sp_executesql and QUOTENAME

February 19, 2013
Pinal Dave
SQL Tips and Tricks
Dynamic SQL, SQL Server, SQL Server Security, SQL Stored Procedure

Write safe dynamic SQL with typed value parameters, validated object names, and allowed sort columns, then test hostile input.

Read More
A wall hatch in a kitchen pass with an entire loaded tray being sent through in one movement.

SQL SERVER – Significance of Table Input Parameter to Stored Procedure

January 31, 2013
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL Stored Procedure

Pass a whole table into a stored procedure instead of forming and parsing XML. Here is why a table input parameter to stored procedure saves round trips.

Read More
A sewing machine stitching a long straight seam, a red spool turning on top.

Cursor Options That Matter: LOCAL, FAST_FORWARD and STATIC

November 24, 2012
Pinal Dave
SQL Tips and Tricks
SQL Cursor, SQL Server, SQL Stored Procedure, SQL TempDB

Test SQL Server cursor options, including LOCAL FAST_FORWARD and STATIC, on one loop while measuring time and tempdb cost.

Read More
A plumber's hands fitting a brass valve into a central copper pipe, with branch pipes running off to different rooms.

Renaming a Column Safely Everywhere It Is Used

October 1, 2012
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Column, SQL Server, SQL Stored Procedure, SQL View

Renaming a column safely requires finding SQL and application references, applying sp_rename, refreshing modules, and testing every consumer.

Read More
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
SQL SERVER - Find Column Used in Stored Procedure - Search Stored Procedure for Column Name - Part 2

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

July 19, 2012
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure

Readers improved my script to find column used in stored procedure. Imran Mohammed shares newer scripts to search stored procedure for column name.

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
Previous 1 … 14 15 16 17 18 19 20 … 35 Next
  • Books
  • Testimonials
  • Privacy Policy

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