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

Database

 
GeneralRe: Need some Oracle help if possible Pin
jschell5-May-11 8:30
jschell5-May-11 8:30 
GeneralRe: Need some Oracle help if possible Pin
Michael J. Eber5-May-11 8:47
Michael J. Eber5-May-11 8:47 
GeneralRe: Need some Oracle help if possible Pin
jschell6-May-11 11:04
jschell6-May-11 11:04 
GeneralRe: Need some Oracle help if possible Pin
Chris Meech5-May-11 8:31
Chris Meech5-May-11 8:31 
GeneralRe: Need some Oracle help if possible Pin
Michael J. Eber5-May-11 8:49
Michael J. Eber5-May-11 8:49 
GeneralRe: Need some Oracle help if possible Pin
Chris Meech5-May-11 8:53
Chris Meech5-May-11 8:53 
AnswerRe: Need some Oracle help if possible Pin
SilimSayo5-May-11 8:47
SilimSayo5-May-11 8:47 
QuestionHow to recover identity ID after insert in MSSQL 2008? Pin
Igor Jas3-May-11 7:15
Igor Jas3-May-11 7:15 
I've been searching the net for this but I couldn't find concrete answer what to use to recover identity ID from INSERT stored procedure.
What is the correct way to get the ID as output in stored procedure (should I use @@IDENTITY, SCOPE_IDENTITY() or something else).


CREATE TABLE [dbo].[tbl_Table](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Name] [varchar](50) NULL
)

Thanks,
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 
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 

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.