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
SQL SERVER - ERROR: FIX: Cannot drop server because it is used as a Distributor in replication

SQL SERVER – ERROR: FIX: Cannot drop server because it is used as a Distributor in replication

December 11, 2009
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Replication, SQL Scripts

Removing replication fails with Cannot drop server because it is used as a Distributor in replication? Two quick commands with sp_dropdistributor fix it.

Read More
A seismograph drum with a calm ink line and one sharp spike, a fingertip pausing beside the spike

Reading the Error Log With T-SQL

December 1, 2009
Pinal Dave
SQL Tips and Tricks
DBA, SQL Error Messages, SQL Log, SQL Scripts

Reading the error log with T-SQL helps you search current and archived SQL Server messages, then set a useful log cycle schedule.

Read More
A red onion cut in half on a chopping board, its layers ringed from dry outer skin to a bright core.

Finding the Real Error Behind an SSMS Dialog

September 26, 2009
Pinal Dave
SQL Tips and Tricks
DBA, SQL Error Messages, SQL Server, SQL Server Management Studio

Finding the real error behind an SSMS dialog starts with technical details, inner exceptions, and a safe query-window reproduction.

Read More
Restore Database Options.

SQL SERVER – FIX – ERROR : Cannot drop the database because it is being used for replication. (Microsoft SQL Server, Error: 3724)

September 5, 2009
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Replication, SQL Scripts

Error 3724 stops you from dropping a database once used for replication. My simple fix: back up an empty database with the same name and force a restore.

Read More
Network Service permissions.

SQL SERVER – FIX : ERROR : Cannot open database requested by the login. The login failed. Login failed for user ‘NT AUTHORITY\NETWORK SERVICE’.

August 20, 2009
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Login, SQL Scripts, SQL Server Security

Getting Cannot open database requested by the login for NT AUTHORITY\NETWORK SERVICE? Map that login to your database under User Mapping.

Read More
Unsorted lentils pouring into a grinder with a red pebble among them

Logical Order Is Not Execution Order: A Conversion Error WHERE Missed

July 7, 2009
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Error Messages, SQL Function, SQL Server

Reproduce a conversion error that survives a WHERE filter, inspect optimizer choices, and replace fragile casts with TRY_CONVERT or proper types.

Read More
Previous 1 … 98 99 100 101 102 103 104 … 117 Next
  • Books
  • Testimonials
  • Privacy Policy

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