Results 1 to 2 of 2

Thread: Shrink DB

  1. #1
    Join Date
    Mar 2002
    Posts
    192

    Unanswered: Shrink DB

    There is a server using MSDE
    I would like to shrink the following database using the following line of TSQL code.

    DBCC SHRINKDATABASE (TWO, 10)

    Is there a way to do this using cmdwrap.exe or sqlmaint.exe or sqlagent.exe or sqlserver.exe from the command prompt?

  2. #2
    Join Date
    Jan 2003
    Location
    Massachusetts
    Posts
    5,799
    Provided Answers: 11
    Check to see if OSQL is included with MSDE. If it is, then you should have no problems getting the statement to work. The syntax for OSQL is a bit lengthy, so best bet is to look it up in BOL, or run osql /? from a command line. Good luck.

Posting Permissions

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