fn is_retryable_error(err: &Error) -> boolExpand description
Check if an error is a transient SQL Server error that should be retried.
Covers:
- Deadlock victim (error 1205)
- SQL Server Agent still starting (error 14258 inside 22836/22832) — the
Agent is needed for CDC job creation and may not be ready even though the
healthcheck (
SELECT 1) already passes. - Database not yet available during startup (error 904)