Board index » delphi » Delphi4 with ORACLE, MSSQL and SYSBASE simultanously

Delphi4 with ORACLE, MSSQL and SYSBASE simultanously

Hi !

I have an application that already support SYBASE and MSSQL 6.5 and
MSSQL 7.
Now, this application must also support ORACLE (New for me).

I know that a Number(6,0) is supposed to be an integer.

Delphi seems to declare NUMBER(6,0) as a TFloatField the probleme is
that the TField is already declared as a TIntegerField to support MSSQL
and SYBASE.
An error that meens "Waiting for an INTEGER but FLOAT was find" occurs
when I open my query, which is normal.

Question : How can I force delphi to declare a TIntegerField when a
NUMBER(6,0) is declared in ORACLE ?

 

Re:Delphi4 with ORACLE, MSSQL and SYSBASE simultanously


Fran?ois Morin <fra...@interlinx.qc.ca> ??? a
????:3A25BD9F.F4C41...@interlinx.qc.ca...

Quote
> Hi !

> I have an application that already support SYBASE and MSSQL 6.5 and
> MSSQL 7.
> Now, this application must also support ORACLE (New for me).

> I know that a Number(6,0) is supposed to be an integer.

> Delphi seems to declare NUMBER(6,0) as a TFloatField the probleme is
> that the TField is already declared as a TIntegerField to support MSSQL
> and SYBASE.

> An error that meens "Waiting for an INTEGER but FLOAT was find" occurs
> when I open my query, which is normal.

> Question : How can I force delphi to declare a TIntegerField when a
> NUMBER(6,0) is declared in ORACLE ?

Hi!
Set parameter ENABLE INTEGERS to TRUE in your Oracle alias. Unfortunaly only
Oracle SQL Link has this parameter. I didn't find anything like one in
another Oracle ODBC drivers. That is why I think you have to use only Oracle
SQL Link. It's very large limitation but you haven't other choice.

Regards. Lusha.

Re:Delphi4 with ORACLE, MSSQL and SYSBASE simultanously


Fran?ois Morin <fra...@interlinx.qc.ca> ??? a
????:3A25BD9F.F4C41...@interlinx.qc.ca...

Quote
> Hi !

> I have an application that already support SYBASE and MSSQL 6.5 and
> MSSQL 7.
> Now, this application must also support ORACLE (New for me).

> I know that a Number(6,0) is supposed to be an integer.

> Delphi seems to declare NUMBER(6,0) as a TFloatField the probleme is
> that the TField is already declared as a TIntegerField to support MSSQL
> and SYBASE.

> An error that meens "Waiting for an INTEGER but FLOAT was find" occurs
> when I open my query, which is normal.

> Question : How can I force delphi to declare a TIntegerField when a
> NUMBER(6,0) is declared in ORACLE ?

Hi!
Set parameter ENABLE INTEGERS to TRUE in your Oracle alias. Unfortunaly only
Oracle SQL Link has this parameter. I didn't find anything like one in
another Oracle ODBC drivers. That is why I think you have to use only Oracle
SQL Link. It's very large limitation but you haven't other choice.

Regards. Lusha.

Re:Delphi4 with ORACLE, MSSQL and SYSBASE simultanously


Thank you !
  I think I will be able to do something with that.

Quote
Lusha wrote:
> Fran?ois Morin <fra...@interlinx.qc.ca> ??? a
> ????:3A25BD9F.F4C41...@interlinx.qc.ca...

>> Hi !

>> I have an application that already support SYBASE and MSSQL 6.5 and
>> MSSQL 7.
>> Now, this application must also support ORACLE (New for me).

>> I know that a Number(6,0) is supposed to be an integer.

>> Delphi seems to declare NUMBER(6,0) as a TFloatField the probleme is
>> that the TField is already declared as a TIntegerField to support MSSQL
>> and SYBASE.

>> An error that meens "Waiting for an INTEGER but FLOAT was find" occurs
>> when I open my query, which is normal.

>> Question : How can I force delphi to declare a TIntegerField when a
>> NUMBER(6,0) is declared in ORACLE ?

> Hi!
> Set parameter ENABLE INTEGERS to TRUE in your Oracle alias. Unfortunaly only
> Oracle SQL Link has this parameter. I didn't find anything like one in
> another Oracle ODBC drivers. That is why I

Other Threads