[V4MD] Loaddump and error 2

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Oct 1 15:19:48 CDT 2003


on 10/1/03 3:13 PM, Steven Ophalvens at silversoft at skynet.be wrote:

Hi Steven,

> I made an input tool for a client, that has worked for
> about 2 weeks, but now they have a corrupt DB.
> 
> I tried to dump / Loaddump as an XML file, but I can not
> get the LoadDump part to work. I get 'an error 2'.
> 
> Does anyone have any idea what I am doing wrong here?
> 
> -------------------------------
> -------------------------------
> on LoadDump Kind
> 
> ValentinaInit(4 * 1024 * 1024, MacValSerial, WinValSerial)
> ValentinaDebugLevel(2)
> 
> lValDB = new(xtra "VDataBase")
> lValDB.setStructureEncryption(mCreateDatabasePWD())
> lValDB.OpenDatabase(the moviePath & "rkvdb.vdb")
> 
> case Kind of
>   1: LoadDump(lValDB, "rdkVDBDump.sql","rkvdb_new.vdb",1)
>   2: LoadDump(lValDB, "rdkVDBDump.xml","rkvdb_new.vdb",2)
> end case
> 
> end loadDump
> -------------------------------
> -------------------------------

But as I understand you HAVE db and you want make its dump, yes?

Then you need at first call Dump(),
This will make for you XML file

Then you need close your db,
Kill its instance
Create new instance
And then only 

    LoadDump( newDB, ... )


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list