SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Passing SQL output...
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

OJ
Starting Member

USA
3 Posts

Posted - 05/09/2006 :  18:01:56  Show Profile  Reply with Quote
Hello all, I'm fairly new to SQL and I am trying to pass the output from a SQL query to the input of a stored procedure.
I have a query that checks for running SQL jobs in MSDB (msdb.dbo.sp_get_composite_job_info NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL). I want to pass the output of this query to a stored procedure that uses SMTP to E-mail(sp_send_cdosysmail). I have SMTP running on my windows server and the SP works like a charm. How do I get the output of the above query passed to the SP? Is it even possible?

Thanks

khtan
In (Som, Ni, Yak)

Singapore
17642 Posts

Posted - 05/09/2006 :  18:35:33  Show Profile  Reply with Quote
dup post of http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=65814


KH

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000