Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

determine tables that are Simple recovery
I need a sql statment to return a list of tables for a given database
where the Recovery Model option is Simple.
TIA
Rob


Report this thread to moderator Post Follow-up to this message
Old Post
rcamarda
10-27-05 02:24 PM


Re: determine tables that are Simple recovery
"rcamarda" <rcamarda@cablespeed.com> wrote in message
news:1129311952.833612.171530@g14g2000cwa.googlegroups.com...
>I need a sql statment to return a list of tables for a given database
> where the Recovery Model option is Simple.
> TIA
> Rob
>

The recovery model is a database-wide setting. There is no recovery model
option for individual tables.

You can determine the recovery model like this:

SELECT  DATABASEPROPERTYEX('
database_name', 'RECOVERY')

--
David Portas
SQL Server MVP
--



Report this thread to moderator Post Follow-up to this message
Old Post
David Portas
10-27-05 02:24 PM


Re: determine tables that are Simple recovery
Erp! Yes,  replace(question,'Ta
bles','Database')
Thanks!


Report this thread to moderator Post Follow-up to this message
Old Post
rcamarda
10-27-05 02:24 PM


Re: determine tables that are Simple recovery
Better Question. How can it tell the databases in my sql instance that
have a recovery model of 'Simple'?
Hope this makes sense now
Thanks


Report this thread to moderator Post Follow-up to this message
Old Post
rcamarda
10-27-05 02:24 PM


Re: determine tables that are Simple recovery
"rcamarda" <rcamarda@cablespeed.com> wrote in message
news:1129328233.934256.231310@g49g2000cwa.googlegroups.com...
> Better Question. How can it tell the databases in my sql instance that
> have a recovery model of 'Simple'?
> Hope this makes sense now
> Thanks
>

SELECT catalog_name
FROM information_schema.schemata
WHERE  DATABASEPROPERTYEX(c
 atalog_name,'RECOVER
Y') = 'SIMPLE' ;

--
David Portas
SQL Server MVP
--



Report this thread to moderator Post Follow-up to this message
Old Post
David Portas
10-27-05 02:24 PM


Re: determine tables that are Simple recovery
Thank you very much! Ill be able to use this in my backup using SQLsafe
when I perform a log backup. I kept getting errors when it tried to
backup databases with simple model. Now I can skip them.


Report this thread to moderator Post Follow-up to this message
Old Post
rcamarda
10-27-05 02:24 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

Microsoft SQL Server forum archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 12:47 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006