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 - Finding the Occurrence of Character in String

SQL SERVER – Finding the Occurrence of Character in String

August 16, 2010
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

A quick T-SQL method using LEN and REPLACE to count the occurrence of character or word in a string, written as a hint for TSQL Beginners Challenge 14.

Read More
Two open brass pocket watches with plain faces on a felt mat, a hand turning one crown to match the other watch.

Synchronizing Data Between Two Databases

August 15, 2010
Pinal Dave
SQL Tips and Tricks
ETL, SQL Replication, SQL Server, SQL Transactions

Synchronizing data between two SQL Server databases requires a latency target, change source, conflict rule, and recovery plan before tool selection.

Read More
Gouache painting: on a floured board, one long strand of fresh pasta on the left is folded into a V with a doubled-back spike through its middle, overlapping itself

geometry MakeValid: Repair Can Change the Geometry Type

August 14, 2010
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

geometry MakeValid returns a valid geometry from an invalid instance, but the result can change type. I keep the original beside the proposed repair. A validity flag alone does not describe everything that changed.

Read More
Execution plan with and without index.

SQL SERVER – Computed Column and Performance – Part 3

August 13, 2010
Pinal Dave
SQL Performance
SQL Index, SQL Scripts

Part 3 of my series on computed column and performance shows how an index improves the performance of a computed column. Read the earlier parts first.

Read More
SQL SERVER – SHRINKDATABASE For Every Database in the SQL Server

SQL SERVER – SHRINKDATABASE For Every Database in the SQL Server

August 12, 2010
Pinal Dave
SQL Performance
DBA, SQL Scripts

A query tuning visit turned into a lesson on why running SHRINKDATABASE for every database is a bad idea. Here is what happened at the client’s office.

Read More
A closed walnut chest with a plain rectangular wooden bar and a short vermillion cord on the table.

Random Tokens in SQL Server: Generation, Storage and Expiry Checks

August 11, 2010
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server, SQL Server Encryption, SQL Server Security

Random tokens in SQL Server need more than a generated value. Their stored state must define expiry, revocation and whether consumption already occurred. A guarded disposable fixture makes the boundary conditions explicit.

Read More
A collage of desert landscapes on a road.

SQL SERVER – Best Practices for DBA Before Taking Vacation

August 10, 2010
Pinal Dave
SQLAuthority News
Best Practices, SQL Server Security

Why is it so hard for a DBA before taking vacation to relax? For T-SQL Tuesday I share my best practices, starting with the hardest: do not think about your job.

Read More
Previous 1 … 633 634 635 636 637 638 639 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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