Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Run ASPX file from Stored Procedure?


Run ASPX file from Stored Procedure?

Author
Message
Raymond van Laake
Raymond van Laake
SSC-Enthusiastic
SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)

Group: General Forum Members
Points: 140 Visits: 367
Hey,

After my Stored Procedure has run, I need to call a https://site/blablabla.aspx file. Can this be done from my Stored Procedure?

Thx,
Raymond
Ed Wagner
Ed Wagner
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10315 Visits: 9594
Raymond van Laake (12/9/2013)
Hey,

After my Stored Procedure has run, I need to call a https://site/blablabla.aspx file. Can this be done from my Stored Procedure?

Thx,
Raymond

Not as far as I know, and I don't think you'd want to do so anyway. Stored procedures run on the server. Opening an web page from the procedure would open it in a browser on the server and if it was running unattended, there wouldn't be anyone there to see it. Personally, I don't like to surf the web from servers at all. There's usually no real need to and you're consuming resources that would probably be best left to doing server-type things.

If the ASPX page contains .NET code you have to run after your procedure completes, look into creating a .NET assembly. http://msdn.microsoft.com/en-us/library/ms254956%28v=vs.80%29.aspx. I like to keep everything in SQL, but I understand there are some things you cannot do with SQL. An no, I'm not trying to inspire a debate with that statement. :-P


Tally Tables - Performance Personified
String Splitting with True Performance
Best practices on how to ask questions
Elliott Whitlow
Elliott Whitlow
SSCertifiable
SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)

Group: General Forum Members
Points: 6208 Visits: 5314
That is a yes/no question. The answer is Yes BUT you can't do it without some work. You'll need to write a SQLCLR to do it that way. Or if the call can be deferred write the information into a table and have an SSIS package do it with a script task. Its a lot less painful. A lot of the same code in the SSIS package but easier to get running..

CEWII
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search