Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

2008 indexed view r2 standard edition Expand / Collapse
Author
Message
Posted Monday, September 10, 2012 2:01 PM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Monday, June 10, 2013 2:02 PM
Points: 477, Visits: 694
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).



Post #1356997
Posted Monday, September 10, 2012 2:44 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 2:49 PM
Points: 38,095, Visits: 30,389
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 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1357017
Posted Tuesday, September 11, 2012 7:26 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Monday, June 10, 2013 2:02 PM
Points: 477, Visits: 694
what is the query is coming from another server (query is on sql 2008 server to a linked servr that has the indexed view)


Post #1357391
Posted Tuesday, September 11, 2012 7:41 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 2:49 PM
Points: 38,095, Visits: 30,389
Don't understand the question.


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1357405
Posted Tuesday, September 11, 2012 7:44 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Monday, June 10, 2013 2:02 PM
Points: 477, Visits: 694
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?


--------------------------------------------------------------------------------



Post #1357409
Posted Tuesday, September 11, 2012 7:52 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 9:46 AM
Points: 21,832, Visits: 27,858
You would have to create the indexed view in the same database as the source table.



Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Post #1357422
Posted Tuesday, September 11, 2012 7:56 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 2:49 PM
Points: 38,095, Visits: 30,389
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 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1357429
Posted Tuesday, September 11, 2012 7:57 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Monday, June 10, 2013 2:02 PM
Points: 477, Visits: 694
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


Post #1357432
Posted Tuesday, September 11, 2012 8:08 AM
Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Thursday, June 13, 2013 5:06 AM
Points: 688, Visits: 305
if your data is changing daily then it will cost u crating index.

for more detail there a link

http://beyondrelational.com/quiz/sqlserver/tsql/2011/questions/advantage-and-disadvantage-of-using-indexed-view-in-sql-server.aspx
Post #1357442
Posted Tuesday, September 11, 2012 8:14 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 9:46 AM
Points: 21,832, Visits: 27,858
sandeep rawat (9/11/2012)
if your data is changing daily then it will cost u crating index.

for more detail there a link

http://beyondrelational.com/quiz/sqlserver/tsql/2011/questions/advantage-and-disadvantage-of-using-indexed-view-in-sql-server.aspx


Let us make this easier for others to follow:

http://beyondrelational.com/quiz/sqlserver/tsql/2011/questions/advantage-and-disadvantage-of-using-indexed-view-in-sql-server.aspx



Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Post #1357452
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse