Can i use a trigger in SQL 2005 to hit a url or update a file

Can i use a trigger in SQL 2005 to hit a url, call a webservice or update a file?

And if not can i get a trigger to run an exe located?
paulCardiffAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ashish PatelCommented:
for running an exe just you have say the below line

exec master.dbo.sp_cmdshell 'YourApplication.exe'
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
paulCardiffAuthor Commented:
Thanks for that though i must admit the exe was my plan b - as i was going to use the exe to hit a url/webservice.

But in the interests of avoiding that extra layer of maintenance is there anything simular for calling a url / webservice?
0
Ashish PatelCommented:
No there isnt any way of calling url or webservice.
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

paulCardiffAuthor Commented:
what about using a sql agent or alt sql?
0
paulCardiffAuthor Commented:
* sql? = sqlclr
0
Ashish PatelCommented:
I guess, not with sql agent too, and i am not sure about others.
0
Ashish PatelCommented:
actually the 2nd option of using your application exe is better way i think.
0
paulCardiffAuthor Commented:
Ok thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2005

From novice to tech pro — start learning today.