RE: Sql Server 2000
I am using the EM DB Maintenance Planner to set up maintenance for several
db's. In the dialog box I have checked 'yes' to 'Reorganize Data and Index
Pages' and 'Check DB Integrity', and also 'yes' to 'Perform these Checks
before doing Backups'. The dialog box then want's a time for doing these 'DB
Inegrity Checks, and I enter an appropriate, daily time.
Question: But later on in the dialog box it also asks for the time to do
daily Backups. Does this mean that I need to schedule enough time between
the 'DB integrity checks' and the 'Backup' to ensure Sql Server has enough
time to do the 'DB ingegrity checks'? Or does Sql Server ignore any time I
have entered for the 'DB Integrity Checks' since I have also checked 'Perform
these Checks before doing Backups'? If there is not enough time for Sql
Server to do the Integrity checks before the backup time, does it interrupt
the integrity checks to do the backup?
Thanks in advance for any clarification you can provide ...
bill
Thank you, Tibor ...
I decided to take your advise and uncheck the option that requires the db
integrity checks before each backup - I still run these checks, but way
ahead of the backups.
Thanks for your help ...
bill
"Tibor Karaszi" wrote:
> I don't think DBCC CHECKDB will block each other if you run two at the same time. But I don't have a
> 2000 instance with a database with enough size to test this (CHECKDB is largely re-written for
> 2005). But you can do that, having two windows size by size and executing at the same time.
> Agent or xp_sqlmaint (sqlmaint.exe) doesn't really care what commands are executed, so don't expect
> any intelligent handling at that level. I don't like the checkdb before backup option. Especially if
> you do log backups - you don't want to run a checkdb every 10 minutes...
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "WCM" <WCM@.discussions.microsoft.com> wrote in message
> news:D25BD068-A8F3-440E-BF13-6CAF83DA0EDF@.microsoft.com...
>
>
Showing posts with label 2000i. Show all posts
Showing posts with label 2000i. Show all posts
Sunday, March 11, 2012
Database Maintenance Planner
Friday, February 17, 2012
Database Locking
Hi
I have to run EOD i.e End of Day, a VB 6.0 Application(ADO 2.6) with
SQL Server 2000
I want to lock the Database, full/complete Database,
there are more than 100 tables so locking them one by one would not be
the ideal solution(i think)
the requirement is
i - all currently logged in users must automatically logged out
( all open connections should be closed )
ii - all transactions should automatically rolled back
iii - no user can login while EOD is running
solution plz
Regards
Wow... You could start by looking into Pausing SQL server in BOL?
Immy
<atif.aqeel@.gmail.com> wrote in message
news:1128084372.490596.85200@.z14g2000cwz.googlegro ups.com...
> Hi
> I have to run EOD i.e End of Day, a VB 6.0 Application(ADO 2.6) with
> SQL Server 2000
> I want to lock the Database, full/complete Database,
> there are more than 100 tables so locking them one by one would not be
> the ideal solution(i think)
> the requirement is
> i - all currently logged in users must automatically logged out
> ( all open connections should be closed )
> ii - all transactions should automatically rolled back
> iii - no user can login while EOD is running
> solution plz
> Regards
>
|||I assume you want to do this at the database level, not the SQL Server instance level. If so, use:
USE dbname
ALTER DATABASE dbname SET SINGLE_USER ROLLBACK IMMEDIATE
Do your job, and then set back to MULTI_USER
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
<atif.aqeel@.gmail.com> wrote in message news:1128084372.490596.85200@.z14g2000cwz.googlegro ups.com...
> Hi
> I have to run EOD i.e End of Day, a VB 6.0 Application(ADO 2.6) with
> SQL Server 2000
> I want to lock the Database, full/complete Database,
> there are more than 100 tables so locking them one by one would not be
> the ideal solution(i think)
> the requirement is
> i - all currently logged in users must automatically logged out
> ( all open connections should be closed )
> ii - all transactions should automatically rolled back
> iii - no user can login while EOD is running
> solution plz
> Regards
>
I have to run EOD i.e End of Day, a VB 6.0 Application(ADO 2.6) with
SQL Server 2000
I want to lock the Database, full/complete Database,
there are more than 100 tables so locking them one by one would not be
the ideal solution(i think)
the requirement is
i - all currently logged in users must automatically logged out
( all open connections should be closed )
ii - all transactions should automatically rolled back
iii - no user can login while EOD is running
solution plz
Regards
Wow... You could start by looking into Pausing SQL server in BOL?
Immy
<atif.aqeel@.gmail.com> wrote in message
news:1128084372.490596.85200@.z14g2000cwz.googlegro ups.com...
> Hi
> I have to run EOD i.e End of Day, a VB 6.0 Application(ADO 2.6) with
> SQL Server 2000
> I want to lock the Database, full/complete Database,
> there are more than 100 tables so locking them one by one would not be
> the ideal solution(i think)
> the requirement is
> i - all currently logged in users must automatically logged out
> ( all open connections should be closed )
> ii - all transactions should automatically rolled back
> iii - no user can login while EOD is running
> solution plz
> Regards
>
|||I assume you want to do this at the database level, not the SQL Server instance level. If so, use:
USE dbname
ALTER DATABASE dbname SET SINGLE_USER ROLLBACK IMMEDIATE
Do your job, and then set back to MULTI_USER
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
<atif.aqeel@.gmail.com> wrote in message news:1128084372.490596.85200@.z14g2000cwz.googlegro ups.com...
> Hi
> I have to run EOD i.e End of Day, a VB 6.0 Application(ADO 2.6) with
> SQL Server 2000
> I want to lock the Database, full/complete Database,
> there are more than 100 tables so locking them one by one would not be
> the ideal solution(i think)
> the requirement is
> i - all currently logged in users must automatically logged out
> ( all open connections should be closed )
> ii - all transactions should automatically rolled back
> iii - no user can login while EOD is running
> solution plz
> Regards
>
Database Locking
Hi
I have to run EOD i.e End of Day, a VB 6.0 Application(ADO 2.6) with
SQL Server 2000
I want to lock the Database, full/complete Database,
there are more than 100 tables so locking them one by one would not be
the ideal solution(i think)
the requirement is
i - all currently logged in users must automatically logged out
( all open connections should be closed )
ii - all transactions should automatically rolled back
iii - no user can login while EOD is running
solution plz
RegardsWow... You could start by looking into Pausing SQL server in BOL?
Immy
<atif.aqeel@.gmail.com> wrote in message
news:1128084372.490596.85200@.z14g2000cwz.googlegroups.com...
> Hi
> I have to run EOD i.e End of Day, a VB 6.0 Application(ADO 2.6) with
> SQL Server 2000
> I want to lock the Database, full/complete Database,
> there are more than 100 tables so locking them one by one would not be
> the ideal solution(i think)
> the requirement is
> i - all currently logged in users must automatically logged out
> ( all open connections should be closed )
> ii - all transactions should automatically rolled back
> iii - no user can login while EOD is running
> solution plz
> Regards
>|||I assume you want to do this at the database level, not the SQL Server insta
nce level. If so, use:
USE dbname
ALTER DATABASE dbname SET SINGLE_USER ROLLBACK IMMEDIATE
Do your job, and then set back to MULTI_USER
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
<atif.aqeel@.gmail.com> wrote in message news:1128084372.490596.85200@.z14g2000cwz.googlegroup
s.com...
> Hi
> I have to run EOD i.e End of Day, a VB 6.0 Application(ADO 2.6) with
> SQL Server 2000
> I want to lock the Database, full/complete Database,
> there are more than 100 tables so locking them one by one would not be
> the ideal solution(i think)
> the requirement is
> i - all currently logged in users must automatically logged out
> ( all open connections should be closed )
> ii - all transactions should automatically rolled back
> iii - no user can login while EOD is running
> solution plz
> Regards
>
I have to run EOD i.e End of Day, a VB 6.0 Application(ADO 2.6) with
SQL Server 2000
I want to lock the Database, full/complete Database,
there are more than 100 tables so locking them one by one would not be
the ideal solution(i think)
the requirement is
i - all currently logged in users must automatically logged out
( all open connections should be closed )
ii - all transactions should automatically rolled back
iii - no user can login while EOD is running
solution plz
RegardsWow... You could start by looking into Pausing SQL server in BOL?
Immy
<atif.aqeel@.gmail.com> wrote in message
news:1128084372.490596.85200@.z14g2000cwz.googlegroups.com...
> Hi
> I have to run EOD i.e End of Day, a VB 6.0 Application(ADO 2.6) with
> SQL Server 2000
> I want to lock the Database, full/complete Database,
> there are more than 100 tables so locking them one by one would not be
> the ideal solution(i think)
> the requirement is
> i - all currently logged in users must automatically logged out
> ( all open connections should be closed )
> ii - all transactions should automatically rolled back
> iii - no user can login while EOD is running
> solution plz
> Regards
>|||I assume you want to do this at the database level, not the SQL Server insta
nce level. If so, use:
USE dbname
ALTER DATABASE dbname SET SINGLE_USER ROLLBACK IMMEDIATE
Do your job, and then set back to MULTI_USER
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
<atif.aqeel@.gmail.com> wrote in message news:1128084372.490596.85200@.z14g2000cwz.googlegroup
s.com...
> Hi
> I have to run EOD i.e End of Day, a VB 6.0 Application(ADO 2.6) with
> SQL Server 2000
> I want to lock the Database, full/complete Database,
> there are more than 100 tables so locking them one by one would not be
> the ideal solution(i think)
> the requirement is
> i - all currently logged in users must automatically logged out
> ( all open connections should be closed )
> ii - all transactions should automatically rolled back
> iii - no user can login while EOD is running
> solution plz
> Regards
>
Subscribe to:
Posts (Atom)