CREATE PROCEDURE [dbo].[GetStudents]
@Name varchar(50) = ''
AS
BEGIN
IF(TRIM(@Name) != '')
select * from Students where Name like @Name +'%'
END
ELSE
select * from Students
Thumb IKR - Programming Examples
0 Comments