Idea of SQL integration



After almost full-time DB programming, I was thinking about how to integrate
RDBMS & Delphi. I am wondering why isn't possible to solve this issues like
compiler directive e.g. ASM. We all know that there is no general solution
for multiple DB vendors (sas for multiple CPU-s too).
Isn't just a great idea like this:
function _countCustomers( sCustID :string) : integer;
begin
Result := 0;
if sCustID = '' then
Exit;
TSQL:_Conn{ -- directive for MS SQL ( _Conn is link for
connection)
declare @sCustType varchar(20) -- internal variables are
declared as standard {@VarName}
select @sCustType = CustType from Customers where CustID =
stID -- external variables from are declared in delphi style {:VarName}
set :Result = (select count(*) from Customers where CustType =
@sCustType
}
end

Extension to this would be debugger integration. (I know that this is
possible to solve using standard comand objects, etc, but I am sick of
declaring and creating them all the time
What do you think?

Frenk


.



Relevant Pages

  • Re: Idea of SQL integration
    ... integrate RDBMS & Delphi. ... is no general solution for multiple DB vendors (sas for multiple CPU-s ... declaring and creating them all the time ...
    (borland.public.delphi.non-technical)
  • Re: Idea of SQL integration
    ... is no general solution for multiple DB vendors (sas for multiple CPU-s ... @sCustType ... declaring and creating them all the time ...
    (borland.public.delphi.non-technical)
  • Re: Idea of SQL integration
    ... general solution for multiple DB vendors (sas for multiple CPU-s too). ... external variables from are declared in delphi style ... declaring and creating them all the time ...
    (borland.public.delphi.non-technical)
  • Re: "with" Coders are Monsters
    ... typing or declaring a temporary variable. ... In Turbo Pascal and Delphi 1 times, ... time and have perfected the art of using them only in very specific ...
    (borland.public.delphi.non-technical)
  • Re: "with" Coders are Monsters
    ... Thomas Mueller wrote: ... typing or declaring a temporary variable. ... In Turbo Pascal and Delphi 1 times, ...
    (borland.public.delphi.non-technical)