Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

SQL Server Publish create bad Scripts

$
0
0

I am having some issues trying to replicate transactional data from SQL Server 2012 to Oracle 11g XE.

I am using this opcion [enter link description here][1]

[1]: Publishing data from SQL Server to non-SQL Server Subscribers

And I can make all good, I can connect with odbc to my oracle instance and can perform queries, but the problem is with the queries that snapshot generate.

Sample:

In my repData folder I have all scripts that replication will use. Looking in monitor, replication first execute the files with extension .PRE

And looking inside a file with this extension I have this:

drop Table [TEST3]
go

It's clear that it drops the table, and it execute very well.

But after this script continue and execute the .SCH files, and looking inside I have this:

drop Table [TEST3]
go
SET ANSI_PADDING ON
go

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [TEST3](
    [RECID] [numeric](38, 0) NOT NULL,
    [DESCRIPTION] [varchar](40) NULL
)

GO

So the problem is that again I have this lines: drop table TEST3 that was dropped before. And obviously will fail. Should I configure some property, or what am I doing wrong?


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>