sql server - Replication Snapshot Agent file naming -


when sql server snapshot agent creates snapshot (for transactional replication), there's bunch of .pre, .sch, .bcp, , .idx files, prefixed object name, sequence number , part number. my_table_1#1.bcp my_table.

but when table names little longer my_table_is_long can name files my_table_is_lo890be30c_1#1.

i want process of these files manually (i.e. grab snapshot , process bcps myself) requires full name of table, , haven't been able find hex number created or stored. don't appear straight object_id, , i've checked various backing tables in distribution , publication databases tables have objid , sycobjid , it's neither of either (after converting hex decimal).

does know number comes from? must somewhere.

it appears they're random. happens when snapshot generated set of commands placed distribution database (you can see them exec sp_browsereplcmds) , these have hardcoded table name along script names, , in order run them.

when run distribution agent first time, gets replicated commands, , these instruct run scripts (alternately, if you've got set replication support only, suspect these commands ignored).

in order process scripts semi-automatically you'd need grab replcmds (hopefully on quiet system) , parse commands before running them manually.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -