I need to migrate the data from different old databases to the new ones (created with IBExpert on Firebird 2.5). I'm using the FIBPlus components. Now I know that the old varchars and blob texts are in different character sets and collations(most of them WIN1252).
DBImport(database from which I get the data) has the following properties:
pFIBDBBase.DBName := path_to_the_database_file;
pFIBDBBase.ConnectParams.UserName := 'SYSDBA';
pFIBDBBase.ConnectParams.Password := 'masterkey';
pFIBDBBase.ConnectParams.CharSet := 'NONE';
pFIBDBBase.SQLDialect := 3;
DBNew(the new database)has the following properties:
pFIBDBSecond.ConnectParams.UserName := 'SYSDBA';
pFIBDBSecond.ConnectParams.Password := 'masterkey';
pFIBDBSecond.ConnectParams.CharSet := 'UTF8';
pFIBDBSecond.SQLDialect := 3;
I get fields definition by using the SQL provided by TOndrej here
In the new database the same fields are now UTF8.
My question is: if I am using FieldByName('etc').AsString to read from the old database, and ParamByName('etc').AsString to fill the new database, it is 100% that the string and text blob data are the same (regardless the DBImport field's charset)?