Create Database Create Database Inventaris

16 downloads 245 Views 718KB Size Report
Create Database . [ON {[Primary]. Name = ,. Filename = . [, Size = ]. [, Maxsize ...
Create Database

Create Database Inventaris

Create Database [ON {[Primary] Name = , Filename = [, Size = ] [, Maxsize = ] [, Filegrowth = ])} [,..n]] [Log ON {( Name = , Filename = [, Size = ] [, Maxsize = ] [, Filegrowth = ])} [,..n]] [For Restore]

Create Database PEMBAYARAN ON Primary ( Name = Pembayaran_Dat, Filename = "D:\SQLSERVER_NPM\PEMBAYARAN.MDF" , Size = 10 MB, Maxsize = Unlimited, Filegrowth = 1 MB ) Log On ( Name = Pembayaran_Log, Filename = "D:\SQLSERVER_NPM\PEMBAYARAN.LDF" , Size = 2 MB, Maxsize = 5 MB, Filegrowth = 1 MB )

 Create Database PEMBAYARAN

 Name = Pembayaran_Dat  Filename = "D:\SQLSERVER_NPM\PEMBAYARAN.MDF"  Size = 10 MB,  Maxsize = Unlimited  Filegrowth = 1 MB  Name = Pembayaran_Log  Filename = "D:\SQLSERVER_NPM\PEMBAYARAN.LDF"  Size = 2 MB  Maxsize = 5 MB  Filegrowth = 1 MB

SP_HELPDB PEMBAYARAN

Alter Database PEMBAYARAN Modify File (Name = “Pembayaran_Dat”, Size = 12 MB)

Alter Database PEMBAYARAN Modify File (Name = “Pembayaran_Log”, Size = 3 MB)

SP_HELDB PEMBAYARAN

SP_RENAMEDB

Exec sp_dboption Pembayaran, „Single User‟, True Exec sp_renamedb „Pembayaran‟, „Billing‟ Exec sp_dboption Billing, „Single User‟, False

Drop Database

Drop Database Billing

Drop Database Billing1, Billing2