Losing Formats of TSQL Scripts from SSMS to MS Word

Problem:

Losing Formats of TSQL Scripts from SSMS to MS Word

Solution:

Close Google Chrome and Skype. See below

Reference:

http://answers.microsoft.com/en-us/office/forum/office_2010-word/losing-formatting-when-i-copy-and-paste-from-one/7e1b2101-e431-4b29-aa58-15d5161cbd69?msgId=f3085111-23af-4ed7-b822-0688a97b6f18

What is 'index ANDing" exactly?

ANDing means when multiple indexes are used in a single hint, the query optimizer enforce the order of the indexes in the index hints, ANDing applies as many conditions as possible on each index accessed.

=== More from BOL===


INDEX (index_value [,... n ] ) | INDEX = ( index_value)
The INDEX() syntax specifies the names or IDs of one or more indexes to be used by the query optimizer when it processes the statement. The alternative INDEX = syntax specifies a single index value. Only one index hint per table can be specified.

If a clustered index exists, INDEX(0) forces a clustered index scan and INDEX(1) forces a clustered index scan or seek. If no clustered index exists, INDEX(0) forces a table scan and INDEX(1) is interpreted as an error.

If multiple indexes are used in a single hint list, the duplicates are ignored and the rest of the listed indexes are used to retrieve the rows of the table. The order of the indexes in the index hint is significant. A multiple index hint also enforces index ANDing, and the query optimizer applies as many conditions as possible on each index accessed. If the collection of hinted indexes do not include all columns referenced by the query, a fetch is performed to retrieve the remaining columns after the SQL Server Database Engine retrieves all the indexed columns.