Depending on where your putting your distribution database you can run
EXEC master..sp_adddistributor @distributor = 'Name of Distribution Server'
GO
EXEC master..sp_adddistributiondb @database = 'Name of Distribution Database'
GO
Then you will need to set up connection criteria for the publishers
EXEC master..sp_adddistpublisher @publisher = 'Publishing Server',
@distribution_db = 'Name of Distribution Database', @working_directory = 'UNC
path to shared directory if distribution database is remove or directory if
local'
if your distribution database is remote you will need to run:
EXEC master..sp_adddistributor @distributor = 'Name of Server'
GO
Hope this helps. The first two procedures will help you define the
distributor and create the distribution database.
[quoted text, click to view] "Shane Lim" wrote:
> On Mon, 31 Jan 2005 23:51:17 -0500, "Hilary Cotter"
> <hilary.cotter@gmail.com> wrote:
>
> >what happens when you go to tools, replication, enable replication?
>
>
> That enables that replication and I have to setp the distribution
> Database. How can I do this using stored procedures? This has to be
> something that the user doesn't see or even know about if possible.
>
> Shane Lim
>