Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion excel to oracle
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tim B  
View profile  
 More options Oct 8 2007, 1:37 pm
Newsgroups: comp.databases.oracle.misc
From: "Tim B" <nos...@someisp.ca>
Date: Mon, 08 Oct 2007 17:37:03 GMT
Local: Mon, Oct 8 2007 1:37 pm
Subject: Re: excel to oracle

"Charles Hooper" <hooperc2...@yahoo.com> wrote in message

news:1191669293.305305.13870@o80g2000hse.googlegroups.com...

> On Oct 5, 9:16 pm, "Tim B" <nos...@someisp.ca> wrote:
> > "Charles Hooper" <hooperc2...@yahoo.com> wrote in message

> > news:1191597379.577870.194270@r29g2000hsg.googlegroups.com...
> > > On Oct 5, 10:37 am, "Tim B" <nos...@someisp.ca> wrote:
> > > > I have some data in an Excel spreadsheet - about 100 -200 records -
that
> > I
> > > > need to import into Oracle, likely with some transformation
required. I
> > can
> > > > convert it to csv or xml via MS Access and then set it up as an
external
> > > > table and proceed from there. What other ways could you suggest that
> > might
> > > > be feasible for this task? Is there another way to do it with xml as
the
> > > > source?

> > > If you have Access, the easiest way to do this is to:
> > > 1. Connect to the Excel spreadsheet as an external table source in
> > > Excel
> > > 2. Create a query in Access to retrieve all rows from the Excel
> > > spreadsheet and rename the columns so that they match the Oracle
> > > table.
> > > 3. Create an external table source connection to the Oracle table
> > > (through an ODBC connection).
> > > 4. Modify the query definition so that it is an append query, and
> > > select the connection to the Oracle table.
> > > 5. Run the query.

> > > Much easier than it is to explain.

> > Well, today I found out that for every record I import from my
spreadsheet I
> > will need to add a record to an additional table, and I'll have to deal
with
> > a couple of sequences. What I'm likely going to do is import the
spreadsheet
> > into Access and use some VBA to read the records, create the needed
insert
> > statements, and save them to a text file. I'll keep your solution in
mind
> > for when  I have a more straightforward import to do. Thanks.

> > Tim B

> Expanding on a suggestion by Malcolm Dew-Jones - just do it all in
> Excel.  Following is a code sample that I produced a while ago to show
> someone how to select from and update an Oracle database based on the
> values in an Excel spreadsheet.  Word wrapping will make this a little
> ugly, but each line is indented, so it should be easy to undo the word
> wrapping.

> Macro security must be medium or low to access the macro.  The macro
> code looks like this:

<snip useful code example>
Thanks for the example code, it will save me some time if  end up doing it
all in Excel.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.