Groups | Blog | Home
all groups > sql server replication > january 2004 >

sql server replication : Determining if a database is being replicated/published



Mark H.
1/14/2004 5:52:30 AM
Ross,

In a Query Analyzer window, execute 'select * from sysdatabases' against
the Master DB. If a database (DB) is published, the 'category' field
will report a '1'. See SQL Books Online for the sysdatabases table.

Hope this helps...

Thanks.

Mark H.

*** Sent via Developersdex http://www.developersdex.com ***
Ross Field
1/14/2004 1:39:58 PM
Hi

Is there a stored procedure that can be used (or a select statement) that
can determine if a SQL database has been published?

Many thanks
Ross

rboyd NO[at]SPAM onlinemicrosoft.com
1/14/2004 5:04:41 PM
The sp_dboption procedure will give you this information. Pass the database
name as the parameter.

The output will look something like this:

The following options are set:
-----------------------------------
published
select into/bulkcopy
merge publish
trunc. log on chkpt.
auto create statistics
auto update statistics


Rand
This posting is provided "as is" with no warranties and confers no rights.
AddThis Social Bookmark Button