Browse the archive

T-SQL

RECONFIGURE—When to use WITH OVERRIDE?

When you’re using sp_configure to change a system configuration, you have to run a RECONFIGURE to finalize your change. You even get the helpful output that reminds you to run RECONFIGURE: Configuration option 'max degree of parallelism' changed from 0 to 1. …

Continue reading

sp_executesql with output parameters

One of my coworkers asked me about output parameters from dynamic SQL today. I pointed him at sp_executesql, which allows for passing parameters into or out of dynamic SQL. The syntax can be confusing at first blush (especially for a new DBA or developer), but …

Continue reading