Avatar of jennyd
jennyd asked on

Passing through parameters when running cmdexec

I have setup a sql agent using cmdexec to call a webpage (which sends a sms) which works fine with the hardcoded url.  What I need to be able to do is to run this agent for each record in a table and pass through parameters to the url to dynamically send a sms to each person in the table.  

Any suggestions
Microsoft SQL ServerMicrosoft SQL Server 2005SQL

Avatar of undefined
Last Comment
rickchild

8/22/2022 - Mon
rickchild

Could you post an example of your code in the Step using cmdexec?

I would probably set up a stored procedure to scan the table and run the command for each row, and then just EXEC the SP using T-SQL from the job step.
ASKER CERTIFIED SOLUTION
rickchild

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes