473,383 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Accessing Oracle Tables from MS Access

How difficult is this? I'm having a tough time getting a simple select to
work.

I am using MS Access 2002 and Windows XP.
What do I have to do to make a simple select statement like this work:

select id from emp
I have stumbled upon many websites although none straight to the point.
Any help in how to get this done, or pointing me in the right direction of a
book or website, would be greatly appreciated!
berj
Nov 13 '05 #1
8 2323
The easiest way is to link the table in Access, then query the link. Is that
how you're trying to do it?

On Mon, 28 Feb 2005 21:25:36 -0800, "berj" <be**@adelphia.net> wrote:
How difficult is this? I'm having a tough time getting a simple select to
work.

I am using MS Access 2002 and Windows XP.
What do I have to do to make a simple select statement like this work:

select id from emp
I have stumbled upon many websites although none straight to the point.
Any help in how to get this done, or pointing me in the right direction of a
book or website, would be greatly appreciated!
berj


Nov 13 '05 #2
Yes, I do have the table links working.

But I did want to run the select for such things as grabbing the next number
off of a sequence. As in:

select test.nextval from dual;
Where "test" is the name of an Oracle sequence.

berj
"Steve Jorgensen" <no****@nospam.nospam> wrote in message
news:bp********************************@4ax.com...
The easiest way is to link the table in Access, then query the link. Is that how you're trying to do it?

On Mon, 28 Feb 2005 21:25:36 -0800, "berj" <be**@adelphia.net> wrote:
How difficult is this? I'm having a tough time getting a simple select towork.

I am using MS Access 2002 and Windows XP.
What do I have to do to make a simple select statement like this work:

select id from emp
I have stumbled upon many websites although none straight to the point.
Any help in how to get this done, or pointing me in the right direction of abook or website, would be greatly appreciated!
berj

Nov 13 '05 #3
Access does not deal directly with sequences, so you'll have to use a
pass-through query. You should be able to simply type your statement into the
pass-through query, set the query's connection property to point to the
server, and run it.

On Mon, 28 Feb 2005 21:48:41 -0800, "berj" <be**@adelphia.net> wrote:
Yes, I do have the table links working.

But I did want to run the select for such things as grabbing the next number
off of a sequence. As in:

select test.nextval from dual;
Where "test" is the name of an Oracle sequence.

berj
"Steve Jorgensen" <no****@nospam.nospam> wrote in message
news:bp********************************@4ax.com.. .
The easiest way is to link the table in Access, then query the link. Is

that
how you're trying to do it?

On Mon, 28 Feb 2005 21:25:36 -0800, "berj" <be**@adelphia.net> wrote:
>How difficult is this? I'm having a tough time getting a simple selectto >work.
>
>I am using MS Access 2002 and Windows XP.
>
>
>What do I have to do to make a simple select statement like this work:
>
>select id from emp
>
>
>I have stumbled upon many websites although none straight to the point.
>
>
>Any help in how to get this done, or pointing me in the right directionof a >book or website, would be greatly appreciated!
>
>
>berj
>


Nov 13 '05 #4
how?

"Steve Jorgensen" <no****@nospam.nospam> wrote in message
news:li********************************@4ax.com...
Access does not deal directly with sequences, so you'll have to use a
pass-through query. You should be able to simply type your statement into the pass-through query, set the query's connection property to point to the
server, and run it.

On Mon, 28 Feb 2005 21:48:41 -0800, "berj" <be**@adelphia.net> wrote:
Yes, I do have the table links working.

But I did want to run the select for such things as grabbing the next numberoff of a sequence. As in:

select test.nextval from dual;
Where "test" is the name of an Oracle sequence.

berj
"Steve Jorgensen" <no****@nospam.nospam> wrote in message
news:bp********************************@4ax.com.. .
The easiest way is to link the table in Access, then query the link. Is
that
how you're trying to do it?

On Mon, 28 Feb 2005 21:25:36 -0800, "berj" <be**@adelphia.net> wrote:

>How difficult is this? I'm having a tough time getting a simple
selectto
>work.
>
>I am using MS Access 2002 and Windows XP.
>
>
>What do I have to do to make a simple select statement like this work:
>
>select id from emp
>
>
>I have stumbled upon many websites although none straight to the
point. >
>
>Any help in how to get this done, or pointing me in the right

