Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running plsql scripts

Status
Not open for further replies.

oluwa

Programmer
Aug 29, 2002
12
CA
pls, how can i run plsql scripts in Vb. Thanks.
 
use the execute method of an ado connection.

dim cnn as adodb.connection
set cnn = new adodb.connection
cnn.connectionstring = "Provider=MSDAORA.1;Password=password;User ID=username;Data Source=myserver"
cnn.open

cnn.execute "myplsql;"
cnn.close
set cnn = nothing


hope this helps

Matt
 
or simply use The VB Function sendkeys and record all keys that you would use to log on to SQL*Plus and Execute your PL/SQL Scrip.
 
simply? Surley it is far easier to use ADO then to have to lauch an external program and send keypresses to it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top