Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Snapshot fails with DATA CONVERSION ERROR on Article with SQL_VARIANT datatype.

$
0
0

This publication has one article, it was failing for a MEMORY MAP failure.

Now fails with a DATA CONVERSION error. The snapshot progresses through a large table in multiple threads, then always stops with a DATA CONVERSION error.  Strangely, this has worked for several years but now fails.

Publisher is SS 2008R2 and the subscribers are SS 2016.

The SQL_VARIANT columns have alternately integer, character or datetimestamp data.

 


SET

ANSI_NULLSON

GO



SET

QUOTED_IDENTIFIERON

GO



CREATE

TABLE[MYTroublesometable]

[SnappyChangeEventID] [bigint] NOTNULL,

[SnappyID] [int] NOTNULL,

[SnappyChangeEventTypeID] [int] NOTNULL,

[NumberID] [bigint] NOTNULL,

[NumberTypeID] [tinyint] NOTNULL,

[ChangeByPersonID] [int] NOTNULL,

[ChangeDate] [datetime] NOTNULL,

[OldValue] [sql_variant] NULL,

[NewValue] [sql_variant] NULL,

[ContextValue1] [sql_variant] NULL,

[ContextValue2] [sql_variant] NULL,

CONSTRAINT[PK_SnappyChangeEventArchive]PRIMARYKEYCLUSTERED

(


[SnappyID]

ASC

)

WITH(PAD_INDEX=OFF,STATISTICS_NORECOMPUTE=OFF,IGNORE_DUP_KEY=OFF,ALLOW_ROW_LOCKS=ON,ALLOW_PAGE_LOCKS=ON,FILLFACTOR=90)ON[PRIMARY]


)

ON[PRIMARY]


GO


David z


Viewing all articles
Browse latest Browse all 4054

Trending Articles