when i execute my store procedure: PROCEDURE [dbo].[GetEmailAdd_Sp] @emplid int AS BEGIN Declare @emplEmail varchar(50) -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; Set @emplEmail = (Select emailAdd from HrEmployee where EmplID = @emplid) return @emplEmail END
Conversion failed when converting the varchar value '[SomeEmailID]' to data type int. Exec
Exec GetEmailAdd_Sp 5
int
Declare @emplEmail int
PROCEDURE [dbo].[GetEmailAdd_Sp] @emplid int AS BEGIN Declare @emplEmail varchar(50) -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; Set @emplEmail = (Select emailAdd from HrEmployee where EmplID = @emplid) return @emplEmail END
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)