Answer by Kev Riley
your stored procedure will need to look like thiscreate proc emp_select ( @empname varchar(50) ) as select * from emp where empname like @empname +'%'
View ArticleAnswer by Fatherjack
I would have added this as a comment on Kev's answer but the code wont format ...Just to make the search a little more flexible you might want to add a leading %create proc emp_select ( @empname...
View ArticleAnswer by Matt Whitfield
I'm also adding an answer due to lack of code format and lack of characters :)I would do a few things differently...I would use nvarchar rather than varchar, simply because of internationalisation.I...
View ArticleAnswer by Kev Riley
your stored procedure will need to look like thiscreate proc emp_select ( @empname varchar(50) ) as select * from emp where empname like @empname +'%'
View ArticleAnswer by Fatherjack
I would have added this as a comment on Kev's answer but the code wont format ...Just to make the search a little more flexible you might want to add a leading %create proc emp_select ( @empname...
View ArticleAnswer by Matt Whitfield
I'm also adding an answer due to lack of code format and lack of characters :)I would do a few things differently...I would use nvarchar rather than varchar, simply because of internationalisation.I...
View Article