FBValidation does not output any information as to success or failure of a 
requested Database Validation operation.
-------------------------------------------------------------------------------------------------------------------

                 Key: DNET-399
                 URL: http://tracker.firebirdsql.org/browse/DNET-399
             Project: .NET Data provider
          Issue Type: Bug
          Components: ADO.NET Provider
    Affects Versions: 2.6.5
         Environment: Windows 7 Ultimate, 3GB Ram. Firebird Embedded 
2.5.0.26074.
            Reporter: Can A. Course
            Assignee: Jiri Cincura


No exception is thrown either.

Sample code below.

  private void ValidateDB(string Database)
        {
            FbConnectionStringBuilder ConnectionString = new 
FbConnectionStringBuilder();
            ConnectionString.ServerType = FbServerType.Embedded;
            ConnectionString.Database = Database;
            ConnectionString.UserID = "sysdba";
            ConnectionString.Password = "dummypassword"; // this is required
            ConnectionString.Dialect = 3;
            
            try
            {
                FbValidation DBValidator = new FbValidation();
                DBValidator.ConnectionString = ConnectionString.ToString();
                DBValidator.Options = FbValidationFlags.SweepDatabase; // or 
any other FBValidationFlags.
                DBValidator.ServiceOutput += ServiceOutput;
                DBValidator.Execute();
            }
            catch (Exception e)
            {
                Log.FatalException("Unable to validate Database", e);
                Environment.Exit(0);
            }
           
        }

  private static void ServiceOutput(object sender, ServiceOutputEventArgs e)  
// never called
        {
           Log.Debug(e.Message);
        }


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to