Hi,
Hope I'm posting this in the right place.
This is my SP:
CREATE PROCEDURE GetDeptNum
(
@Name As NVarChar(70),
@ID As Int Output
)
AS
Select @ID=ID From Dept Where Name=@Name
GO
The problem is that its not retrieving the ID as I need to returning it, rather its always giving a DBNull, even when I copy the NVarChar string from my database and use it as input on my interface!!
I've tried using Like, tried trimming the input string and using like but the output is still a null.
Any pointers? Could this have to do with my string ebing comprised of asian characters and english?
Thanks
Hope I'm posting this in the right place.
This is my SP:
CREATE PROCEDURE GetDeptNum
(
@Name As NVarChar(70),
@ID As Int Output
)
AS
Select @ID=ID From Dept Where Name=@Name
GO
The problem is that its not retrieving the ID as I need to returning it, rather its always giving a DBNull, even when I copy the NVarChar string from my database and use it as input on my interface!!
I've tried using Like, tried trimming the input string and using like but the output is still a null.
Any pointers? Could this have to do with my string ebing comprised of asian characters and english?
Thanks