SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Weird Error during replication - TRUNCATE_ONLY not recognized?


Weird Error during replication - TRUNCATE_ONLY not recognized?

Author
Message
mikel 98376
mikel 98376
Old Hand
Old Hand (385 reputation)Old Hand (385 reputation)Old Hand (385 reputation)Old Hand (385 reputation)Old Hand (385 reputation)Old Hand (385 reputation)Old Hand (385 reputation)Old Hand (385 reputation)

Group: General Forum Members
Points: 385 Visits: 58
I have just set up a brand new replication.
Both servers are:
Microsoft SQL Server 2012 (SP3) (KB3072779) - 11.0.6020.0 (X64)

Both publisher and subscriber databases are set to:
Recovery Model: Full
Compatibility Level: SQL Server 2012

In the "Distributor to Subscriber History" tab of the Monitor, it shows up with this error.

'TRUNCATE_ONLY' is not a recognized BACKUP option.

The full error is:
Command attempted:
declare @event_type SMALLINT = 1, @distributor_major_version SMALLINT = 11, @distributor_minor_version SMALLINT = 0, @distributor_build_number SMALLINT = 6607, @totalruntime INT = 7891, @totalworktime INT = 4375, @totalnumtrans INT = 0, @numtranspersec REAL = 0.00, @totalnumcmds INT = 0, @numcmdspersec REAL = 0.00, @totalskippedcmds INT = 0, @totalidletime INT = 0 if object_id(N'sys.sp_repl_generate_subscriber_event') is not null exec sys.sp_repl_generate_subscriber_event @event_state = @event_type,@distrib
(Transaction sequence number: 0x0000A76100001B6F003D00000000, Command ID: 731)

Error messages:
'TRUNCATE_ONLY' is not a recognized BACKUP option. (Source: MSSQLServer, Error number: 155)
Get help: http://help/155


Sue_H
Sue_H
SSC Guru
SSC Guru (77K reputation)SSC Guru (77K reputation)SSC Guru (77K reputation)SSC Guru (77K reputation)SSC Guru (77K reputation)SSC Guru (77K reputation)SSC Guru (77K reputation)SSC Guru (77K reputation)

Group: General Forum Members
Points: 77739 Visits: 15568
mikel 98376 - Monday, March 5, 2018 6:55 AM
I have just set up a brand new replication.
Both servers are:
Microsoft SQL Server 2012 (SP3) (KB3072779) - 11.0.6020.0 (X64)

Both publisher and subscriber databases are set to:
Recovery Model: Full
Compatibility Level: SQL Server 2012

In the "Distributor to Subscriber History" tab of the Monitor, it shows up with this error.

'TRUNCATE_ONLY' is not a recognized BACKUP option.

The full error is:
Command attempted:
declare @event_type SMALLINT = 1, @distributor_major_version SMALLINT = 11, @distributor_minor_version SMALLINT = 0, @distributor_build_number SMALLINT = 6607, @totalruntime INT = 7891, @totalworktime INT = 4375, @totalnumtrans INT = 0, @numtranspersec REAL = 0.00, @totalnumcmds INT = 0, @numcmdspersec REAL = 0.00, @totalskippedcmds INT = 0, @totalidletime INT = 0 if object_id(N'sys.sp_repl_generate_subscriber_event') is not null exec sys.sp_repl_generate_subscriber_event @event_state = @event_type,@distrib
(Transaction sequence number: 0x0000A76100001B6F003D00000000, Command ID: 731)

Error messages:
'TRUNCATE_ONLY' is not a recognized BACKUP option. (Source: MSSQLServer, Error number: 155)
Get help: http://help/155



That is weird being that those versions couldn't issue that command. Any ideas on what the previous interrupted snapshot is - were there problems with the initial snapshot?
If you have just set it up I would try starting over with a new snapshot.

Sue



mikel 98376
mikel 98376
Old Hand
Old Hand (385 reputation)Old Hand (385 reputation)Old Hand (385 reputation)Old Hand (385 reputation)Old Hand (385 reputation)Old Hand (385 reputation)Old Hand (385 reputation)Old Hand (385 reputation)

Group: General Forum Members
Points: 385 Visits: 58
I've dropped the Publication and I've started over completely. It says the Snapshot is fine, but still getting the same Truncate Only error. I tried targeting two different servers as Subscribers. Both get same error.

As a test, I created another Publication as well, on a different database and it worked fine.

As another test, I created a publication on the same database, as a snapshot, but with only 1 table and it worked fine.

Third test, I created a Snapshot publication with all 20 tables that I need replicated. This one also failed with the same error.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum









































































































































































SQLServerCentral


Search