Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optimizing a SQL command
Message
From
13/09/2013 18:14:07
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01583170
Message ID:
01583231
Views:
35
>At some point he tried this option
>
>
>EXECUTE sys.sp_tableoption 
>        @TableNamePattern = N'dbo.TestMAXOOR', 
>        @OptionName = 'large value types out of row', 
>        @OptionValue = 'true'
>;
>SELECT  large_value_types_out_of_row 
>FROM    sys.tables 
>WHERE   [schema_id] = SCHEMA_ID(N'dbo')
>AND     name = N'TestMAXOOR'
>;
>
>
>to store varchar(max) data out of the row. However, later in the article he doesn't recommend this option because of the big memory grant in TempDB. If you're not using ORDER BY in your query, it may be not that helpful.
>
>You may leave the comment into his blog post to see what he says and also alternatively try http://www.sqlsentry.com/plan-explorer/sql-server-query-view.asp which has an option of uploading masked version to the site for Experts Analysis (including Paul White who wrote that article).

Thanks, I'll adjust to use a flag field to detect if I should enable a link in my view column when showing the list. So, as I will use a Boolean indexed field in the SQL, I will no longer need to use the Varchar(MAX) and that will resolve the issue.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform