I recently began working with a new database on SQL Server 2008 R2. I see some usual behavior and would appreciate any thought anyone has.
As one of my first tasks, I created a View to be referenced from another Query I am writing. The view appears to have been created correctly, as it is listed in the Object Explorer. Running the View from the Management Studio interface returns the expected results. However, when I attempt to to reference the View from another query, the View name does not appear as an object in the drop-down list when typing in the IDE window, and the view name and all referenced columns are highlighted as in error (red squiggly underline). Even so, with I run the query, it runs as expected and returns the proper results. Therefore, the query appears to have been written correctly, but the IDE is showing it as in error. Can anyone explain this?
Randy Davis