Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / March 2008

Tip: Looking for answers? Try searching our database.

DB Recovery Model Type through SQL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steven - 20 Mar 2008 15:34 GMT
Hi,
How to write SQL to find the Recovery Model type.
Please suggest me something.

Thanks, Steven
Aaron Bertrand [SQL Server MVP] - 20 Mar 2008 15:55 GMT
Which version of SQL Server are you using?  For now I'll assume SQL Server
2005, but if that's not it, you'll need to include that as a part of your
question.

SELECT name, recovery_model, recovery_model_desc
FROM sys.databases
-- WHERE name = 'my_database';

> Hi,
> How to write SQL to find the Recovery Model type.
> Please suggest me something.
>
> Thanks, Steven
Sean - 20 Mar 2008 15:55 GMT
I always used (on 2K5)

select name, recovery_model, recovery_model_desc from sys.databases
where name=N'DBNAME'

or you can drop the where clause to get them all.

-Sean

> Hi,
> How to write SQL to find the Recovery Model type.
> Please suggest me something.
>
> Thanks, Steven
Steven - 20 Mar 2008 16:08 GMT
WOW, that was quick.
This is exactly what I wanted.

Thanks a lot.
Steven.

I always used (on 2K5)

select name, recovery_model, recovery_model_desc from sys.databases
where name=N'DBNAME'

or you can drop the where clause to get them all.

-Sean

> Hi,
> How to write SQL to find the Recovery Model type.
> Please suggest me something.
>
> Thanks, Steven
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.