dbTalk Databases Forums  

direct update

microsoft.public.sqlserver.replication microsoft.public.sqlserver.replication


Discuss direct update in the microsoft.public.sqlserver.replication forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jxstern
 
Posts: n/a

Default direct update - 11-22-2004 , 04:27 PM






Doing transactional replication, set up with nosync initialization, it
seems to work great, but does not generate and does not use custom SPs
for each input/update/delete.

In the profiler I can see that, after I run a simple "update"
statement on the publisher, the same SQL gets run on the subscriber.

Which parameter of what call is it that determines whether I am using
this "direct update" business, and what are the implications, and
where (if anywhere!) is this discussed in BOL (or elsewhere), cuz I
can't find it!

Thanks.

Joshua Stern


Reply With Quote
  #2  
Old   
jxstern
 
Posts: n/a

Default Re: direct update - 11-22-2004 , 04:37 PM






On Mon, 22 Nov 2004 14:27:08 -0800, jxstern <jxstern (AT) nowhere (DOT) com>
wrote:
Quote:
Which parameter of what call is it that determines whether I am using
this "direct update" business, and what are the implications, and
where (if anywhere!) is this discussed in BOL (or elsewhere), cuz I
can't find it!
Found it (in my own scripts, of course!)

exec sp_addarticle @publication = N'myPUB', @article = N'tbl_foo',
@source_owner = N'dbo', @source_object = N'tbl_foo',
@destination_table = N'tbl_foo',
@type = N'logbased', @creation_script = null, @description = null,
@pre_creation_cmd = N'drop',
@schema_option = 0x00000000000000F3, @status = 0,
@vertical_partition = N'false',
@ins_cmd = N'SQL', @del_cmd = N'SQL', @upd_cmd = N'SQL',
@filter = null, @sync_object = null, @auto_identity_range = N'false'

Those "@ins_cmd" and such say "SQL", which echoes the SQL, rather than
use CALL, MCALL, or XCALL. See also BOL section, "Using Custom Stored
Procedures in Articles"

J.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.