Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
YAQ on Create Index Script
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Indexing
Environment versions
SQL Server:
SQL Server 6.5 and older
Application:
Web
Miscellaneous
Thread ID:
01575007
Message ID:
01575017
Views:
37
>>Hi,
>>
>>To create an index from VFP application I can execute the following script:
>>
>>
>>CREATE NONCLUSTERED INDEX [MyIndex]
>>ON [dbo].[tablename] ([rec_id])
>>
>>
>>However, when I create an index script in SSMS the script includes the following:
>>
>>
>>CREATE NONCLUSTERED INDEX [MyIndex] ON [dbo].[tablename] 
>>(
>>	[MyIndex] ASC
>>)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
>>
>>
>>My question is, do I need (is it necessary) to add the ASC and the line WITH.. with all the settings when creating an index from VFP?
>
>Unless you want to change any of the default settings, you don't need to add them to create index script.

Thank you. What about ASC? Is this default?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform