Created
June 10, 2012 14:27
-
-
Save cx20/2905910 to your computer and use it in GitHub Desktop.
Hello, oo4o World! (VBScript + oo4o + Oracle)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Call Main() | |
Sub Main() | |
Dim ses | |
Dim db | |
Dim rs | |
Set ses = CreateObject("OracleInProcServer.XOraSession") | |
Set db = ses.OpenDatabase( "", "scott/tiger", 0 ) | |
Set rs = db.CreateDynaset( "SELECT 'Hello, oo4o World!' AS Message FROM DUAL", 4) | |
While NOT rs.EOF | |
WScript.Echo rs(0).Name | |
WScript.Echo "------------------" | |
WScript.Echo rs(0).Value | |
rs.MoveNext | |
Wend | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment