Portal not saving the connection in SQL Server