Alejandro Mesa
3/19/2007 7:18:00 PM
Jason,
See function "databasepropertyex" in BOL.
select
dbid,
[name],
databasepropertyex([name], 'Recovery')
from
master.dbo.sysdatabases
order by
dbid
go
AMB
"Jason" wrote:
> I'm using SQL 2000 sp4, on a windows 2000 sp4 server.
>
> I'm trying to find a way to write a query that will return all database
> names on an instance, along with what recovery model is being used for that
> database (ie simple, full, or bulk-logged). Does anyone know an easy way to
> get this without looking in enterprise manager?