Click here to Skip to main content
15,886,873 members
Home / Discussions / Database
   

Database

 
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 
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 
I said the PK should NOT be used for anything but the identification of the record.
jschell wrote:
From that one then must decide on a way to provide that ordering. And PK integer might be used for that that.

 

If ordering is required then add in a specific field to service that requirement, DON'T use the PK field.

jschell wrote:
Not arbitrary rules

There is absolutely nothing arbitrary about these rules. If you don't own the data in the field (it is generated by the database) then you don't control the data. Sybase would randomly skip a few 10k counters, some database system would fill in the gaps, some developers want to fill the gaps.
Never underestimate the power of human stupidity
RAH

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 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
PIEBALDconsult10-May-11 14:54
mvePIEBALDconsult10-May-11 14:54 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
jschell11-May-11 7:57
jschell11-May-11 7:57 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
PIEBALDconsult11-May-11 14:34
mvePIEBALDconsult11-May-11 14:34 

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.