0

cdc.fn_cdc_get_all_changes Недопустимое имя объекта

Люди добрые, подскажите, в чем проблема?

Добавлено

CREATE TABLE InventoryStudents
(ID intidentity(1,1) notnull primarykey,
 StudentsName varchar(200) notnull,
 StudyYear smallint null)
EXECUTE sys.sp_cdc_enable_table
    @source_schema=N'dbo',
    @source_name=N'InventoryStudents',
    @role_name=N'cdc_Admin',
    @capture_instance=N'HR_InventoryStudents',
    @supports_net_changes=1,
    @filegroup_name=N'PRIMARY'
DECLARE @from_lsn binary(10),@to_lsn binary(10)
SET @from_lsn=sys.fn_cdc_get_min_lsn('HR_InventoryStudents')
SET @to_lsn=sys.fn_cdc_get_max_lsn()
SELECT*FROM cd.fn_cdc_get_all_changes_HR_InventoryStudents
(@from_lsn,@to_lsn,N'all')

1 ответ 1

1

cdc.fn_cdc_get_all_changes_экземпляр_отслеживания, где экземпляр_отслеживания является значением, указывающим экземпляр отслеживания, если для исходной таблицы включена система отслеживания измененных данных.

Источник.

1
  • Добавлено в вопрос.
    – reactor
    23 дек 2011 в 19:45

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.