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 - CDC and TRUNCATE - Cannot truncate table because it is published for replication or enabled for Change Data Capture

SQL SERVER – CDC and TRUNCATE – Cannot truncate table because it is published for replication or enabled for Change Data Capture

December 25, 2009
Pinal Dave
SQL Tips and Tricks
Change Data Capture, SQL Error Messages, SQL Scripts, SQLAuthority Author Visit

Does CDC capture a TRUNCATE? No. On a table enabled for Change Data Capture you get Msg 4711: Cannot truncate table. I recreate the error step by step.

Read More
Detailed painting of three wooden reading trays, each containing the same stack of five colored books, in a warm private library.

Prefix Searches: LIKE, LEFT and CHARINDEX

December 24, 2009
Pinal Dave
SQL Performance
SQL Index, SQL Performance, SQL Scripts, SQL Server

LIKE, LEFT and CHARINDEX can match the same prefix through different access paths. Compare complete matching rows and measured plans, then test literal wildcard characters and collation before choosing a search expression.

Read More
74954 records.

SQL SERVER – ORDER BY Clause and TOP WITH TIES

December 23, 2009
Pinal Dave
SQL Tips and Tricks
SQL Scripts

How does TOP WITH TIES work with ORDER BY? A simple example shows how WITH TIES returns the extra rows that match the value of the last row.

Read More
SQL Server query window.

SQL SERVER – Comma Separated Values (CSV) from Table Column – Part 2

December 21, 2009
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL String, SQL XML

Comma Separated Values from a table column, part 2: SUBSTRING limits the XML length, so I rewrote the query with STUFF and FOR XML PATH to remove it.

Read More
Gouache painting: from a greenhouse beam hang three iron hooks

XML exist: A Present Boolean Expression Still Exists

December 20, 2009
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

XML exist tests a nonempty XQuery result. Even false() returns a value, so use a node predicate to test presence and preserve NULL XML input.

Read More
SQL SERVER - Fillfactor, Index and In-depth Look at Effect on Performance

SQL SERVER – Fillfactor, Index and In-depth Look at Effect on Performance

December 16, 2009
Pinal Dave
SQL Performance
SQL Index, SQL Scripts

Where in SQL Server does 100 equal 0? In Fillfactor settings. An in-depth look at how the Fillfactor of an index affects page fill and performance.

Read More
SQL Server Memory Size and Allocation Tool Window.

SQL SERVER – Difference TempTable and Table Variable – Table Variable in Memory a Myth

December 15, 2009
Pinal Dave
SQL Performance
SQL Scripts

Is a table variable in memory while a temp table lives in TempDB? It is a myth: both are created in TempDB, and a simple script proves it.

Read More
Previous 1 … 268 269 270 271 272 273 274 … 363 Next
  • Books
  • Testimonials
  • Privacy Policy

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