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 cut rose branch with thorns, pruning shears and a clay pot on a greenhouse workbench.

REGEXP_REPLACE Text Cleanup: Replacing Tags Is Not Parsing HTML

June 3, 2011
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL String

REGEXP_REPLACE can remove controlled tag-like text, but that is not the same as parsing HTML. Test quoted brackets, surviving script text and word boundaries before deciding whether the replacement fits the input.

Read More
A SQL Server table showing statistics information.

SQL SERVER – Puzzle – Statistics are not Updated but are Created Once

June 2, 2011
Pinal Dave
SQL Performance
SQL Index, SQL Statistics

A puzzle for you: auto update is on and I insert 10 times more rows, yet the statistics are not updated. Why, and how can they update automatically?

Read More
Database Properties Window.

SQL SERVER – Creating All New Database with Full Recovery Model

June 1, 2011
Pinal Dave
SQL Tips and Tricks

A reader wanted every new database created with the full recovery model and was weighing policies, triggers and jobs. There is a much simpler solution.

Read More
Gouache painting: three wooden shelves each hold the same three items: a large butternut squash for the year, a red apple for the month and a small blue plum for the day

CONVERT Date Styles: Use Explicit Numeric Formats

May 31, 2011
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Server

CONVERT date styles make date displays explicit. Keep the typed value for date logic and agree the output format with the receiving interface.

Read More
A wooden crate of apples at a market stall beside a small brass hand counter on the counter top.

SQL SERVER – Puzzle – SELECT * vs SELECT COUNT(*)

May 30, 2011
Pinal Dave
SQL Puzzle
SQL Scripts, SQL Server

SELECT * gives an error when run alone, but SELECT COUNT(*) does not. Why? Here is my SELECT * vs SELECT COUNT(*) puzzle from the Bangalore User Group.

Read More
Ceramic vessels, a wooden box, folded cloth, stones and a cord-bound walnut rest on a wooden tray.

OPENJSON Default Schema: Read Its Type Codes

May 29, 2011
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

OPENJSON default schema exposes key, value and type. Compare all six type codes, retain JSON null, and distinguish scalar text from nested fragments.

Read More
A half finished cup on a kitchen table against a bright overcast window

SQL SERVER – A Quick Notes on SQL Azure

May 28, 2011
Pinal Dave
SQL Tips and Tricks
SQL Azure, SQL Server

SQL Azure became Azure SQL Database. What carried over, what you give up, what you stop having to do, and how to check whether your code would move.

Read More
Previous 1 … 590 591 592 593 594 595 596 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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