Example #1
0
 def top_ten_query(self, handle_id):
     table_file = os.path.join(os.path.dirname(__file__), '..', '..',
                               'Data', 'database_plans', 'SQLite',
                               'table_names.sql')
     top_ten_query = 'select * from %s limit 10'
     GenericDatabase.top_ten_query(self, handle_id, table_file,
                                   top_ten_query)
Example #2
0
 def top_ten_query(self, handle_id):
     table_query_file = os.path.join(os.path.dirname(__file__), '..', '..',
                                     'Data', 'database_plans', 'oracle',
                                     'survey', 'tables.sql')
     top_ten_query = 'select * from %s where rownum <= 10'
     GenericDatabase.top_ten_query(self, handle_id, table_query_file,
                                   top_ten_query)
Example #3
0
 def top_ten_query(self, handle_id):
     table_file = os.path.join(os.path.dirname(__file__), '..', '..',
                               'Data', 'database_plans', 'SQL Server',
                               'Survey (Ver 9+)', 'tables.sql')
     top_ten_query = 'select top 10 * from %s'
     GenericDatabase.top_ten_query(self, handle_id, table_file,
                                   top_ten_query)
Example #4
0
 def __init__(self):
     GenericDatabase.__init__(self)
     self.working_instance = None
     self.instance_version = None
     self.ver8 = None
     self.instance_registry_location = None
     self.sql_directory = None
     self.available_databases = []
     self.working_instance_is_32_on_64 = False
Example #5
0
 def __init__(self):
     GenericDatabase.__init__(self)
     self.working_instance = None
     self.instance_version = None
     self.ver8 = None
     self.instance_registry_location = None
     self.sql_directory = None
     self.available_databases = []
     self.working_instance_is_32_on_64 = False
Example #6
0
 def cleanup(self, handle_id):
     GenericDatabase.cleanup(self, handle_id)
     print ''
     dsz.ui.Echo("Check the size of the file below to ensure it hasn't changed:", dsz.GOOD)
     dsz.control.echo.Off()
     if (not self.sql_directory):
         self.store_sql_server_settings()
     show_error_log_info(self.sql_directory)
     dsz.control.echo.On()
Example #7
0
 def cleanup(self, handle_id):
     GenericDatabase.cleanup(self, handle_id)
     print ''
     dsz.ui.Echo(
         "Check the size of the file below to ensure it hasn't changed:",
         dsz.GOOD)
     dsz.control.echo.Off()
     if (not self.sql_directory):
         self.store_sql_server_settings()
     show_error_log_info(self.sql_directory)
     dsz.control.echo.On()
Example #8
0
 def cleanup(self, handle_id):
     GenericDatabase.cleanup(self, handle_id)
     self.audit_bypass_menu(disable_auditing=False)
     event_log_check()
     listener_log_check()
Example #9
0
 def __init__(self):
     GenericDatabase.__init__(self)
     self.passfreely_is_on = False
Example #10
0
 def top_ten_query(self, handle_id):
     table_file = os.path.join(os.path.dirname(__file__), '..', '..', 'Data', 'database_plans', 'SQL Server', 'Survey (Ver 9+)', 'tables.sql')
     top_ten_query = 'select top 10 * from %s'
     GenericDatabase.top_ten_query(self, handle_id, table_file, top_ten_query)
Example #11
0
 def cleanup(self, handle_id):
     GenericDatabase.cleanup(self, handle_id)
     self.audit_bypass_menu(disable_auditing=False)
     event_log_check()
     listener_log_check()
Example #12
0
 def top_ten_query(self, handle_id):
     table_query_file = os.path.join(os.path.dirname(__file__), '..', '..', 'Data', 'database_plans', 'oracle', 'survey', 'tables.sql')
     top_ten_query = 'select * from %s where rownum <= 10'
     GenericDatabase.top_ten_query(self, handle_id, table_query_file, top_ten_query)
Example #13
0
 def __init__(self):
     GenericDatabase.__init__(self)
     self.passfreely_is_on = False
Example #14
0
 def top_ten_query(self, handle_id):
     table_file = os.path.join(os.path.dirname(__file__), '..', '..', 'Data', 'database_plans', 'SQLite', 'table_names.sql')
     top_ten_query = 'select * from %s limit 10'
     GenericDatabase.top_ten_query(self, handle_id, table_file, top_ten_query)