Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Significance of index names?
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01513532
Message ID:
01513624
Views:
39
>>>>>>Hi,
>>>>>>
>>>>>>In VFP index tags have certain significance as they are used in SEEK() function. When creating index tags in SQL Server does it really matter the names of the index tags? If yes, what is it, then I will follow a certain convention.
>>>>>>
>>>>>>TIA.
>>>>>
>>>>>AFAIK, no.
>>>>>But I always named Primary keys PK_nameoftag and all others IX_nameoftag
>>>>
>>>>Thank you. I will follow your naming convention (if it is good enough for you it must be good). However, I didn't know you create a primary key index tag; I thought SQL Server creates it automatically. I was wrong?
>>>
>>>Yes, you are wrong :-)
>>>Open table for design in SSMS.
>>>Select the field(s) you want to be primary keys and click the button in toolbar that looks like a key :-)
>>
>>I did that. Is your point that after making a column to be a primary key no additional index tag has been created in the Indexes?
>
>You must save the changes and refresh index node in Object Explorer.

I did and now I see the index automatically created by SQL Server. Isn't it what I said that I thought that I don't have to create it manually?
"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