tsqltools
tsqltools copied to clipboard
Update sp_add_cdc.sql
Key changes: • Cursors fetch both schema and table name. • Avoids repeated subqueries inside loops. • Proper error handling and cursor cleanup. • Cleaner, more efficient, and easier to maintain!