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

database maintenance plan
i currently am using: sharepoint portal 2003 / windows sharepoint
services with sp2 and sql 2000 with sp4.

i'm trying to develop a database maintenance plan in sql 2000. so far,
to get past the
QUOTED_IDENTIFIER, i've added - SupportComputedColum
n to the T-SQL code
in the steps, but since sharepoint actively keeps a connection to the
database, i'm unable to backup the transaction logs.

i tried adding something like this:

use master
go
alter database db1_prod set single_user with rollback immediate
go

...and it didn't work. anyone have a better idea?

thanks!


Report this thread to moderator Post Follow-up to this message
Old Post
eric.olson@gmail.com
11-22-06 12:13 AM


Re: database maintenance plan
> but since sharepoint actively keeps a connection to the
> database, i'm unable to backup the transaction logs.

Backup log is perfectly possible while users are connected to the database. 
My guess is that your
integrity check has the "attempt to repair minor problems" checked. This is 
a bad option in the
first place. I suggest you remove that option.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www. solidqualitylearning
.com/


<eric.olson@gmail.com> wrote in message
news:1164121998.074547.209600@f16g2000cwb.googlegroups.com...
>i currently am using: sharepoint portal 2003 / windows sharepoint
> services with sp2 and sql 2000 with sp4.
>
> i'm trying to develop a database maintenance plan in sql 2000. so far,
> to get past the
> QUOTED_IDENTIFIER, i've added - SupportComputedColum
n to the T-SQL code
> in the steps, but since sharepoint actively keeps a connection to the
> database, i'm unable to backup the transaction logs.
>
> i tried adding something like this:
>
> use master
> go
> alter database db1_prod set single_user with rollback immediate
> go
>
> ...and it didn't work. anyone have a better idea?
>
> thanks!
>


Report this thread to moderator Post Follow-up to this message
Old Post
Tibor Karaszi
11-22-06 12:13 AM


Re: database maintenance plan
Regarding the statement:
"but since sharepoint actively keeps a connection to the
database, i'm unable to backup the transaction logs."

You can do database and log backups while the database is in use. You
don't need to drop any connections to perform the backup.

-Sue

On 21 Nov 2006 07:13:18 -0800, eric.olson@gmail.com wrote:

>i currently am using: sharepoint portal 2003 / windows sharepoint
>services with sp2 and sql 2000 with sp4.
>
>i'm trying to develop a database maintenance plan in sql 2000. so far,
>to get past the
>QUOTED_IDENTIFIER, i've added - SupportComputedColum
n to the T-SQL code
>in the steps, but since sharepoint actively keeps a connection to the
>database, i'm unable to backup the transaction logs.
>
>i tried adding something like this:
>
>use master
>go
>alter database db1_prod set single_user with rollback immediate
>go
>
>...and it didn't work. anyone have a better idea?
>
>thanks!


Report this thread to moderator Post Follow-up to this message
Old Post
Sue Hoegemeier
11-22-06 12:13 AM


Re: database maintenance plan
where i'm at now:

Backup cannot be performed on database 'master'. The sub task is
ignored.
Backup cannot be performed on database 'msdb'. The sub task is ignored.
Sue Hoegemeier  wrote:[color=darkred
]
> Regarding the statement:
>  "but since sharepoint actively keeps a connection to the
> database, i'm unable to backup the transaction logs."
>
> You can do database and log backups while the database is in use. You
> don't need to drop any connections to perform the backup.
>
> -Sue
>
> On 21 Nov 2006 07:13:18 -0800, eric.olson@gmail.com wrote:
> 


Report this thread to moderator Post Follow-up to this message
Old Post
eric.olson@gmail.com
11-30-06 12:12 AM


Re: database maintenance plan
eric.olson@gmail.com  wrote:
> where i'm at now:
>
> Backup cannot be performed on database 'master'. The sub task is
> ignored.
> Backup cannot be performed on database 'msdb'. The sub task is ignored.

That means you're attempting to do a transaction log backup on those
databases, and they're in Simple recovery mode.  You can't backup the
t-log on a Simple mode database.


--
Tracy McKibben
MCDBA
http://www.realsqlguy.com

Report this thread to moderator Post Follow-up to this message
Old Post
Tracy McKibben
11-30-06 12:12 AM


Re: database maintenance plan
i took off the 'attempt to repair minor problems' but still get errors
with the master and msdb databases backup. perhaps i need to make a
separate database maintenance plan for those two, and only have them
backup and not touch the transaction logs?

Tibor Karaszi  wrote:[color=darkred
] 
>
> Backup log is perfectly possible while users are connected to the database
. My guess is that your
> integrity check has the "attempt to repair minor problems" checked. This i
s a bad option in the
> first place. I suggest you remove that option.
>
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www. solidqualitylearning
.com/
>
>
> <eric.olson@gmail.com> wrote in message
> news:1164121998.074547.209600@f16g2000cwb.googlegroups.com... 


Report this thread to moderator Post Follow-up to this message
Old Post
eric.olson@gmail.com
11-30-06 12:12 AM


Re: database maintenance plan
right.... but a microsoft article also said not to put master or msdb
in full mode.

should i put it in full recovery mode?

Tracy McKibben  wrote:
> eric.olson@gmail.com wrote: 
>
> That means you're attempting to do a transaction log backup on those
> databases, and they're in Simple recovery mode.  You can't backup the
> t-log on a Simple mode database.
>
>
> --
> Tracy McKibben
> MCDBA
> http://www.realsqlguy.com


Report this thread to moderator Post Follow-up to this message
Old Post
eric.olson@gmail.com
11-30-06 12:12 AM


Re: database maintenance plan
eric.olson@gmail.com  wrote:
> right.... but a microsoft article also said not to put master or msdb
> in full mode.
>
> should i put it in full recovery mode?
>

No, just don't include those databases in the transaction log backup
job.  Create two plans - one for system DB's, one for user DB's.


--
Tracy McKibben
MCDBA
http://www.realsqlguy.com

Report this thread to moderator Post Follow-up to this message
Old Post
Tracy McKibben
11-30-06 12:12 AM


Re: database maintenance plan
that's exactly what i ended up doing :).

- plan1 - backup user databases w/transaction logs, database
optimization, and error checking
- plan2 - backup system databases and check for errors

thanks.
Tracy McKibben  wrote:
> eric.olson@gmail.com wrote: 
>
> No, just don't include those databases in the transaction log backup
> job.  Create two plans - one for system DB's, one for user DB's.
>
>
> --
> Tracy McKibben
> MCDBA
> http://www.realsqlguy.com


Report this thread to moderator Post Follow-up to this message
Old Post
eric.olson@gmail.com
11-30-06 12:12 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server 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 08:56 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006