login working with session etc
made it work with SQL Server?