DIGIT-ARC read-only archive · snapshot: July 23, 2026

how to create table in oracle 8/8i from visual basic 6.0

3 posts · originally from https://geek.digit.in/community/threads/how-to-create-table-in-oracle-8-8i-from-visual-basic-6-0.17711/

vikasg03
vikasg03 Original post #1
Oct 28, 2005 at 5:04 PM
hy
i want to create table in oracle 8/8i from visual basic 6.0. is it possible
sachin_kothari
Oct 31, 2005 at 11:27 PM
Possible. You'll have to write a query to do so in the ADODB Recordset's Open property.

You can run any SQL query in a similar fashion
A
anusoni #3
Nov 5, 2005 at 7:25 PM
hi ! Okay here is the following

i am using the following assuming you have Microsoft ADO Data Objects seleted in your references.

Dim cnn as Adodb.Connection
set cnn=new adodb.connection
cnn.open "your connection properties and connection string"


the above command u created a new connection object and using the open method u connected successfully with ur database, i am assuming you know how to successfully make a connection with a database.

now that the connection is open, u can use the Execute method of the connection object to execute any SQL script ...something like :

cnn.execute " select * from address"

Now u must know the SQL command to create a table, that is done using CREATE TABLE. The simplified version of create table is

CREATE TABLE yourtablename (yourcolumn1 datatype,column2 datatype)

ofcourse this is the most basic SQL Statement, there are many options included in the CREATE TABLE statement but that would be very lengthy. For a complete tutorial on SQL you can go here:

Code:
*www.db.cs.ucdavis.edu/teaching/sqltutorial/

and download the pdf's if you want