[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

09/24/2006 at 06:59AM PDT, ID: 22000646
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.4

SQL Primary keys

Asked by TRACEYMARY in MS SQL Server

Tags: index, clustered, primary, sql

We have an application database ERP system thats is in use by the vendor

However each of the tables does not have any Primary Keys...........Most of the tables have indexes.

In order for us to replicate this data to our reporting database we have to put on Primary keys.

One of the consultants from the vendor....done this part.....

As we are upgrading i have been looking at what he did.............and see that Primary key does not have clustered index when viewing in EM.

When i create a table with primary key in EM it puts clustered index = yes.

The script that the consultant used has put primary key clustered index = no.

Questions:
1.  Why not have clustered set to Yes on primary keys
2.  Why would this be no.
3.. What the benefits of having clustered index vs no clustered index with the primary key.
4.  The primary key has been decided becaue he read the indexes and then create the primary key...so if there was an index then he set PK.
     So we have primary key .....same columns set and index the same set
    TABLE A COLUMN 1 COLUMN 2 Primary key
   and INDEX COLUMN1 COLUMN2
5. Should the sp_recompile 'tablename' be run ..........what happens if this is not done.....

Any advice...................
[+][-]09/24/06 09:00 AM, ID: 17587388

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: index, clustered, primary, sql
Sign Up Now!
Solution Provided By: angelIII
Participating Experts: 2
Solution Grade: A
 
 
[+][-]09/24/06 10:21 AM, ID: 17587602

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/24/06 03:45 PM, ID: 17588741

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/24/06 03:52 PM, ID: 17588767

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/24/06 05:25 PM, ID: 17589022

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/24/06 11:33 PM, ID: 17590053

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91