Subversion Repositories DevTools

Rev

Rev 5513 | Rev 5955 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5513 Rev 5517
Line 758... Line 758...
758
    On Error Resume Next
758
    On Error Resume Next
759
    Set OOrsCQ = OraDatabase.DbCreateDynaset( SSsql, cint(0))
759
    Set OOrsCQ = OraDatabase.DbCreateDynaset( SSsql, cint(0))
760
 
760
 
761
End Sub
761
End Sub
762
'-----------------------------------------------------------------------------------------------------------------------------
762
'-----------------------------------------------------------------------------------------------------------------------------
-
 
763
'   Create a Windows scripting object and set special EnvVars to allow the script to access the oracle database
-
 
764
'   Export connection credentials as EnvVars. This is better than hard coding them
-
 
765
'   Returns an object
-
 
766
Function createWscriptShell()
-
 
767
    Dim wshSystemEnv, objWSH
-
 
768
 
-
 
769
    Set objWSH = Server.CreateObject("WScript.Shell")
-
 
770
 
-
 
771
    '   Set EnvVars
-
 
772
    Set wshSystemEnv = objWSH.Environment( "Process" )
-
 
773
    wshSystemEnv("ORA_DATABASE") = Application("TNS_NAME")
-
 
774
    wshSystemEnv("ORA_CONNECTION") = Application("DEPLOYMENT_MANAGER_LOGIN")
-
 
775
 
-
 
776
    Set createWscriptShell = objWSH
-
 
777
    Set wshSystemEnv = nothing
-
 
778
    Set objWSH = nothing
-
 
779
 
-
 
780
End Function
763
%>
781
%>