Is there any solution for growth the size of data and log file in SQL Server?

o0lyfsai  于 2023-10-15  发布在  SQL Server
关注(0)|答案(1)|浏览(138)

I can create a database in SQL Server using this SQL statement:

create database test on
[
    (
        [NAME= LogicalName, FILENAME= 'PhysicalName', 
        [,SIZE= Size] [,MAXSIZE= MaxSize | UNLIMITED]
        
    ) [,...n]

How to handle FILEGROWTH in this case?

I expect you to give me a solution with examples.

2fjabf4q

2fjabf4q1#

I could find this solution

CREATE DATABASE DbName 
ON [ ( [NAME = LogicalName, 
        FILENAME = 'PhysicalName',  
        [,SIZE= Size] [,MAXSIZE= MaxSize | UNLIMITED] 
        [,FILEGROWTH= Growth] ) [,...n] 
        [LOG ON ( [NAME= LogicalName, FILENAME= 'PhysicalName',  [,SIZE= Size] [,MAXSIZE= MaxSize | UNLIMITED] [,FILEGROWTH= Growth] )[,...n] ]

相关问题