Wednesday, August 3, 2011

Select By Stored Procedure

Create proc maxid

 as

(select isnull(max(id),0) as id from tablename)

return


 To Execute 

Exec maxid

No comments:

Post a Comment