Hi serverstudent1,
Please see the following example:
USE master;
GO
CREATE DATABASE C2011_ArchiveSS
ON
( NAME = C2011_ArchiveSS_dat,
FILENAME = 'C:\MSSQL\Archive\C2011_ArchiveSS.mdf',
SIZE = 10,
MAXSIZE = 50,
FILEGROWTH = 5 )
LOG ON
( NAME = C2011_ArchiveSS_log,
FILENAME = 'C:\MSSQL\Archive\C2011_ArchiveSS.ldf',
SIZE = 5MB,
MAXSIZE = 25MB,
FILEGROWTH = 5MB ) ;
GO
Please also make sure the login have sufficient permissions to create a database.
For more information, please see:
CREATE DATABASE (Transact-SQL)
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Get or Request Code Sample from Microsoft
If you have any feedback, please tell us.