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
 Transact-SQL (2000)
 too many arguments problem

Author  Topic 

ppl1
Starting Member

5 Posts

Posted - 2006-05-21 : 09:59:23
hi,
i wrote a store procedure that gets one parameter and returns a number , something like this-
ALTER PROCEDURE [dbo].[FuncName]
@value float
AS
BEGIN
SELECT 2
END

im calling to the sp with one parameter called "@value" but im getting the error-
"Procedure or function FuncName has too many arguments specified."
what is the problem?
thanks in advanced.


chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2006-05-21 : 10:02:24
post how are you trying to call this function?

If Debugging is the process of removing Bugs then i Guess programming should be process of Adding them.
Go to Top of Page

ppl1
Starting Member

5 Posts

Posted - 2006-05-21 : 10:07:30
im using my own class to connect to database (and its working for sure)
im sending the parameter like this-
("@value", SqlDbType.Float, 4, 2)
Go to Top of Page

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2006-05-21 : 10:18:36
Try to run this procedure from Query Analyser and if its running properly ..
then there is some problem with your front end code you need to debug it

If Debugging is the process of removing Bugs then i Guess programming should be process of Adding them.
Go to Top of Page

ppl1
Starting Member

5 Posts

Posted - 2006-05-21 : 10:26:47
ok i get that
i need to use output parameter
thanks
Go to Top of Page
   

- Advertisement -