Board index » delphi » DbExpress and Table primary key fields

DbExpress and Table primary key fields

Hi

How I can figure table primary key (fields) with delphi 6, interbase 6 and
dbExpress ?
Is there good dbExpress support for Sybase ASE 12.0 ? And does that primary
key 'query' work there too ?

Thanks

Janne

 

Re:DbExpress and Table primary key fields


Hello, Janne.

Quote
> Is there good dbExpress support for Sybase ASE 12.0 ?

Support is on the way.

You can find dbExpress driver for Sybase ASE here
http://www.visoco.com.

Quote
> And does that primary key 'query' work there too ?

Simply execute 'alter table <table_name> add constraint <constraint_name>
primary key (<fields>)'

Best regards,
VISOCO Support team
supp...@visoco.com
http://www.visoco.com

Re:DbExpress and Table primary key fields


Are you asking how to create a primary key on an existing InterBase
table? If so, use the SQL ALTER TABLE command to add a primary key
constraint.

On Tue, 2 Jul 2002 17:29:11 +0300, "Janne Hamalainen"

Quote
<hamalainenNoS...@luukku.com> wrote:
>Hi

>How I can figure table primary key (fields) with delphi 6, interbase 6 and
>dbExpress ?
>Is there good dbExpress support for Sybase ASE 12.0 ? And does that primary
>key 'query' work there too ?

>Thanks

>Janne

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)

Re:DbExpress and Table primary key fields


No. I try to get primary fields from existing Interbase/Sybase-table.
Quote
"Bill Todd" <b...@notthis.dbginc.com> wrote in message

news:o0c4iu072e8v9a7hj1g43oneuinn2dt97m@4ax.com...
Quote
> Are you asking how to create a primary key on an existing InterBase
> table? If so, use the SQL ALTER TABLE command to add a primary key
> constraint.

> On Tue, 2 Jul 2002 17:29:11 +0300, "Janne Hamalainen"
> <hamalainenNoS...@luukku.com> wrote:

> >Hi

> >How I can figure table primary key (fields) with delphi 6, interbase 6
and
> >dbExpress ?
> >Is there good dbExpress support for Sybase ASE 12.0 ? And does that
primary
> >key 'query' work there too ?

> >Thanks

> >Janne

> --
> Bill (TeamB)
> (TeamB cannot respond to questions received via email)

Re:DbExpress and Table primary key fields


For InterBase you need to query the system tables. See chapter 7 of
the Language Reference and look at RDB$RELATION_CONSTRAINTS and
RDB$INDEX_SEGMENTS. I do not know about Sybase.

On Wed, 3 Jul 2002 08:19:42 +0300, "Janne Hamalainen"

Quote
<hamalainenNoS...@luukku.com> wrote:
>No. I try to get primary fields from existing Interbase/Sybase-table.
>"Bill Todd" <b...@notthis.dbginc.com> wrote in message
>news:o0c4iu072e8v9a7hj1g43oneuinn2dt97m@4ax.com...
>> Are you asking how to create a primary key on an existing InterBase
>> table? If so, use the SQL ALTER TABLE command to add a primary key
>> constraint.

>> On Tue, 2 Jul 2002 17:29:11 +0300, "Janne Hamalainen"
>> <hamalainenNoS...@luukku.com> wrote:

>> >Hi

>> >How I can figure table primary key (fields) with delphi 6, interbase 6
>and
>> >dbExpress ?
>> >Is there good dbExpress support for Sybase ASE 12.0 ? And does that
>primary
>> >key 'query' work there too ?

>> >Thanks

>> >Janne

>> --
>> Bill (TeamB)
>> (TeamB cannot respond to questions received via email)

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)

Other Threads