From: Alan M. <al...@me...> - 2004-02-12 09:38:36
|
> Hello: > > > I noticed that if you create a database using > FbConnection.CreateDatabase it > > will overwrite your previous database!!! > > Database creation is make using the Firebird API in first place the > problem must be in the provider, i will try to review this before > release the 1.5 final. > > > This is very very dangerous! Is it a bug in the provider or in the FB > > engine? > > Huuummm just my opinion but database creation has a "restricted" use in > applications and we can check for database existance trying to connect > to it, for example. > > > -- > Best regards > > Carlos GuzmánÁlvarez > Vigo-Spain In admin tools you have a check box to overwrite the existing database, which it will if there is no lock on the file being overwritten, otherwise an exception will be raised as it will now tieh the provider but since the other admin tools offer this as a switch, perhaps the switch needs to be offered in the provider too? Alan |