Rework the rules for Sybase and SQL Server based on the changes I made to MySQL,
which also uses variable declarations instead of cursor columns.