用asp.net做一个用户角色权限的登录页面。创建了如下表,要怎么创建这些表的存储过程,使其关联。create table [RBAC_User]
(
[User_ID] int primary key not null,
[User_Name] varchar(20) not null,
[User_PassWord] varchar(20) not null,
[User_Lock] bit not null
)
go
insert into [RBAC_User] values(1,'FightingYang','PassWord',0);
insert into [RBAC_User] values(2,'ZhaoYun','Good',0);
insert into [RBAC_User] values(3,'Huang','excelent',1);
select *from [RBAC_User]
create table[RBAC_Group]
(
[Group_ID] int primary key not null,
[Group_Name] varchar(20) not null
)
goinsert into [RBAC_Group] values(1,'编程爱好者');
insert into [RBAC_Group] values(2,'MSDN老师');
go
select *from [RBAC_Group]
create table[RBAC_Role]
(
[Role_ID] int primary key not null,                     
[Role_Name] varchar(20) not null
)
go
insert into [RBAC_Role] values(1,'admin');
insert into [RBAC_Role] values(2,'user');
select *from [RBAC_Role]
gocreate table UserInRole
(
[User_ID] int not null,
[Role_ID] int not null
)
select *from UserInRolecreate table Application
(
[Application_ID] int primary key not null,
[Application_Name] varchar(20) not null
)create table Permission
(
[Role_ID] int not null,
[Application_ID] int not null,
[Permission_ID] int primary key not null
)