VoiceGuide IVR Software Main Page
Jump to content

Vb Script To Query Db

Recommended Posts

Hi,

 

Is it posible to use VB Script module to perform the database query (currently I'm using db query module but many method could be better if we run DB query within VB Script), if so how to use recordset/row result on another module, a sample script will be appreciated

 

Thanks

Share this post


Link to post

For information on how to access databases from VBScript I'd recommend you read up on ADO objects (plenty of books on this available). This is a sample of how to insert data:

 

Set cnn = CreateObject("ADODB.Connection")

cnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\data\news.mdb"

cnn.Execute "INSERT INTO MyTable (Column1, Column2) VALUES (Value1, Value2);"

cnn.Close

Set cnn = Nothing

 

Te return data from VBScript back to VoiceGuide use the Run_ResultReturn COM function, see: http://www.voiceguide.com/vghelp/html/com_...esultReturn.htm

Share this post


Link to post

Hi,

 

Can I access the results with $RV[module title_RowCount] and

$RV[module title_ColumnIndex_RowIndex] if access databases from VBScript Module?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×