I had this problem when querying a view using SSMS. I restarted my SSMS and could then connect without any issues.