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
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 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
jschell10-May-11 11:47
jschell10-May-11 11:47 
Mycroft Holmes wrote:
I said the PK should NOT be used for anything but the identification of the
record.


You certainly went on to say that.

However before doing that you quoted a specific statement and then said it was wrong.
And what you quoted was not wrong.

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


So you are suggesting that one should add a unique sequential value which proceeds in lockstep with the primary key.

And one must ignore EVERY other consideration in making that decision, such as complexity, cost, record size, project size and every other possible consideration.

Myself I like to base my designs on the business needs and use best practices to make informed decisions as to what what might be best rather than accepting them as commandments from a supreme being.

Mycroft Holmes wrote:
There is absolutely nothing arbitrary about these rules.


It certainly is.

If not quote three authorative references that state exactly that.

Mycroft Holmes wrote:
Sybase would randomly skip a few 10k counters, some database system would fill
in the gaps, some developers want to fill the gaps.


And I am rather certain that at one time there was no way to generate a GUID as an intrinsic key in Oracle.

But the limitations of a specific database or version has nothing at all to do with anything.
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 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
jschell12-May-11 9:01
jschell12-May-11 9:01 

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.