Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.ms-sqlserver    |    Notorious Rube Goldberg contraption    |    19,505 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 17,804 of 19,505    |
|    Erland Sommarskog to --CELKO--    |
|    Re: How do you prevent predicate optimiz    |
|    08 May 10 10:49:59    |
      2c342595       From: esquel@sommarskog.se              --CELKO-- (jcelko212@earthlink.net) writes:       > The usual re-write is:       >       > SELECT *       > FROM A       > WHERE b = 31       > OR b = 78;              In SQL Server, this rewrite is performed in the parsing layer, and what       the optimizer sees is the above which thus above is identifical with the       original query.              --       Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se              Links for SQL Server Books Online:       SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx       SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx       SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca