First pass at fixing SQL Server 2000 pagination

This is an attempt to restore SQL Server 2000 pagination while reusing the existing local variables.
I have done this, but it looks like github didn't automatically display the comment.  Click on "View full changes" and search for `from_clause %` which will reveal:

        return ', '.join(outer), ', '.join(inner) + (from_clause % parens)
        #                                            ^^^^^^^^^^^^^^^^^^^^^
        # We can't use `format` here, because `format` uses `{}` as special 
        # characters, but those happen to also be the quoting tokens for IBM's
        # DB2