Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error when running view with outer join

Status
Not open for further replies.

warpped

MIS
Jan 19, 2000
59
US
I have a view with several joins, including an outer join. The view is run from within a stored procedure. The stored procedure is executed from a custom VB application.

When the custom VB application executes the procedure, it runs ok.

We have a logic problem with the stored procedure (not related to the view in question). I am trying to run the procedure in the SQL Analyzer debugger. However, it errors with the following message:

Joined tables cannot be specified in a query containing outer join operators. View or function '%View_Name%' contains joined tables.

I also get the error when querying the view from Enterprise Manager and SQL Analyzer.

If I take out the text of the view and run it, it works ok.

Any ideas would be appreciated.
 

Can you please post the code of the stored procedure?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top