Re: perl IF DBI::errsrt

From: Xaver Biton (javier_at_t-online.de)
Date: 06/12/04


Date: Sat, 12 Jun 2004 12:22:21 +0200

Kevin Collins wrote:
> In article <841xkms3lg.fsf@notvalid.se>, moller@notvalid.se wrote:
>
>>Xaver Biton <javier@t-online.de> writes:
>>
>>
>>>Hi,
>>>
>>>I'writing a program which will be used to migrate a mysql DB to
>>>another mysql DB.

>>In cases like this it's *almost* *always* better to use
>>the tools provided by the database.

>>>From webpage:
>>"The mysqldump client can be used to dump a database or a collection of
>> databases for backup or for transferring the data to another SQL server
>> (not necessarily a MySQL server). The dump will contain SQL statements
>> to create the table and/or populate the table. "
>>
>>Start reading here if interested.
>>http://dev.mysql.com/doc/mysql/en/mysqldump.html
>
Hi,

its not only a question of dumping and inserting, the big problem is
that the old DB was not normalized, the new db is normalized, so I've to
transform/process the data and insert other columnvalues, keysvalues,
names and I use a anderstandable name convention, so the best way is to
use perl for such work. I found The approach of Xho interesting, but
later I thought, that inserting the failed record in a error table its
not cleaver, because I've to create a new error table for each real
table, instead I tought that using a file in which will be written every
the message error ( row number and tablename) should be better.

what you think about?

Xaver



Relevant Pages

  • Re: Package fails "Cannot use a CONTAINS or FREETEXT predicate"
    ... How are you transferring the data? ... Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) ... > database is working fine. ... This DTS package used to work fine for a long ...
    (microsoft.public.sqlserver.replication)
  • Re: Package fails "Cannot use a CONTAINS or FREETEXT predicate"
    ... How are you transferring the data? ... Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) ... > database is working fine. ... This DTS package used to work fine for a long ...
    (microsoft.public.sqlserver.dts)
  • Image fields in SQL Server 2000 / CE
    ... server database, and transferring them to an SQL Server CE 2.0 database on a ... a logo image in the main SQL server database by converting it to a byte ... Dim daLogo As New SqlDataAdapter ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: tadotable.insert
    ... > I wonder what will happend to the final table when doing an inserting in ... Please do not imagine a beginning, middle or end of a table. ... But most database management systems will definitely not move all the ... documented e.g. in MS SQL Server 2005 Abridged BOL, ...
    (borland.public.delphi.database.ado)
  • RE: Date conversion
    ... SQL Server always stores date and time together. ... convert the date before inserting into table using one of the styles ... > I have a database with a date field 'StartDate' as smalldatetime. ...
    (microsoft.public.sqlserver.programming)

Loading