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 12»»

how to Create index online? Expand / Collapse
Author
Message
Posted Thursday, May 26, 2011 8:11 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, June 16, 2014 10:44 AM
Points: 153, Visits: 583
Below is the script for creating index and how can I change the script to create index onlie?

what are benfits and disadvangates of online and offile?

CREATE NONCLUSTERED INDEX [_dta_index_dClientCode_16_437576597__K7_K3_1] ON [dbo].[dClientCode]
(
[ClientGenericId] ASC,
[Code] ASC
)
INCLUDE ( [ClientCodeId]) WITH (SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF) ON [Data_Data]
Post #1115497
Posted Thursday, May 26, 2011 8:16 AM


SSC-Insane

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

Group: General Forum Members
Last Login: Thursday, November 27, 2014 4:23 AM
Points: 20,584, Visits: 9,624
ONLINE = didn't ring a bell?



Just a FYI, dta is a bad tool to do performance tuning. This is what I do :

http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-1/
http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-2/
Post #1115508
Posted Thursday, May 26, 2011 8:24 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, June 16, 2014 10:44 AM
Points: 153, Visits: 583
How to modify the above script for creating index online.
Post #1115520
Posted Thursday, May 26, 2011 8:29 AM


SSC-Insane

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

Group: General Forum Members
Last Login: Thursday, November 27, 2014 4:23 AM
Points: 20,584, Visits: 9,624
What didn't you understand in my previous post?

What part of ONLINE = SOMETHING OTHER THAN OFF GOES HERE are you having troubles with?
Post #1115527
Posted Friday, May 27, 2011 5:10 AM


SSC-Addicted

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

Group: General Forum Members
Last Login: Monday, July 18, 2011 3:54 AM
Points: 492, Visits: 481
CREATE NONCLUSTERED INDEX [_dta_index_dClientCode_16_437576597__K7_K3_1] ON [dbo].[dClientCode]
(
[ClientGenericId] ASC,
[Code] ASC
)
INCLUDE ( [ClientCodeId]) WITH (SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = ON) ON [Data_Data]

Use online= off recommended,some indexes will not create with online option ON


Regards,
Syed Jahanzaib Bin Hassan
BSCS | MCTS | MCITP | OCA | OCP | OCE | SCJP | IBMCDBA

My Blog
www.aureus-salah.com
Post #1116140
Posted Friday, March 28, 2014 9:56 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, November 5, 2014 9:15 AM
Points: 3, Visits: 61
Ninja's_RGR'us (5/26/2011)
What didn't you understand in my previous post?

What part of ONLINE = SOMETHING OTHER THAN OFF GOES HERE are you having troubles with?


It is comments like this that makes me shy away from this site. It is completely unnecessary. For those who care to know a more appropriate response, something this would have been more effective:

"Take a closer look at my previous comments in regard to ONLINE. If you still don't understand, then please provide very specific details about what you don't understand, and I'll try to help."
Post #1556023
Posted Friday, March 28, 2014 11:08 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 3:26 AM
Points: 2,533, Visits: 7,110
tlunsf (3/28/2014)
Ninja's_RGR'us (5/26/2011)
What didn't you understand in my previous post?

What part of ONLINE = SOMETHING OTHER THAN OFF GOES HERE are you having troubles with?


It is comments like this that makes me shy away from this site. It is completely unnecessary. For those who care to know a more appropriate response, something this would have been more effective:

"Take a closer look at my previous comments in regard to ONLINE. If you still don't understand, then please provide very specific details about what you don't understand, and I'll try to help."

Good point!
Post #1556066
Posted Friday, March 28, 2014 11:26 AM


SSC-Dedicated

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

Group: Administrators
Last Login: 2 days ago @ 3:11 PM
Points: 31,368, Visits: 15,837
Apologies and hope things are working for you.






Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1556070
Posted Friday, March 28, 2014 1:31 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 3:26 AM
Points: 2,533, Visits: 7,110
Ranzz (5/26/2011)
Below is the script for creating index and how can I change the script to create index onlie?

what are benfits and disadvangates of online and offile?

CREATE NONCLUSTERED INDEX [_dta_index_dClientCode_16_437576597__K7_K3_1] ON [dbo].[dClientCode]
(
[ClientGenericId] ASC,
[Code] ASC
)
INCLUDE ( [ClientCodeId]) WITH (SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF) ON [Data_Data]


An online index (build) allows access / modification of the data while the index maintenance operations take place. It is (correct me if I'm wrong) an Enterprise feature. To create an online index, set the ONLINE flag to ONLINE = ON.

I cannot think of any disadvantages but the price of the Enterprise edition



Post #1556133
Posted Saturday, March 29, 2014 6:50 AM


SSC-Dedicated

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

Group: Administrators
Last Login: 2 days ago @ 3:11 PM
Points: 31,368, Visits: 15,837
Yes, Enterprise Edition only

http://technet.microsoft.com/en-us/library/cc645993.aspx#Scalability







Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1556208
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse