P
Phil Townsend
I have been using the MS Applicatin data block for over a year without
error. Recently, when calling ExecuteReader or ExecuteDataSet with a
parameterized stored procedure, I am receiving the following error:
Object must implement IConvertible. This only occurs when the procedure
expects parameters--procedures that don't take parameters work fine. The
error is coming from the data block. I am not dong anything any
different than I have for over a year of using the application data
blocks. A simplified code sample follows. Any clues as to why this is
suddenly happening? Anything I may not have checked? Thanks...
SqlDataReader drcheck=SqlHelper.ExecuteReader(
conn,"checklogin",
new SqlParameter("@un",username),
new SqlParameter("@pw",password));
ALTER PROCEDURE dbo.checkLogin
@un varchar(50),@pw varchar(50)
AS
SET NOCOUNT ON
select * from employees where email=@un and password=@pw
RETURN
error. Recently, when calling ExecuteReader or ExecuteDataSet with a
parameterized stored procedure, I am receiving the following error:
Object must implement IConvertible. This only occurs when the procedure
expects parameters--procedures that don't take parameters work fine. The
error is coming from the data block. I am not dong anything any
different than I have for over a year of using the application data
blocks. A simplified code sample follows. Any clues as to why this is
suddenly happening? Anything I may not have checked? Thanks...
SqlDataReader drcheck=SqlHelper.ExecuteReader(
conn,"checklogin",
new SqlParameter("@un",username),
new SqlParameter("@pw",password));
ALTER PROCEDURE dbo.checkLogin
@un varchar(50),@pw varchar(50)
AS
SET NOCOUNT ON
select * from employees where email=@un and password=@pw
RETURN