x

not able to clean subscription by sp_mergesubscription_cleanup?

Hi i am using this proc at subscriber as

sp_mergesubscription_cleanup 'xx.xxx.xxx.xxx (public IP)','pubDBNAME','PUBNAME' but this is not working

when i use to delete like this sp_mergesubscription_cleanup 'sysname','pubDBNAME','PUBNAME' this is working

how to make proc work with public ip

regards bhuvan
more ▼

asked Jun 15, 2011 at 09:50 PM in Default

Bhuvans gravatar image

Bhuvans
220 19 19 21

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first
As per my knowledge you cannot pass the IP Address to publisher parameter in sp_mergesubscription_cleanup, you can use the server name only.
more ▼

answered Jun 15, 2011 at 10:21 PM

Cyborg gravatar image

Cyborg
10.6k 36 40 45

so how do i clean subscription when i am in VPN
Jun 15, 2011 at 11:51 PM Bhuvans
actually after the successfull replication i need to delete the subscription. i am doing this by VPN.. then how to delete this in subscriber in T-SQL or RMO or anything
Jun 15, 2011 at 11:52 PM Bhuvans
I am not sure whether the following will work, but will not harm you by any way, so you can try this. Create a Alias name for the Public IP Server in SQL Server Configuration Manager and try to use that alias name in sp_mergesubscription_cleanup. Good luck :)
Jun 16, 2011 at 01:18 AM Cyborg
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x715
x581
x305

asked: Jun 15, 2011 at 09:50 PM

Seen: 1758 times

Last Updated: Jun 15, 2011 at 09:50 PM