Click here to Skip to main content
15,905,028 members
Home / Discussions / Database
   

Database

 
AnswerRe: SP with create table Pin
John-ph24-Nov-07 0:19
John-ph24-Nov-07 0:19 
Question[Message Deleted] Pin
gubba23-Nov-07 21:33
gubba23-Nov-07 21:33 
AnswerRe: generating random numnbers Pin
SVb.net23-Nov-07 21:36
SVb.net23-Nov-07 21:36 
QuestionSelect Top Pin
mehrdadc4823-Nov-07 21:20
mehrdadc4823-Nov-07 21:20 
AnswerRe: Select Top Pin
SVb.net23-Nov-07 21:39
SVb.net23-Nov-07 21:39 
AnswerRe: Select Top Pin
pmarfleet23-Nov-07 22:33
pmarfleet23-Nov-07 22:33 
Questionindex Pin
SVb.net23-Nov-07 21:07
SVb.net23-Nov-07 21:07 
AnswerRe: index Pin
John-ph23-Nov-07 23:45
John-ph23-Nov-07 23:45 
SVb.net wrote:
what's different between index and primarykey?


1. Primary Key Is A UNIQUE Constraint created against the table to uniquely identify each record in the table.
2. A table can have only one PRIMARY KEY constraint.
3. PRIMARY KEY constraint automatically creates Clustered Index against the Column. Physical order of rows is the same as the indexed order of the rows.

1.An Index is a UNIQUE Reference internally created by the Database engine against the Table or View for reference.
2. A table can have 250 Indexes (1 Clustered and 249 Non-Clustered).
3. Physical order of the rows is independent of their indexed order for Non-Clustered Indexes.

- Regards -
   JON

     Life is not measured by the amount of breaths we take, but by the moments that take our breath away.


GeneralRe: index Pin
Xmen Real 24-Nov-07 3:50
professional Xmen Real 24-Nov-07 3:50 
GeneralRe: index Pin
John-ph24-Nov-07 18:17
John-ph24-Nov-07 18:17 
GeneralRe: index Pin
Xmen Real 24-Nov-07 18:32
professional Xmen Real 24-Nov-07 18:32 
Questionusing datasets Pin
haseeb_saeed23-Nov-07 20:40
haseeb_saeed23-Nov-07 20:40 
QuestionAuto Increment and Decrement column data Pin
D i x y23-Nov-07 20:11
D i x y23-Nov-07 20:11 
AnswerRe: Auto Increment and Decrement column data Pin
pmarfleet23-Nov-07 23:01
pmarfleet23-Nov-07 23:01 
QuestionAggregate function on multiple table Pin
Rock Star.23-Nov-07 19:34
Rock Star.23-Nov-07 19:34 
AnswerRe: Aggregate function on multiple table Pin
pmarfleet23-Nov-07 22:55
pmarfleet23-Nov-07 22:55 
AnswerRe: Aggregate function on multiple table Pin
Pete O'Hanlon25-Nov-07 9:34
mvePete O'Hanlon25-Nov-07 9:34 
QuestionError 5172 Pin
Developer61123-Nov-07 18:54
Developer61123-Nov-07 18:54 
AnswerRe: Error 5172 Pin
pmarfleet23-Nov-07 22:58
pmarfleet23-Nov-07 22:58 
QuestionCase statement in WHERE clause Pin
moon_stick23-Nov-07 4:41
moon_stick23-Nov-07 4:41 
AnswerRe: Case statement in WHERE clause Pin
pmarfleet23-Nov-07 5:21
pmarfleet23-Nov-07 5:21 
AnswerRe: Case statement in WHERE clause Pin
andyharman23-Nov-07 6:06
professionalandyharman23-Nov-07 6:06 
QuestionSQL SCRIPT Pin
kibromg23-Nov-07 0:39
kibromg23-Nov-07 0:39 
AnswerRe: SQL SCRIPT Pin
Hesham Amin23-Nov-07 1:02
Hesham Amin23-Nov-07 1:02 
GeneralRe: SQL SCRIPT Pin
kibromg23-Nov-07 1:15
kibromg23-Nov-07 1:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.