validating data from two tables in access
please am new to c# i need help i want to create a login that can validate data from two different tables. please if there is any article to direct me to i will be glad
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pankaj Kumar ChoudharyPosted Mar 24, 2015, 8:00 PM
But as i got your qyestion you can use the "join" for creation the single table from two table
then you can use this single table . it will be easy for you..........
Joginder BangerPosted Mar 24, 2015, 3:52 PM
Create table TableName(id int,UserName varchar(50),Password varchar(max))
insert into TableName values(1,'testingOne,'India')
you have two option for communicate with database. First direct used in .cs page and another one is make a store procedure.
I have create one Store procedure
create proc Proceudre_name
(
@userName varchar(max),
@password varchar(max)
)
as
begin
select count(id) from tableName where UserName=@username and Password=@password
end
I hope this code is help full for you.