DECLARE @Country VARCHAR ( 20 ) SET @Country = 'US' SELECT * FROM Sales.SalesOrderHeader h , Sales.Customer c , Sales.SalesTerritory t WHERE h.CustomerID = c.CustomerID AND c.TerritoryID = t.TerritoryID AND CountryRegionCode = @Country OPTION ( OPTIMIZE FOR ( @Country = 'US' ))
Posts
Showing posts from 2011