Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Executing statement and commiting statement via qtp
#5
Solved: 11 Years, 3 Months, 3 Weeks ago
Actually there can be a problem, sql statements which are executable in SQL Plus require different syntax in SQL Developer, otherwise - cannot be executed and result in exactly the same manner: Invalid SQL statement.

For example:
- in SQL Plus I execute statement like this: exec statement
- in SQL Developer I wrap statement:
Code:
begin;
exec statement
end;

As for my current code it's below:

Code:
Dim oConn
Dim strConn
Dim strQuery

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


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

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

Forum Jump:


Users browsing this thread: 3 Guest(s)