Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC-4551 RDI SQL Server Agent troubleshooting #863

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -131,6 +131,32 @@ Follow the steps below to run `sys.sp_cdc_help_change_data_capture`:
access. If the result is empty then you should check that you have privileges
to access both the capture instance and the CDC tables.

### Troubleshooting

If no CDC is happening then it might mean that SQL Server Agent is down.
You can check for this using the SQL query shown below:

```sql
IF EXISTS ( SELECT 1
FROM master.dbo.sysprocesses
WHERE program_name = N'SQLAgent - Generic Refresher')
BEGIN
SELECT @@SERVERNAME AS 'InstanceName', 1 AS 'SQLServerAgentRunning'
END
ELSE
BEGIN
SELECT @@SERVERNAME AS 'InstanceName', 0 AS 'SQLServerAgentRunning'
END
```

If the query returns a result of `0`, you need to need to start
SQL Server Agent using the following commands:

```sql
EXEC xp_servicecontrol N'START',N'SQLServerAGENT';
GO
```

## SQL Server on Azure

You can also use the Debezium SQL Server connector with SQL Server on Azure.