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
  #4  
Antiguo 04-12-2007
Avatar de Lepe
[Lepe] Lepe is offline
Miembro Premium
 
Registrado: may 2003
Posts: 7.424
Poder: 31
Lepe Va por buen camino
Y vamos a la página 67 para una correcta migración de los datos:
Cita:
Empezado por datadef.pdf
1. Back up your original database. Read the “migration” chapter in Getting
Started to determine what preparations you need to make before migrating
the database. Typically, this includes detecting metadata that uses double
quotes around strings. After making necessary preparations, back up the
database using its current GBAK version and restore it using InterBase 6.
2. Use gfix -set_db_SQL_dialect 3 to change the database to dialect 3
3. Use the ALTER COLUMN clause of the ALTER DATABASE statement to change the
name of each affected column to something different from its original name.
If column position is going to be an issue with any of your clients, use ALTER
COLUMN to change the positions as well.
4. Create a new column for each one that you are migrating. Use the original
column names and if necessary, positions. Declare each one as a DECIMAL or
NUMERIC with precision greater than 9
.
5. Use UPDATE to copy the data from each old column to its corresponding new
column:
UPDATE tablename
SET new_col_name = old_col_name;
6. Check that your data has been successfully copied to the new columns and
drop the old columns.
Note If you are migrating exact numeric columns to a dialect 1 database in InterBase 6,
no special steps are needed. A dialect 1 database in InterBase 6 behaves just like an
InterBase 5 database. Dialect 1 is an old standard, however, and will eventually not be
supported by InterBase.
Saludos
__________________
Si usted entendió mi comentario, contácteme y gustosamente,
se lo volveré a explicar hasta que no lo entienda, Gracias.

Última edición por Lepe fecha: 04-12-2007 a las 17:58:54.
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
cual seria el costo de iniciar firebird desde cero gmontes La Taberna 3 15-05-2007 00:58:13
Como conectarme a una base de datos hecha en firebird? JuanErasmo .NET 5 30-12-2006 18:13:03
Firebird, ¿he hecho lo correcto? kovaski Firebird e Interbase 4 03-10-2006 21:18:17
cual seria el componente correcto? DM2005 Varios 0 04-07-2006 21:55:39
cual seria la mas adecuado base de datos... ronimaxh Firebird e Interbase 8 23-04-2004 17:47:15


La franja horaria es GMT +2. Ahora son las 03:14:13.


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