Hi
I have 2 views, one works well and the other I keep getting an Error Message Execution timeout expired. The timeout period expired prior to completion of the operation or the server is not responding message
The only difference between the 2 views is the Having clause.
The one that works is
HAVING pa.BranchID IN (1, 9) AND pg.Level1ID = 893 AND pr.ProductCode LIKE 'am%' AND (Pso.stocklevelmin > 0) AND (PSO.StockLevelMax > 0)
The one that timesout is
HAVING pa.BranchID IN (1, 9) AND pg.Level1ID <> 893 AND pr.ProductCode NOT LIKE 'am%' AND (Pso.stocklevelmin > 0) AND (PSO.StockLevelMax > 0)
If I run the one that does not work in a query window it runs but takes some time to do so, just over 3 minutes. As soon as I oput the code into a view I get the timeout problem. I cant find where in the view options to change the timeout, it is set to 0 in the Tools|Options|Query execution.
Any ideas how I can get sort this please.
I have 2 views, one works well and the other I keep getting an Error Message Execution timeout expired. The timeout period expired prior to completion of the operation or the server is not responding message
The only difference between the 2 views is the Having clause.
The one that works is
HAVING pa.BranchID IN (1, 9) AND pg.Level1ID = 893 AND pr.ProductCode LIKE 'am%' AND (Pso.stocklevelmin > 0) AND (PSO.StockLevelMax > 0)
The one that timesout is
HAVING pa.BranchID IN (1, 9) AND pg.Level1ID <> 893 AND pr.ProductCode NOT LIKE 'am%' AND (Pso.stocklevelmin > 0) AND (PSO.StockLevelMax > 0)
If I run the one that does not work in a query window it runs but takes some time to do so, just over 3 minutes. As soon as I oput the code into a view I get the timeout problem. I cant find where in the view options to change the timeout, it is set to 0 in the Tools|Options|Query execution.
Any ideas how I can get sort this please.