directionof a
>book or website, would be greatly appreciated!
>
>
>berj
>

Nov 13 '05 #5
berj wrote:
how?


Open a new query in design view.

Close the Show table window without picking any tables/queries

On menus, cLick on Query->SQL SPecific->PAss-through

The query is now in SQL view (the white background)

Assign the DSN connection: click View->Properties, if the properties
window is not visible

On the query properties window, there is aq property called ODBC COnnect
str. CLick the builder button and select the DSN just as you would for
making a linked table.

Now, type in Select Sequence_name.nextval from dual (do not use the semi
colon - Oracle is very picky about semi colons and they are not required
in select statements).

Run the query and you advance the sequence by one or whatever your
interval is.

YOu can also use the above method to run many SQL commands.

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #6
Tim Marshall <TI****@PurplePandaChasers.Moertherium> wrote:
Oracle is very picky about semi colons and they are not required
in select statements


Presumably you mean just in Access SQL statements? They're certainly
needed in SQLplus.
Nov 13 '05 #7
Grumpy Old Man wrote:
Tim Marshall <TI****@PurplePandaChasers.Moertherium> wrote:

Oracle is very picky about semi colons and they are not required
in select statements

Presumably you mean just in Access SQL statements? They're certainly
needed in SQLplus.


Actually Grumpy, for select, insert, delete, update statements, they are
not. 8)

They are only required in SQL Plus if you don't want to have to press
the / key to execute. The semi-colon will execute an SQL Plus (and
presumeably TOAD, though I've never played with TOAD - and no frog jokes
please!!! 8) ) on pressing enter. Otherwise, you need to execute the
statement with the back slash.

I've had difficulty when including a semi colon in a pass through query
because Oracle doesn't know what to do with it when the statement is
passed directly to it this way. It's been a few years, but IIRC, it
returned an invalid character error in Oracle trandsferred to Access.

My understanding is the semi-colon acts as the terminator for PL/SQL
code. I am pretty shaky on PL/SQL, though, but this is what I've
divined from my Oracle DBA and comp.databases.Oracle.*
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #8
Tim Marshall <TI****@PurplePandaChasers.Moertherium> wrote:
Actually Grumpy, for select, insert, delete, update statements, they are
not. 8)

They are only required in SQL Plus if you don't want to have to press
the / key to execute.


That was my understanding, thanks for the clarification.

Keith.
Nov 13 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jon Ole Hedne | last post by:
My Access 2002-application need to work with tables from both Oracle and Access. To solve this, I want to run some querys on three views in Oracle and import the results into temporary...
10
by: Andrea M. Segovia | last post by:
Hello, I am a newbie to Oracle databases.... We have a visualization front-end tool connected to an Oracle back-end database on a Tru64 UNIX server. We also have clients with MS access...
1
by: Andrew Arace | last post by:
I scoured the groups for some hands on code to perform the menial task of exporting table data from an Access 2000 database to Oracle database (in this case, it was oracle 8i but i'm assuming this...
5
by: berj | last post by:
Is it possible to access an Oracle sequence by using ODBC in MS Access? I have been able to link to the Oracle tables, but need autonumbering and I am not able to change the column properties. ...
9
by: AnandaSim | last post by:
Hi All, I've had Access 97, 2000 connections to the corporate Oracle database for a few years now - but seldom use it. When I did use it years ago, performance was not fast but the features were...
2
by: egoldthwait | last post by:
I need to convert a 17mb access 2000 db to Oracle and house it in a Citrix farm. The issue: we have never converted an Access Db to Oracle but can probably use Oracle's Workbench to assist with...
4
by: Mark D Powell | last post by:
We are running SQL Server 2000 SP3. We have linked servers in use that we use to access Oracle tables. Recently the claim has been made that you can access Oracle tables from within SQL Server...
5
by: jonceramic | last post by:
Hi All, I started developing in Access, and people took notice and so we're starting to migrate into our corporate's bigger Oracle system. I'll still be using my developed Access front ends,...
17
by: aquablade | last post by:
I have an Oracle 10g R2 database where my ERP transactions reside. I'm using MS Access to grant access to my power users where I use MS Access' Link Tables to provide direct access. I noticed that...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.