Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server 2008 Administration
»
2008 indexed view r2 standard edition
2008 indexed view r2 standard edition
Rate Topic
Display Mode
Topic Options
Author
Message
timscronin
timscronin
Posted Monday, September 10, 2012 2:01 PM
SSC-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
GilaMonster
GilaMonster
Posted Monday, September 10, 2012 2:44 PM
SSC-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
timscronin
timscronin
Posted Tuesday, September 11, 2012 7:26 AM
SSC-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
GilaMonster
GilaMonster
Posted Tuesday, September 11, 2012 7:41 AM
SSC-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
timscronin
timscronin
Posted Tuesday, September 11, 2012 7:44 AM
SSC-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
Lynn Pettis
Lynn Pettis
Posted Tuesday, September 11, 2012 7:52 AM
SSC-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
GilaMonster
GilaMonster
Posted Tuesday, September 11, 2012 7:56 AM
SSC-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
timscronin
timscronin
Posted Tuesday, September 11, 2012 7:57 AM
SSC-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
sandeep rawat
sandeep rawat
Posted Tuesday, September 11, 2012 8:08 AM
Say 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
Lynn Pettis
Lynn Pettis
Posted Tuesday, September 11, 2012 8:14 AM
SSC-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 »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.