SSMS results as a clickable link

大憨熊 提交于 2019-12-02 02:46:35

问题


I am fairly new to SQL and I have looked around to see if i could find a way to do this if it is possible

Here is my SQL query text:

SELECT *, 
CONCAT('https://domain:8080/analyzer?sipid=',SIPCallId,'&cmd=GetAnswerWAV') 'FaxScope: Inbound Audio (WAV) Link',

The result:

https://domain:8080/analyzer?sipid=b38f9368905eadc713c42d5894512203898221635dac1a50e70-0084-7302&cmd=GetAnswerWAV

In the SQL Query results, I have to copy/paste the url into a web browser to get the data this link should provide.

Is this possible to have the SQL result be a clickable link itself?


回答1:


While I'm not certain if it's possible to have the results window push through to a browser window, you can declare the result of your query to be for xml path. this will push the URL into a new session in the query window from which you should be able to ctrl+click through to the embedded SSMS browser.

declare @url varchar( 255 )

select @url = 'http://www.google.com' -- your query here

select @url for xml path



回答2:


Yes it is possible using SSMS Boost plugin: Results Grid data Visualizers

Then you could select appropriate application(web browser) and allow for opening a new webpage.



来源:https://stackoverflow.com/questions/32703540/ssms-results-as-a-clickable-link

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!