Updated for SQL Azure support