Results 1 to 2 of 2

Thread: SQLMAINT 6.5

  1. #1
    chris ooro Guest

    SQLMAINT 6.5

    I would like to run the following SQLMAINT command on my database every
    14days:

    At 2:00 AM, this command needs to kick off: SQLMAINT.EXE -D cabinet
    -CkAl -CkCat -UpdSts -RebldIdx 100 -Rpt D:MSSQLLOGcab_maint.rpt

    Question: How can I "kill" all users, then place the database in "dbo"
    mode, run "SQLMAINT", and then release database access back to the
    public - all in an automated process.

    Any suggestions would be "GREATLY" appreciated.

    Thanks,
    Chris

  2. #2
    Craig Guest

    SQLMAINT 6.5 (reply)

    To get the users, write a kill script (which will fail sometimes) or do a netstop and netstart of the mssql service. This will work all the time.

    When you do the netstart, then set the databases to DBO mode or whatever then run your maint............


    ------------
    chris ooro at 10/6/99 11:22:34 AM

    I would like to run the following SQLMAINT command on my database every
    14days:

    At 2:00 AM, this command needs to kick off: SQLMAINT.EXE -D cabinet
    -CkAl -CkCat -UpdSts -RebldIdx 100 -Rpt D:MSSQLLOGcab_maint.rpt

    Question: How can I "kill" all users, then place the database in "dbo"
    mode, run "SQLMAINT", and then release database access back to the
    public - all in an automated process.

    Any suggestions would be "GREATLY" appreciated.

    Thanks,
    Chris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •