Solved

Indexes not showing in Enterprise Mgr

Posted on 1998-08-28
10
170 Views
Last Modified: 2010-03-19
After creating INDEXES in the INDEXES function screen, the indexed fields are not marked when I click on the TABLE name and the schema comes up showing the table structure. What gives?
0
Comment
Question by:rdoty
  • 4
  • 3
  • 3
10 Comments
 
LVL 2

Expert Comment

by:mkmccreary
Comment Utility
After you created the indexes, did you do a refresh on the table views to requery the system tables.  That may fix you problem.


0
 

Author Comment

by:rdoty
Comment Utility
Yes, I performed a "refresh" and the table key check marks that should show next to my indexed fields are not there.
0
 
LVL 2

Expert Comment

by:mkmccreary
Comment Utility
Are you actually defining some of your indexes as primary keys?
0
 
LVL 5

Expert Comment

by:mayhew
Comment Utility
That table schema screen does not show an index unless it's defined as a primary or foreign key.

To see indexes you need to look at that 'manage indexes' screen.  As a shorcut, you can right click on the table and select that screen off of the popup menu.

Hope that's helpful!

Don
0
 

Author Comment

by:rdoty
Comment Utility
The mentioned indexes that do not show in the table schema view, are mostly PRIMARY KEYS, and some are COMPOSITE CLUSTERED PRIMARY keys, and even some are FOREIGN KEYS. However, none of these show.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 5

Expert Comment

by:mayhew
Comment Utility
Interesting.

Why don't you reject my answer and I'll look into it some more.  :)

Don
0
 
LVL 2

Expert Comment

by:mkmccreary
Comment Utility
I think I have it.  If you are using the Indexes... Screen that comes up when you right click on a table,  or the menu item Manage - Indexes then you cannot specify whether the index is a primary or foreign key.  You need to perform this from the Table Schema screen using the Advanced properties button (which looks like a table with a plus sign.)  You can use the Advanced properties to set Primary Keys, Foreign Keys, Check Constraints, and Unique Constraints.  You will have to drop any clustered indexes you have created without using the Advanced Properties button if you want to use clustered indexes as primary keys.  The other option is to SQL and the Alter Table statement.  Also remember that a field cannot allow nulls and be a primary key.  If you have any more questions just drop a comment.

Later,
Martin

0
 

Author Comment

by:rdoty
Comment Utility
You are correct. Mayhew was close, but did not tie the actual definition of the separate functions into two separate actions.
Thanks a Lot!

0
 
LVL 2

Accepted Solution

by:
mkmccreary earned 50 total points
Comment Utility
Glad I could help.  I could use the points, a friend is giving me a hard time about my point challenged.

Later,
Martin

0
 
LVL 5

Expert Comment

by:mayhew
Comment Utility
Good anser, mkmccreary!

I'm glad you got it figured out!   :)

Don
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now