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.
| Author |
Topic |
|
samsun125
Yak Posting Veteran
63 Posts |
Posted - 2008-11-10 : 01:13:26
|
| Hi all,i want to validate username and password from database if it is valid means i want to return a out parameter like rowid.rowid username password1 rama rama :here if rama is valid user means i want to return a rowid in xml format how to do .i am using this stored procedure:ALTER procedure [iphone].[securewebservice] --x,x( @username varchar(100), @password varchar(100))asbeginif exists (select username from iphone.loginsecure where username=@username and password=@password)endThanks & RegardsRamaDevi. |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-11-10 : 01:27:03
|
| [code]ALTER procedure [iphone].[securewebservice] --x,x(@username varchar(100),@password varchar(100),@status bit OUTPUT)asbeginif exists (select username from iphone.loginsecure where username=@username and password=@password)set @status=1elseset @status=0endgoDECLARE @RetStatus bitEXEC [iphone].[securewebservice] usernamevalu,passwordvalue,@RetStatus OUTSELECT @RetStatus--this will return you the status[/code] |
 |
|
|
samsun125
Yak Posting Veteran
63 Posts |
Posted - 2008-11-10 : 02:20:49
|
| thank you visakh16.RegardsRamaDevi |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-11-10 : 02:23:41
|
Welcome |
 |
|
|
|
|
|