Sets server options. You can set the server as a DSN server.
For additional syntax information for sp_serveroption, see the Microsoft SQL Server Transact-SQL Reference.
sp_serveroption [server_name, optname, {true | false}]
where
dist | Distribution server |
dpub | Remote publisher to this distribution server |
dsn | DSN server |
fallback | Fallback server |
pub | Publication server |
rpc | Remote server |
sub | Subscription server |
The default is rpc.
The DSN is the ODBC data source name for the server. A DSN is a server that receives replication data through ODBC. This DSN can be accessed only through Microsoft SQL Server because replication is being used.
This example identifies the ACCOUNTS server as a DSN server.
sp_serveroption ACCOUNTS, dsn, true
Only the system administrator can use this procedure to set server options.