Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Stored proc not returning result when parameter is decimal

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2000-11-30 : 16:11:33
Juan writes "The field "VersionNum" in my table is of type char.
If the value in this field is a whole number, my s.p. works fine. If the value is 1.1 the s.p. does not return any result.

CREATE PROCEDURE dbo.faqlist
@VersionNum char,
@Category int
As
SELECT tblfaq.id, tblfaq.definition
FROM tblfaq WHERE tblfaq.VersionNum = @VersionNum AND tblfaq.Category = @Category
-------------

exec faqlist @VersionNum = '1.1', @Category = 2

I even alter to s.p. to say VersionNum LIKE @VersionNum and it still did not work.

I'm using SQLServer 7 on NT4 Server with latest service pack

I hope you can help
"
   

- Advertisement -