Subject | Re: [firebird-support] fb dot net provider, can't find the username and userpassword property |
---|---|
Author | Carlos Guzmán Álvarez |
Post date | 2004-08-25T15:44:31Z |
Hello:
FbBackup backupSvc = new FbBackup();
backupSvc.Parameters.UserName = ConfigurationSettings.AppSettings["User"];
backupSvc.Parameters.UserPassword = ConfigurationSettings.AppSettings["Password"];
backupSvc.Parameters.ServerType = Int32.Parse(ConfigurationSettings.AppSettings["ServerType"]);
backupSvc.Parameters.Database = ConfigurationSettings.AppSettings["Database"];
backupSvc.BackupFiles.Add(new FbBackupFile(@"c:\testdb.gbk", 2048));
backupSvc.Verbose = true;
backupSvc.Options = FbBackupFlags.IgnoreLimbo;
backupSvc.Start();
string lineOutput;
while ((lineOutput = backupSvc.GetNextLine()) != null)
{
Console.WriteLine(lineOutput);
}
backupSvc.Close();
--
Best regards
Carlos Guzmán Álvarez
Vigo-Spain
One ring to rule them all
(The lord of the rings - J.R.R.Tolkien)
> Any help is highly appreciated.From the nunit test suite:
>
FbBackup backupSvc = new FbBackup();
backupSvc.Parameters.UserName = ConfigurationSettings.AppSettings["User"];
backupSvc.Parameters.UserPassword = ConfigurationSettings.AppSettings["Password"];
backupSvc.Parameters.ServerType = Int32.Parse(ConfigurationSettings.AppSettings["ServerType"]);
backupSvc.Parameters.Database = ConfigurationSettings.AppSettings["Database"];
backupSvc.BackupFiles.Add(new FbBackupFile(@"c:\testdb.gbk", 2048));
backupSvc.Verbose = true;
backupSvc.Options = FbBackupFlags.IgnoreLimbo;
backupSvc.Start();
string lineOutput;
while ((lineOutput = backupSvc.GetNextLine()) != null)
{
Console.WriteLine(lineOutput);
}
backupSvc.Close();
--
Best regards
Carlos Guzmán Álvarez
Vigo-Spain
One ring to rule them all
(The lord of the rings - J.R.R.Tolkien)