Shrink DB syntax

  • Hello friends!!!

    I have Sql server 2000 as data base

    Can any body tell me about shrink DB and also can i truncate .mdf file aslo

    with this syntax....

    EXEC sp_dboption @DB, 'trunc. log on chkpt.', TRUE/FALSE

    Is there any condition that i have to use this for master database only??? like that......

    plase explain me in detail and please can any body know detail syntax of shrink

    DB

    T.I.A

    Shashank

     


    Regards,

    Papillon

  • Hi Shashank,

    To check T-SQL command syntax next time use google.com , I hope this link will be useful:

    DBCC SHRINKDATABASE syntax

    Max

  • ... or try Books OnLine which comes with SQL Server.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.
    "Change is inevitable... change for the better is not".

    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)
    Intro to Tally Tables and Functions

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply