Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Need Help

Author  Topic 

Phumzile
Starting Member

5 Posts

Posted - 2008-11-06 : 05:22:36
thanks bt i dnt understand that i need a procedure that will select all information under one procedure and when a user login must her/his information only. this is my login procedure.

ALTER procedure [dbo].[Logginde]
@UserName varchar(100)='',
@Password int=0
As
SELECT UserName,Password,AssignTo,FirstName,IdNumber,R_Address,R_Code,CellNumber,E_mail
FROM
(SELECT Username AS UserName,Passwordd AS Password,AssignTo,FirstName,IdNumber,R_Address,R_Code,CellNumber,E_mail
FROM Userr
UNION ALL
SELECT SurName,MembershipNum,Languages,FirstName,IdNumber,R_Address,R_Code,CellNumber,E_mail
FROM Member
)t
WHERE UserName=@UserName and Password=@Password

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-11-06 : 05:40:04
duplicate

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=113958
Go to Top of Page
   

- Advertisement -