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 wooden bending jig is adjusted to fit the curvature of a different strip

Interview Question of the Week #063 – How to Recompile Stored Procedure for Specific Table?

March 20, 2016
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL Stored Procedure

After a big data change in one table, we wanted fresh plans. Here is how to recompile stored procedure plans for a specific table, with a word of caution.

Read More
A dusty high kitchen shelf of forgotten appliances, a hand lifting a red fondue pot down into a box.

Finding Dead Code: Stored Procedures Nobody Calls

December 8, 2015
Pinal Dave
SQL Tips and Tricks
DBA, SQL Dependency, SQL DMV, SQL Stored Procedure

Investigate dead code with cached procedure statistics, dependency checks and retained snapshots, then quarantine candidates before removal.

Read More
A brush clears material from a stone bowl

Interview Question of the Week #033 – How to Invalidate Procedure Cache of SQL Server?

August 23, 2015
Pinal Dave
SQL Interview Questions and Answers
SQL Server, SQL Server DBCC, SQL Stored Procedure

Clear procedure cache at the narrowest useful scope, remove one plan handle, and compare sp_recompile with statement recompilation.

Read More
A shared air manifold accepts an additional hose while a separate capped coupling stays isolated

A Custom db_executor Role for Stored Procedure Access

April 28, 2015
Pinal Dave
SQL Tips and Tricks
Schema, SQL Server Security, SQL Stored Procedure

The app gets a permission error while it works for you as a sysadmin. Here is how a db_executor role fixes it without opening everything.

Read More
SQL SERVER - Different Methods to Know Parameters of Stored Procedure

SQL SERVER – Different Methods to Know Parameters of Stored Procedure

April 24, 2015
Pinal Dave
SQL Tips and Tricks
SQL Stored Procedure

Need to know parameters of stored procedure code quickly? Here are two methods, including sp_help, that list each parameter with its type and order.

Read More
SQL SERVER - Is XP_CMDSHELL Enabled on the Server?

SQL SERVER – Is XP_CMDSHELL Enabled on the Server?

April 13, 2015
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure

Is XP_CMDSHELL enabled on your server? I recommend avoiding it for security. Here are two ways to check and turn it off, starting with T-SQL.

Read More
A hand-cranked pasta roller turns one sheet into repeatable strips

Interview Question of the Week #013 – Stored Procedure and Its Advantages – How to Create Stored Procedure

March 29, 2015
Pinal Dave
SQL Interview Questions and Answers
SQL Stored Procedure

Learn how to create stored procedure code with parameters and NOCOUNT, then review security, plan reuse, and parameter-sensitive plans.

Read More
Previous 1 … 10 11 12 13 14 15 16 … 35 Next
  • Books
  • Testimonials
  • Privacy Policy

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