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
Two identical mittens knitted from the same pattern, one still on the needles

Building a Test Server From a Script

June 5, 2011
Pinal Dave
SQL Tips and Tricks
DBA, PowerShell, SQL Server Installation, Testing

Build a test server from a script with unattended SQL Server setup, repeatable configuration, and sample data that can be reset after each run.

Read More
A reusable pattern stamp and a hinged working jig serve visibly different tasks.

SQL SERVER – Question to You – When to use Function and When to use Stored Procedure

June 4, 2011
Pinal Dave
SQL Interview Questions and Answers
SQL Function, SQL Server, SQL Stored Procedure

Deciding when to use functions or stored procedures depends on the caller and required work. I want examples behind that choice.

Read More
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
SQL SERVER - Copy Database from Instance to Another Instance - Copy Paste in SQL Server

SQL SERVER – Copy Database from Instance to Another Instance – Copy Paste in SQL Server

May 27, 2011
Pinal Dave
SQL Tips and Tricks
SQL Azure, SQL Backup and Restore, SQL Server

How to copy database from instance to another instance with the Copy Database Wizard, and automate it through SSIS and a SQL Server Agent job.

Read More
Previous 1 … 416 417 418 419 420 421 422 … 593 Next
  • Books
  • Testimonials
  • Privacy Policy

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