I am building a little installation/packaging script that deploys various database schema items and procedures. Right now, I just use this to make the database:
CREATE DATABASE dbname
GO
However,
when i point my little package at my larger databases, they quickly fill up the allotted space.
I am not clear how to create a database that has space to grow on sybase....is there some sort of parameter CREATE DATABASE parameter that allows it room to grow, or do I have to supply a specific size per database?
I ended up doing something like this (for the benefit of those who are looking, i had a hard time figuring out the device part..)
-- Data Device
disk init
name = 'do02_data',
physname = 'C:\sybase\data\do02data.d
size = '15G',
directio = true,
skip_alloc = true
go
-- Log Device
disk init
name = 'do02_log',
physname = 'C:\sybase\data\do02log.da
size = '7G',
directio = true,
skip_alloc = true
CREATE DATABASE do02 on do02_data = '15G' LOG ON do02_log = '7G' -- will take some time
GO
sp_dboption do02, 'select into/bulkcopy', true
GO
The 'select into/bulkcopy' was also needed if you're going to use BCP right afterwards.
I just put instructions in my package for the end user to modify these values as needed.