diff --git a/lib/arel/visitors/sqlserver.rb b/lib/arel/visitors/sqlserver.rb
index <HASH>..<HASH> 100644
--- a/lib/arel/visitors/sqlserver.rb
+++ b/lib/arel/visitors/sqlserver.rb
@@ -35,8 +35,8 @@ module Arel
         case x
         when Arel::Attributes::Attribute
           c = engine.connection
-          tn = x.relation.table_alias || x.relation.name
-          expr = Arel::Nodes::SqlLiteral.new "#{c.quote_table_name(tn)}.#{c.quote_column_name(x.name)}"
+          table = Arel::Table.new(x.relation.table_alias || x.relation.name)
+          expr = table[x.name]
           Arel::Nodes::Ordering.new expr
         when String
           x.split(',').map do |s|
use an attribute node with the table name rather than referencing the connection