
:CONNECT ZMVRTM

USE MASTER
GO

DROP ENDPOINT endpoint1
GO
DROP CERTIFICATE endpoint_cert1
GO

DROP CERTIFICATE remote_endpoint_cert1
DROP USER endpoint_connect_user1
DROP LOGIN endpoint_connect1
GO
DROP LOGIN initiator
GO
DROP MASTER KEY
GO
DROP DATABASE BrokerDB1

:CONNECT ZMVRTM\SQL1

USE MASTER
GO

DROP ENDPOINT endpoint2
GO
DROP CERTIFICATE endpoint_cert2
Go

DROP CERTIFICATE remote_endpoint_cert2
DROP USER endpoint_connect_user2
DROP LOGIN endpoint_connect2
GO

DROP MASTER KEY
GO

DROP DATABASE BrokerDB2
GO