i have four table
table user info = there are 6 columns one is primary key
tables user roles = two columns one is primary key
table user dep = two fields one is primary key
table user profile = there are four fields one is primary key
others fields are foreign keys(table info,table roles,table dep)
questions is of which table we have to make a store procedure and what is query for that
i wrote for table info m right or not
table user info = there are 6 columns one is primary key
tables user roles = two columns one is primary key
table user dep = two fields one is primary key
table user profile = there are four fields one is primary key
others fields are foreign keys(table info,table roles,table dep)
questions is of which table we have to make a store procedure and what is query for that
i wrote for table info m right or not
Code:
CREATE PROCEDURE [USERINFORMATION] @Id int ,@LogInName varchar(50) ,@FirstName varchar(50) ,@LastName varchar(50) ,@EmailAddress varchar(50) ,@Password varchar(50) AS BEGIN INSERT INTO [tUserInfom] ( Id ,LogInName ,FirstName ,LastName ,EmailAddress ,Password ) VALUES ( @Id ,@LogInName ,@FirstName ,@LastName ,@EmailAddress ,@Password ) END
Comment