简体   繁体   中英

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.
I want to store some URL's in the database and I put a button in my interface which should open these URL's.
I want to code the button in VBscript but I'm a newbie in this language.
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.
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. You'll get a lot of extra goodies thrown in.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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