Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

MySQL Subscriber

 
   Database Help (Home) -> Programming RSS
Next:  Get table from store procedure  
Author Message
Yan

External


Since: Jan 13, 2008
Posts: 13



(Msg. 1) Posted: Wed May 07, 2008 12:48 pm
Post subject: MySQL Subscriber
Archived from groups: microsoft>public>sqlserver>programming (more info?)

Hi,

SQL Server 2005 sp2


The problem I face is that I try to set up a Transactional Replication
between sql as a Publsher and MySQL as a Subscriber.

When I use sp_browsereplcmds to see the cmd that is generated by the
LogReader I see the bellow INSERT statment. MySQL fails on the square
brackets with a syntax error.

insert into [T3] ([COL1],[COL2]) values (1,'abc')


The article is added as follow:
EXEC sp_addarticle

@publication = @pub

,@article = @TableName

,@source_owner = N'dbo'

,@destination_owner = NULL

,@source_object = @TableName

,@destination_table = @TableName

,@type = N'logbased'

,@creation_script = NULL

,@description = NULL

,@pre_creation_cmd = N'none' --none --drop

,@schema_option = 0x000000000803FFDF

,@status = 8 --Includes the column name in INSERT statements.

,@vertical_partition = N'false'

,@ins_cmd = 'SQL'

,@del_cmd = 'SQL'

,@upd_cmd = 'SQL'

,@filter = NULL

,@sync_object = NULL





Thanks,

Yan

 >> Stay informed about: MySQL Subscriber 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Connecting to subscriber instance via business logic handl.. - Hello, I have a customer resolver for replication where I am trying to open up a connection to the subscriber to execute stored procedures when synchronizing the data. This seems to work well with a LAN configuration, but when it is configured for a we...

Insert like Mysql - Hi: Does it exist some sql command for inserting a record and if the PK exists instead of inserting sqlserver updates the record? This instruction is used in Mysql: INSERT INTO ACABADOS(acab_id,acab_codigo,acab_acabado) VALUES(1,'PPP','PIEL') ON..

mysql file format - please help me understand mysql file format or or any related links would also be very helpful

Create Table MySQL / SQL - Hi Working with SQL Server 2005 I am trying to create a table with the following code create table department (dept_id smallint unsigned not null auto_increment, name varchar(20) not null, constraint pk_department primary key (dept_id) ) but keep..

Convert mySQL file to MSSQL2005 - HI all, I have been given a myssql script file, that creates tables and does inserts. I need to run thi on our server, a rudementry import. Is there a quick and easier way of correcting the syntax so that this sql file could be run in MSSQL Thanks..
   Database Help (Home) -> Programming All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]