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

Database

 
AnswerRe: How to recover identity ID after insert in MSSQL 2008? Pin
DaveAuld3-May-11 7:34
professionalDaveAuld3-May-11 7:34 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
Igor Jas3-May-11 11:07
Igor Jas3-May-11 11:07 
AnswerRe: How to recover identity ID after insert in MSSQL 2008? Pin
PIEBALDconsult4-May-11 1:38
mvePIEBALDconsult4-May-11 1:38 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
jschell4-May-11 8:47
jschell4-May-11 8:47 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
Mycroft Holmes5-May-11 3:46
professionalMycroft Holmes5-May-11 3:46 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
Chris Meech5-May-11 3:54
Chris Meech5-May-11 3:54 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
jschell5-May-11 8:07
jschell5-May-11 8:07 
GeneralRe: How to recover identity ID after insert in MSSQL 2008? Pin
Igor Jas5-May-11 9:24
Igor Jas5-May-11 9:24 
From my personal experience guids may affect the performance significantly if they are used for primary key and are randomly generated. To solve this i've read somewhere that is recommended to use NEWSEQUENTIALID() as default, instead NEWID() to generate keys and with clustered indexes the performances will be much better. However if I use these keys as foreign key in other table this will not help as they will not be ordered, so I choose to use integers for primary key. The idea is MSSQL to generate new id and to return it to object in code, but also I've read there might be some problems with using @@IDENTITY or SCOPE_IDENTITY()
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 
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 

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.