CreateDatabaseBank
Go
UseBank
go
CreatetableAccount([ID]int,NameVarchar(100),
AccountNovarchar(100),Balancemoney)
Go
Createtablelogtable(idintidentity(1,1),
Statusvarchar(500),
Importeddatedatetimedefaultgetdate())
Go
usemaster
go
sp_addloginimportuser,import,Bank
go
useBank
go
sp_adduserimportuser
go
sp_addrolememberdb_datareader,importuser
go
sp_addrolememberdb_datawriter,importuser
go