dbTalk Databases Forums  

VB ODBC SQL Advice

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss VB ODBC SQL Advice in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
TS
 
Posts: n/a

Default VB ODBC SQL Advice - 10-10-2003 , 07:56 PM






Posted on orafaq as well...

I am working on an _existing_ VB App connecting to an Oracle database (JBA)
via ODBC and just wanted to be sure I understand the syntax.

The SQL statement is executing is:

SELECT OSLPDF3.MSWRKHDR.*, OSLD1F3.PARTS.* FROM ...
.... WHERE OSLPDF3.MSWRKHDR.CONO40 = 'D1' ...

Is this just [database].[table].[field]?

Do you need to reference the database if the tables are unique across the
ODBC?

Thanks
Ken



Reply With Quote
  #2  
Old   
tojo
 
Posts: n/a

Default Re: VB ODBC SQL Advice - 10-13-2003 , 02:12 AM






In article <0zIhb.398$ca2.971335 (AT) newsfep1-win (DOT) server.ntli.net>,
twoshovel (AT) yahoo (DOT) co.ku says...
Quote:
Posted on orafaq as well...

I am working on an _existing_ VB App connecting to an Oracle database (JBA)
via ODBC and just wanted to be sure I understand the syntax.

The SQL statement is executing is:

SELECT OSLPDF3.MSWRKHDR.*, OSLD1F3.PARTS.* FROM ...
... WHERE OSLPDF3.MSWRKHDR.CONO40 = 'D1' ...

Is this just [database].[table].[field]?

Do you need to reference the database if the tables are unique across the
ODBC?

Thanks
Ken



If the tables are not owned by the user connecting to Oracle, then yes
you have to specify the "database" (in fact this is called the
"schema"). Search google groups for "public synonym" and "schema" if you
don't want to specify schemas every time.

-- Tom


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.