Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Bases de datos > Firebird e Interbase
Registrarse FAQ Miembros Calendario Guía de estilo Buscar Temas de Hoy Marcar Foros Como Leídos

 
 
Herramientas Buscar en Tema Desplegado
  #5  
Antiguo 22-04-2010
jourdan jourdan is offline
Miembro
 
Registrado: may 2003
Ubicación: Mexico
Posts: 165
Poder: 24
jourdan Va por buen camino
Encontre esta información, esta en ingles por si a alguien le sirve:


create InterBase stored procedures in my InterBase database using Delphi

Problem:
Can I create InterBase stored procedures in my InterBase database using Delphi or C++ Builder?

Solution:
*******************************************************
This document refers to:
* InterBase versions 4.X and above.
*******************************************************

Yes, you can create stored procedures via Delphi. You can use the TQuery component to pass the
SQL statements needed to create the stored procedure on the InterBase server. One caveat you
will want to be aware of is that you need to have two colons in front of memory variables instead of
one when you call the stored procedure.

Listed below are steps to create an example of defining stored Procedures via Delphi or C++ Builder:

1. Select File | New Application from the menu.
--This will bring up a new application with a blank form.

2. Click on the button icon on the standard tab of the component
palette.

3. Click on the "Data Access" tab.

4. Click on the Query icon.

5. Hit to bring up the Object Inspector.

6. Set the DatabaseName property to your InterBase alias.

7. Click on the three dots in the space next to the "SQL" property.

8. You can now enter the text of your stored procedure.

9. Type in the text of the stored procedure definition code:

create procedure myproc returns (a integer)
as
begin
a=5;
end

10. After you have entered the code for your stored procedure,
click on the button.

11. Next, you will need to tell Delphi to run your stored
procedure code. To that, do the steps listed below:
a. Click on the button.
b. Hit to bring up the Object Inspector.
c. Click on the Events tab.
d. DoubleClick on the space next to "OnClick"
e. Enter in the following code after the line
with the word 'begin' on it:
query1.execSQL;

12. Push to run the program.
__________________
Alejandro Jourdan
Responder Con Cita
 


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Como Crear una base de datos Firebird desde delphi pmtzg Firebird e Interbase 14 08-06-2008 07:03:15
crear Stored Procedure desde delphi Milperrimo Firebird e Interbase 4 03-02-2008 18:52:53
Crear DB Firebird desde delphi totote Conexión con bases de datos 3 27-12-2007 02:25:17
uso desde delphi de un procedure de IB Giniromero Conexión con bases de datos 2 15-04-2004 11:00:24
Crear una BD Firebird desde Condigo delphi hibero Conexión con bases de datos 3 17-11-2003 14:52:40


La franja horaria es GMT +2. Ahora son las 03:37:52.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi