September 10, 2012 at 2:01 pm
Not to be confused just to clairfy.
i have a 3rd pary db which our warhouse team goes after. Their extract would benefit from some indexes but 3rd party vendor would not allow. i was thinking creating an indexed view and adding heloing indexes and let them extract from that. With standard edition that is alowed, and I do not need to do anyting special to the view when underlying data changes (timecard system changes daily).
September 10, 2012 at 2:44 pm
It's allowed, but you'll have to add the NoExpand hint to any query that you want to use the indexed view
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 11, 2012 at 7:26 am
what is the query is coming from another server (query is on sql 2008 server to a linked servr that has the indexed view)
September 11, 2012 at 7:41 am
Don't understand the question.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 11, 2012 at 7:44 am
I will create the indexed view on server a. The query comes from server B, can I still use the "NoExpand hint to any query that you want to use the indexed view " on the sql statement from server B?
--------------------------------------------------------------------------------
September 11, 2012 at 7:52 am
You would have to create the indexed view in the same database as the source table.
September 11, 2012 at 7:56 am
If you are creating an indexed view on Standard edition, any query (from anywhere at all) that you want to use the indexed view must have the NoExpand hint on it.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 11, 2012 at 7:57 am
THanks I do have a concern that I may be introducing extra overhead that may actually cost me, the data I am looking at making the indexed view on is a timecard database with millions of rows that are entered daily
September 11, 2012 at 8:08 am
if your data is changing daily then it will cost u crating index.
for more detail there a link
September 11, 2012 at 8:14 am
sandeep rawat (9/11/2012)
for more detail there a link
Let us make this easier for others to follow:
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply