Driver	m_JDBCDriver;
String 	m_JDBCUrl; 
Connection m_Connection; 


public boolean StartServices ()
	{
		try
		{	
		  	m_JDBCDriver  =(Driver) Class.forName ( "jdbc.odbc.JdbcOdbcDriver").newInstance(); // Loads the JDBC driver
			
			if ( !m_JDBCDriver.jdbcCompliant () )
			{
				m_Log.addItem ( "Driver is not JDBC compliant");
				return false;
			}
			
			if (m_JDBCDriver.acceptsURL ( m_JDBCUrl ) ) // Confirms that we can attach to this URL
			{
				m_Log.addItem ( "Trying to establish a connection with "+m_JDBCUrl);
				m_Connection = DriverManager.getConnection ( m_JDBCUrl );
				return true;
			}				
			
		} catch (ClassNotFoundException e)
		{
			m_Log.addItem ( "Could not load JDBC-ODBC bridge, check your path env.");
			m_Log.addItem ( e.getMessage() );
			return false;
		}

		catch (SQLException db)
		{
			m_Log.addItem ( "Connection failed: " +db.getMessage());
		}
		catch (Exception e)
		{
			m_Log.addItem ( "Critical Fault in Starting DB services");
			m_Log.addItem ( e.getMessage() );
		}
		return false;
	}	
