Groups | Blog | Home
all groups > sql server programming > april 2004 >

sql server programming : call url from stored procedure!


preeth
4/8/2004 9:58:43 PM
Hi,

can anybody please tell wheather it is possible to invoke
an URL from a Job/Trigger/stored procedure.

thanks in advance,
Aaron Bertrand [MVP]
4/9/2004 1:50:25 AM
Well, you could shell out to call a VBScript file that uses XMLHTTP, or use
sp_OACreate to create XMLHTTP directly. Not something I would want to do in
a trigger however, as there is a significant performance hit, elevated
permissions requirements, and the possibility of memory leaks. Can you have
the calling application take care of this portion instead?

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/




[quoted text, click to view]

Christian Perthen
4/12/2004 4:22:20 PM
Interesting question.
And how do you shell out a call to a VBScript file from a SP?

Thanks
Christian Perthen


[quoted text, click to view]

Aaron Bertrand [MVP]
4/12/2004 10:17:16 PM
Not a much better method, granted.

EXEC master..xp_cmdshell 'cscript c:\file.vbs'

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


[quoted text, click to view]

AddThis Social Bookmark Button