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)
 Stored Procedure Parameters

Author  Topic 

sqllearner
Aged Yak Warrior

639 Posts

Posted - 2006-08-25 : 18:54:38
Will the number of input and output parameters in a stored procedure cause any performance issues.Because in all my stored proc have

@sp_name VARCHAR(100) OUTPUT,
@parameters VARCHAR(500) OUTPUT,
@action CHAR(10) OUTPUT

which I need for error handling.Please let me know

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-08-25 : 20:01:22
it will not affect the performance of stored procedure. If you have performance issue with the stored procedure, you should be looking at the query in the stored procedure


KH

Go to Top of Page

sqllearner
Aged Yak Warrior

639 Posts

Posted - 2006-08-25 : 21:00:30
Thanks a lot...
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-08-26 : 00:46:22
Are you using Dynamic SQL?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

sqllearner
Aged Yak Warrior

639 Posts

Posted - 2006-08-26 : 03:55:43
No Iam not using dynamic query but iam using one cursor which calls around 35-40 stored procedures
Go to Top of Page

sqllearner
Aged Yak Warrior

639 Posts

Posted - 2006-08-26 : 14:50:33
Will this cause any perfomance inssue
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-08-26 : 19:57:11
Yes your cursor and calling of all of those stored procedure will be a performance issue.

Tara Kizer
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-08-26 : 22:10:14
You should consider rewrite the 35-40 stored procedures if the performance is really bad and an issue.


KH

Go to Top of Page

sqllearner
Aged Yak Warrior

639 Posts

Posted - 2006-08-27 : 04:13:10
But will the no of input and output parameters cause performance issue
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-08-27 : 04:45:12
No. As Tara said, It is the cursor and calling of all these SP.


KH

Go to Top of Page
   

- Advertisement -