Results 1 to 2 of 2

Thread: T-sql Help

  1. #1
    Join Date
    Apr 2004
    Location
    Melbourne
    Posts
    144

    Smile Unanswered: T-sql Help

    How to specify the recovery model, maximum file sizes on log and data files, and the autoshrink option in T-SQL.


    -----------------------------------------------------
    CREATE DATABASE Starloggers
    ON
    ( NAME = Starloggers_dat,
    FILENAME = 'D:\MSSQL\Data\Starloggers_dat.mdf',
    SIZE = 10)
    LOG ON
    ( NAME = 'Starloggers_log',
    FILENAME = 'D:\MSSQL\Data\Starloggers_log.ldf',
    SIZE = 5MB)

  2. #2
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    For sizes, see CREATE DATABASE. For everything else (and to some extent the filesize questions too) see ALTER TABLE.

    -PatP

Posting Permissions

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