HI,
I am just starting to transfer stuff from Access 2002 to SQL server 2005. Initially I am just changing my backend (tables) to SQL server and leaving everything else in an Access .mdb frontend.
The following query simply uses two tables that now reside in SQL server. When I run the query from the Access front-end, it runs in the blink of an eye. However, another query that depends on this one ends up timing out.
So, It thought I'd try changing this query to a View in SQL server. But when I do, this one times out when I try to run it from SQL Server Management studio.
I also tried running this as a pass-through query, and it also times out.
So, in summary: I try using the exact same SQL 3 different ways:
1. As a stored querydef in Access --- runs fine.
2. As a View in SQL server -- times out
3. As a pass-through query in Access -- times out.
What's going on? I thought that changing stuff to SQL server "View" would, if anything, make stuff run faster...
I am just starting to transfer stuff from Access 2002 to SQL server 2005. Initially I am just changing my backend (tables) to SQL server and leaving everything else in an Access .mdb frontend.
The following query simply uses two tables that now reside in SQL server. When I run the query from the Access front-end, it runs in the blink of an eye. However, another query that depends on this one ends up timing out.
So, It thought I'd try changing this query to a View in SQL server. But when I do, this one times out when I try to run it from SQL Server Management studio.
I also tried running this as a pass-through query, and it also times out.
SELECT ProductInfoMasterChanges.Noun, Min(ProductInfoMasterChanges.Updated) AS MinOfUpdated, ProductInfoMasterChanges.bom1rev
FROM ProductInfoMasterChanges INNER JOIN LatestRevMaster ON (ProductInfoMasterChanges.bom1rev = LatestRevMaster.BOM1Rev) AND (ProductInfoMasterChanges.Noun = LatestRevMaster.Noun)
GROUP BY ProductInfoMasterChanges.Noun, ProductInfoMasterChanges.bom1rev;
So, in summary: I try using the exact same SQL 3 different ways:
1. As a stored querydef in Access --- runs fine.
2. As a View in SQL server -- times out
3. As a pass-through query in Access -- times out.
What's going on? I thought that changing stuff to SQL server "View" would, if anything, make stuff run faster...