Chapter 18. Command Referencefor Adaptive Server Enterprise
sp_publisher procedure
Purpose Toset the publisher of the current database, or to remove the publisher.
Syntax sp_publisher[user_name ]
Argument Description
user_name
The user ID to be identifies as the publisher for the
database.
Seealso “ManagingSQL Remote permissions” on page 201.
“GRANTPUBLISH statement” on page 365
Description Each database in a SQL Remote installation is identified in outgoing
messagesby a user ID, called the publisher. Thesp_publisher procedure
setsthe publisher user ID associated with these outgoing messages.
Eachdatabase can have at most one publisher; if a publisher already exists,
sp_publisherchanges the name of the publisher.
Ifno

user_name

argumentis provided, the current publisher is removed, so
thatthe database has no publisher. Onlythe permission to be the publisher is
removed;the user ID is not removed from the database.
Examples Thefollowing statement identifies the user ID joe as the publisher of the
currentdatabase:
sp_publisher joe
go
Thefollowing statement sets the current database to have no publisher:
sp_publisher
go
409