Click here to Skip to main content
15,887,027 members
Home / Discussions / Database
   

Database

 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
Mycroft Holmes5-May-11 12:30
professionalMycroft Holmes5-May-11 12:30 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
jschell6-May-11 10:50
jschell6-May-11 10:50 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
Mycroft Holmes5-May-11 12:27
professionalMycroft Holmes5-May-11 12:27 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
PIEBALDconsult5-May-11 14:24
mvePIEBALDconsult5-May-11 14:24 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
Mycroft Holmes5-May-11 15:12
professionalMycroft Holmes5-May-11 15:12 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
Shameel6-May-11 4:49
professionalShameel6-May-11 4:49 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
jschell6-May-11 10:57
jschell6-May-11 10:57 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
Mycroft Holmes6-May-11 11:36
professionalMycroft Holmes6-May-11 11:36 
jschell wrote:
Err...obviously what you quoted is 100% correct.

No you read correctly, this is a fundamental rule of database design and if you ignore it you will get bitten somewhere down the track. A PK has only 1 job, identify the record. Ordering the data is NOT part of the PKs job, thats up to the designer to implement a specific solution.

This is one of the strongest arguments FOR guids, it stops developers relying on the PK for anthing but record identification, they can't use them for ordering or to identify part of the the record (the old concatenated string from bits of the record trick).

The reson I don't like guids is I can never remember the bloody things when debugging a procedure Dead | X| .
Never underestimate the power of human stupidity
RAH

GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
PIEBALDconsult7-May-11 8:28
mvePIEBALDconsult7-May-11 8:28 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
jschell9-May-11 8:58
jschell9-May-11 8:58 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
Mycroft Holmes9-May-11 11:01
professionalMycroft Holmes9-May-11 11:01 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
jschell10-May-11 11:47
jschell10-May-11 11:47 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
PIEBALDconsult30-Jul-11 20:27
mvePIEBALDconsult30-Jul-11 20:27 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
PIEBALDconsult7-May-11 8:21
mvePIEBALDconsult7-May-11 8:21 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
jschell9-May-11 9:01
jschell9-May-11 9:01 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
PIEBALDconsult9-May-11 15:10
mvePIEBALDconsult9-May-11 15:10 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
jschell10-May-11 11:38
jschell10-May-11 11:38 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
PIEBALDconsult10-May-11 14:52
mvePIEBALDconsult10-May-11 14:52 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
PIEBALDconsult5-May-11 14:22
mvePIEBALDconsult5-May-11 14:22 
AnswerRe: How to recover identity ID after insert in MSSQL 2008? Pin
Prasanta_Prince6-May-11 6:18
Prasanta_Prince6-May-11 6:18 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
Mycroft Holmes6-May-11 11:38
professionalMycroft Holmes6-May-11 11:38 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
PIEBALDconsult7-May-11 8:33
mvePIEBALDconsult7-May-11 8:33 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
jschell9-May-11 9:09
jschell9-May-11 9:09 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
PIEBALDconsult9-May-11 15:04
mvePIEBALDconsult9-May-11 15:04 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
jschell10-May-11 11:51
jschell10-May-11 11:51 

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.