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 - Recompile Stored Procedure at Run Time

SQL SERVER – Recompile Stored Procedure at Run Time

February 20, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure

Two ways to recompile a stored procedure at run time in SQL Server: add WITH RECOMPILE when you create it, or ask for a one-time recompile.

Read More
Hands fitting old wooden drawers into a new cabinet, one drawer too wide to slide into its opening

Mapping MySQL Data Types to SQL Server

February 19, 2010
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Datatype, SQL DateTime, SQL Migration, SQL Server

Mapping MySQL data types requires checking signed ranges, text encoding, date limits, and application behavior before choosing SQL Server columns.

Read More
A dump truck tipping a whole load of gravel onto a driveway at once

Minimal Logging for Bulk Loads

February 17, 2010
Pinal Dave
SQL Tips and Tricks
CSV, SQL Backup and Restore, SQL Log, SQL Server, Transaction Log

Minimal logging for Bulk Loads depends on recovery model, table shape, and locking; learn the prerequisites, tradeoffs, and how to verify a load.

Read More
A hand winding a mantel clock with a brass key

Backing Up SQL Server Express Without Agent

February 13, 2010
Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, SQL Server Express, sqlcmd

Backing up SQL Server Express requires a BACKUP script, sqlcmd, Windows Task Scheduler, retention rules, and proof that restores work.

Read More
Two hands with scoops of vanilla and strawberry ice cream both reaching for the same single cone.

UPDATE With a JOIN: Changing Rows From Another Table Safely

February 12, 2010
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Joins, SQL Server, SQL Transactions

Use UPDATE with a JOIN safely, reject duplicate source keys, compare subquery and MERGE behavior, and verify the affected rows.

Read More
SQL SERVER - ALTER DATABASE dbname SET SINGLE_USER WITH ROLLBACK IMMEDIATE

SQL SERVER – ALTER DATABASE dbname SET SINGLE_USER WITH ROLLBACK IMMEDIATE

February 11, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts

Cannot drop a database because it is in use? SET SINGLE_USER WITH ROLLBACK IMMEDIATE rolls back open work first. Be careful with it on production.

Read More
A wooden toy train with its colored carriages uncoupled and laid in a straight line on the floor, engine at the front.

STRING_SPLIT and Its Ordinal Column

February 10, 2010
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server, SQL Server 2022, SQL String

STRING_SPLIT and its ordinal column preserve token positions when you request the third argument and sort by ordinal in SQL Server.

Read More
Previous 1 … 441 442 443 444 445 446 447 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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