Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Executing statement and commiting statement via qtp
#7
Solved: 10 Years, 9 Months ago
Working solution is:

Code:
Dim oConn
Dim oCommand
Set oConn = CreateObject("ADODB.Connection")
Set oCommand = CreateObject("ADODB.Command")
oConn.Open "Driver={Microsoft ODBC for Oracle};Server=myserver.com;Uid=user;Pwd=pwd;"
oCommand.ActiveConnection = oConn
oCommand.CommandText = "STATEMENT"
oCommand.Execute
oConn.Close

See oCommand.CommandText line for modifications: exec word was removed.
Reply


Messages In This Thread
RE: Executing statement and commiting statement via qtp - by unbeliever - 01-07-2010, 07:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question adding two conditions into a while statement lotos 4 4,819 11-10-2017, 04:49 AM
Last Post: lotos
  Reading an amount from statement shipu 0 1,825 12-24-2013, 01:42 AM
Last Post: shipu
  executing qtp on a remote machine sujaravi123 4 4,504 08-02-2013, 01:22 PM
Last Post: sujaravi123
Exclamation Conditional Statement (If.......else) Unleash Rajesh 4 5,405 09-07-2011, 04:55 PM
Last Post: tarun
  correct use of OR statement lotos 2 2,674 06-02-2011, 02:52 PM
Last Post: lotos

Forum Jump:


Users browsing this thread: 1 Guest(s)