如何通过存储过程调用网页

编程入门 行业动态 更新时间:2024-10-08 12:40:08
本文介绍了如何通过存储过程调用网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想通过存储过程调用url.我该怎么办?

I want to call an url through Stored procedure. how can i do it?

推荐答案

您可能不想听这条建议,但是在这里却行得通:不要这样做.存储过程应在SQL Server上处理数据及其处理.在存储过程中从网站检索远程数据会引发各种麻烦:性能,事务争用,不确定性等.如果您绝对需要一些外部数据,请事先获取它们并将其传递给调用中的SP.您正在制作. 我的两分钱! 问候, 曼弗雷德(Manfred) You may not want to hear this advice, but here it goes nevertheless: Don''t do this. Stored procedures should handle data and the processing thereof on the SQL Server. Retrieving remote data from a website in a store procedure is calling for all kinds of trouble: Performance, Transaction contention, Non-Determinism etc.. If you absolutely need some external data, fetch it beforehand and pass it along to the SP in the call you are making. My two cents! Regards, Manfred

请参考一些类似的讨论: 从存储过程中发送URL请求 [ ^ ] 从存储过程中调用URL [ ^ ] 如何在tsql存储过程中执行url [ ^ ] Please refer some similar discussions: Send a URL request from a stored procedure[^] Calling a URL from a stored procedure[^] How to execute a url in tsql stored procedure[^]

尝试以下操作: Try this: exec master..xp_cmdshell 'c:\progra~1\intern~1\iexplore.exe www.xyz'

根据计算机设置将路径更改为iexplore.exe

Change the path to iexplore.exe as per your machine setup

更多推荐

如何通过存储过程调用网页

本文发布于:2023-10-19 01:55:27,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:存储过程   网页

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!