简体   繁体   English

VBscript从Sql Server 2008获取参数

[英]VBscript get parameters from Sql Server 2008

I need your help in the following situation: 在以下情况下,我需要您的帮助:
I'm developing an app with a Sql Server 2008 db in back-end. 我正在使用后端的Sql Server 2008数据库开发应用程序。
I want to store some URL's in the database and I put a button in my interface which should open these URL's. 我想将一些URL存储在数据库中,然后在界面中放置一个按钮以打开这些URL。
I want to code the button in VBscript but I'm a newbie in this language. 我想用VBscript编码按钮,但是我是这种语言的新手。
I found this code CreateObject("WScript.Shell").Run "\\\\195.234.22\\server\\docs" which works fine but I want to take the links from the database, I suppose that I should set some parameters but I have no idea how to do that. 我找到了这段代码CreateObject("WScript.Shell").Run "\\\\195.234.22\\server\\docs"可以正常工作,但是我想从数据库中获取链接,我想我应该设置一些参数,但是我有不知道该怎么做。
Thanks in advance! 提前致谢!

Well the way forward is to write a stored procedure to return the date you want from the database, then bind this to a grid template, you can then select the column control type as an html link. 好的方法是编写一个存储过程以从数据库中返回所需的日期,然后将其绑定到网格模板,然后可以选择列控件类型作为html链接。 You'll get a lot of extra goodies thrown in. 您会得到很多额外的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM