0

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!

1
  • What have you tried so far? There is a basic example of connecting to SQL Server here, although it's for an UPDATE instead of a SELECT. There are plenty of examples of connecting to SQL Server from VBScript on the web, so it might be good if you can be more precise about what your problem is. Commented Jan 16, 2013 at 18:02

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.