Skip to content

Instantly share code, notes, and snippets.

@cx20
Created June 10, 2012 13:47
Show Gist options
  • Save cx20/2905702 to your computer and use it in GitHub Desktop.
Save cx20/2905702 to your computer and use it in GitHub Desktop.
Hello, Jet Database World! (VBScript + ADO + OLEDB + Jet)
Set cn = CreateObject("ADODB.Connection")
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Hello.mdb"
Set rs = cn.Execute("SELECT 'Hello, Jet Database World!' AS Message")
WScript.Echo rs(0).Name
WScript.Echo "--------------------------"
WScript.Echo rs(0).Value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment