Re: Setting database size

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Amol Kasbekar (apk_at_nospam.com)
Date: 04/30/04


Date: Fri, 30 Apr 2004 09:42:20 -0400

Mark,
  Can this be done for an existing DB. For eg. If I already have a db in use
at 250Mb and I want to set it at a max size of 1 gigs with no growth, how
can I do that ?

 Amol.

"Mark Allison" <marka@no.tinned.meat.mvps.org> wrote in message
news:OVYjP8pLEHA.3052@TK2MSFTNGP12.phx.gbl...
> Bill,
>
> Yes, it is always a good idea to create your database at the final
> anticipated size to prevent fragmentation. Before you create the database
> file, stop MSSQLServer and do a disk defragmentation.
>
> Then, create your database file to be the max you expect it to be (same
for
> log). Switch off autogrow and autoshrink. You should have a contiguous
> high-performing data file now.
>
> --
> Mark Allison, SQL Server MVP
> http://www.markallison.co.uk
>
>
>
>
> "Bill Bradley" <wdbradley3@comcast.net> wrote in message
> news:umbLSmnLEHA.1348@TK2MSFTNGP12.phx.gbl...
> > We're using a patch scanning product, Shavlik HFNetChkPro, with SQL2K as
> the
> > backend running on a Win2K3 server, dual CPU, and 4 GB RAM.
> >
> > I have five drives, OS, SWAP, APPS, SQL, LOGS, and have all the products
> > separated out on individual drives as named.
> >
> > We regularly scan up to 1950 computers, and have noticed that the
> ShavlikDB
> > will get as large as 180 MB and its logfile will get up to 80 MB.
During
> > actual scans, HFNetChkPro has consumed as high as 600 MB of memory, and
> SQL
> > up to 180 MB. I periodically delete old scans and reboot the machine
> which
> > seems to lower both HD and memory consumption.
> >
> > I was wondering if it would do any good to just set the database to a
> large
> > value (250 MB and 100 MB logfile) and defrag those drives, so that
there's
> > no issue with growing or shrinking or fragmentation? I have set TempDB
to
> > 20/20 MB, as it was getting into the 12-15 MB range.
> >
> > Thanks!
> >
> >
>
>



Relevant Pages

  • Re: CREATE AGGREGATE failed because type Concatenate does not conform to UDAGG specification due to
    ... Go to the Database tab and click on the browse button next to the connection string. ... In the New Database Reference dialog, enter the details for the database where you want to deploy the assembly and create the user defined aggregate. ... I'm trying to do some CLR integration with sql server 2005. ...
    (microsoft.public.sqlserver.programming)
  • CREATE AGGREGATE failed because type Concatenate does not conform to UDAGG specification due to meth
    ... Now register the assembly and the aggregate in the SQL Server database you want ... I'm trying to do some CLR integration with sql server 2005. ...
    (microsoft.public.sqlserver.programming)
  • Re: dbdebunk Quote of Week comment
    ... > a lot of really bad SQL programmers. ... But SQL does not have a pointer data type or the ... > being told to design a database. ... But why is little Cindy Lou Who employee ...
    (comp.databases.theory)
  • Re: Safe to defrag file system w/ active databases?
    ... defragging the file while SQL Server was running but I don't know if that is ... the database for it to function properly. ... > Yes I am definitely talking about the Windows file level. ... >>talking about disk fragmentation at the file level you ...
    (microsoft.public.sqlserver.server)
  • Re: DBMS and lisp, etc.
    ... Naively implemented with SQL, again for 10 ... (1 query for the initial orders, 1 query for each order for its ... soon as you upgrade to the SQL database. ... (eq (order-customer orderA) ...
    (comp.lang.lisp)