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 - Renaming SP is Not Good Idea - Renaming Stored Procedure Does Not Update sys.procedures

SQL SERVER – Renaming SP is Not Good Idea – Renaming Stored Procedure Does Not Update sys.procedures

September 28, 2008
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure, SQL System Table

Renaming Stored Procedure objects with sp_rename looks fine, but the stored definition keeps the old name, as sp_helptext shows. A quick demo on AdventureWorks.

Read More
SQL SERVER - Get Answer in Float When Dividing of Two Integer

SQL SERVER – Get Answer in Float When Dividing of Two Integer

September 26, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

Dividing one integer by another in SQL Server returns an integer. Use CAST or CONVERT to get the answer in float, with decimals, as this example shows.

Read More
SQL SERVER - Guidelines and Coding Standards Complete List Download

SQL SERVER – Guidelines and Coding Standards Complete List Download

September 25, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, Data Warehousing, Database, DBA, SQL Coding Standards, SQL Constraint and Keys, SQL Cursor, SQL Data Storage, SQL Download, SQL Function, SQL Index, SQL Joins, SQL Scripts, SQL Server Security, SQL Stored Procedure, SQL Trigger, SQL Utility

My coding standards complete list for SQL Server, cut to what people follow: naming, formatting, and the rules that prevent real bugs.

Read More
A compact brick of pressed tea beside a loose heap of the same leaves, a small red tea knife resting on it.

XML Compression in SQL Server 2022

September 22, 2008
Pinal Dave
SQL Tips and Tricks
Compression, SQL Data Storage, SQL Server, SQL Server 2022, SQL XML

Use XML compression in SQL Server 2022 to reduce XML storage, inspect partition settings, and compare CPU costs on your own workload.

Read More
A wooden apparatus with two pale wheels and a metal arm beside a bowl of stones, an empty bowl, a walnut and a red cord.

bit Conversion: Nonzero Numbers Become One

September 21, 2008
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

bit conversion turns any nonzero number into one. Compare zero, negative values, NULL and TRUE/FALSE text before treating conversion as validation.

Read More
A painting shows a closed loop of blue rope beside a straight rope ending at a brass boundary pin.

Recursive CTE Cycles: Detect Loops and Depth Boundaries

September 20, 2008
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts, SQL String

Recursive CTE cycles need evidence of the repeated relationship. Use a visited path and separate cycle flags from deliberate depth boundaries.

Read More
A glass jar of green cardamom pods beside a closed white lidded crock on a shelf.

IN With NULL: Show the Unknown Comparison

September 10, 2008
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

IN with NULL can produce UNKNOWN instead of false. Compare a positive match, an unmatched value and a missing input without hiding the truth state.

Read More
Previous 1 … 492 493 494 495 496 497 498 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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