Re: Oracle schema
From: David Lewis (davidl_at_ocuco.com)
Date: 05/24/04
- Next message: Jeremy: "Re: Problem using tadostoredproc.parameters.createparameter"
- Previous message: Troy Wolbrink: "Re: ADODataset & Unicode Memo field"
- In reply to: Francois Piette: "Oracle schema"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 24 May 2004 17:35:52 +0100
How many queries are we talking about here ? If this is a job you only have
to do once because you are converting databases, then you can significantly
cut down the time it takes by editing the DFM text directly and do a search
and replace - everywhere you have "FROM " you substitute "FROM MYSCHEMA.".
That would catch many instances, then just do a search for "SQL.Strings ="
and manually check and modify the ones that couldn't be caught by the
substitution. You will also have to put the schema name into the TTable
TableName and IndexName properties.
"Francois Piette" <francois.piette@overbyte.be> wrote in message
news:40b1b76d@newsgroups.borland.com...
> Is there a way to specify a default schema when querying an Oracle
database
> with a ADO component ?
>
> I have an application to convert to Oracle database. In the original
> application, all SQL queries doesn't qualify table names. To convert to
the
> Oracle database, I have to edit all queries to qualify all table names
with
> schema.
> Example:
> Original: SELECT * FROM MYTABLE
> Conversion: SELECT * FROM MYSCHEMA.MYTABLE
>
> This is a lot of work given the large number of queries. I would spare a
lot
> of time only if I could specify "MYSCHEMA" as default value !
>
> If it makes a difference, the application is using Delphi 7.01,
> TAdoConnection, TAdoQuery, Oracle 9 client and Oracle 8 database.
>
> Any advice appreciated.
>
> --
> francois.piette@overbyte.be
> Author of ICS (Internet Component Suite, freeware)
> Author of MidWare (Multi-tier framework, freeware)
> http://www.overbyte.be
>
>
- Next message: Jeremy: "Re: Problem using tadostoredproc.parameters.createparameter"
- Previous message: Troy Wolbrink: "Re: ADODataset & Unicode Memo field"
- In reply to: Francois Piette: "Oracle schema"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|