Posted By

vedgiee on 06/25/10


Tagged

StoredProcedure


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


MS SQL Store Procedure


 / Published in: SQL
 

  1. CREATE PROCEDURE [dbo].[login]
  2. (
  3. @username varchar(50),
  4. @password varchar(50)
  5. )
  6.  
  7. AS
  8.  
  9. SELECT * FROM tblUsers WHERE userName = @username AND userPass = @password
  10.  
  11. RETURN @@ROWCOUNT

Report this snippet  

You need to login to post a comment.