def sql_get_query_data(connection, query):
    """Runs SQL statement to get results of query specified, returned and pyodbc cursor.
        
        Args:
            connection: pyodbc.connect() object, Connection to use when selecting data 
            query: string, Valid select statement

        Returns:
            cursor object, Results of the call to pyodb.connection().cursor().execute(query)
    """ 
    cursor=connection.cursor()
    cursor.execute(query.encode('utf-8'))

    return cursor