I created a view. The view’s Query works fine. Now I want to write another Query which uses the first one. As far as I know it should look like this:
SELECT * FROM myView;
Now there is an Error returned: “Ungültiger Objektname ‘myView'” in English its something like “unvalid object name ‘myView’.
How do I refer to or call views the right way? I#M using SQL Server.
Check that you created the view in the right database, right schema and granted the
SELECTprivilege on the view to the user that uses it.Or, better, post the
SQLyou used to create the view.