Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. Here is my code:
  2.  
  3.  
  4.  
  5. Set objConnection = CreateObject("ADODB.Connection")
  6. Set objRecordSet = CreateObject("ADODB.Recordset")
  7. objConnection.open "Driver=oracle in oracle-odbc;" & "Data
  8. Source=ORADSN;" & "Server=192.168.1.157;" & "User Id=system;" &
  9. "Password=sa123"
  10. 'objConnection.open "provider=MSDAORA;Server=localhost;User Id=u2;
  11. Password=u2; Database=IBL_AUTO;Trusted_Connection=Yes"
  12. sqlQuery2 = "select 23+2 from dual;"
  13. objRecordSet.open sqlQuery2,objConnection
  14. value2 = objRecordSet.fields.item(0)
  15. Msgbox(value2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement