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)
 Execute stored procedure from SQL Query Analyzer

Author  Topic 

danyeung
Posting Yak Master

102 Posts

Posted - 2006-03-08 : 13:34:36
How do I execute a stored procedure from SQL Query Analyzer if I have to pass parameters? I am passing strings. How do I quote each variable?

For example
exeute ('procTest' + var1 + var2 + var3)

The right click on the stored procedure and debug does not work.

Thanks.
DanYeung

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2006-03-08 : 13:41:27
exec procTest @var1, @var2, @var3

Go with the flow & have fun! Else fight the flow
Go to Top of Page

danyeung
Posting Yak Master

102 Posts

Posted - 2006-03-08 : 13:44:31
Great.

Thanks.
DanYeung
Go to Top of Page
   

- Advertisement -