SQL Server Performance

creating schemas

Discussion in 'SQL Server 2005 General DBA Questions' started by lisa_baria03, Oct 14, 2007.

  1. lisa_baria03 New Member

    i created a database called db1 and i used an alter statement to increase the size of the model database to 10 mb
    later on i want to create the schema db to the model database
    would it just be create schema db?
  2. satya Moderator

    Whatever size you set on the Model database will be transformed automatically to the new databases as and when they are created, later all the other options must be taken care individually.
  3. Greg Larsen New Member

    As Satya said the model database is used as a "Model". Meaning setting/object you associate with the model database are used when creating any new database. So if you want to have a set of roles, sp's, tables, users, schema to be in every new databases, can create them in the model database once. And then everytime you create a database those object will be created in the new databases. Same goes with database settings.

Share This Page