Click here to Skip to main content
16,004,991 members
Home / Discussions / Database
   

Database

 
GeneralRe: Search Sql table for a word contains some letters Pin
Ashfield7-Nov-08 1:43
Ashfield7-Nov-08 1:43 
GeneralRe: Search Sql table for a word contains some letters Pin
Wendelius8-Nov-08 4:35
mentorWendelius8-Nov-08 4:35 
QuestionCross Join Pin
Meysam Mahfouzi5-Nov-08 19:59
Meysam Mahfouzi5-Nov-08 19:59 
AnswerRe: Cross Join Pin
Wendelius6-Nov-08 7:53
mentorWendelius6-Nov-08 7:53 
Questioninsert_update Stored procedure and return Identity value Pin
wajans5-Nov-08 18:35
wajans5-Nov-08 18:35 
AnswerRe: insert_update Stored procedure and return Identity value Pin
Ashfield5-Nov-08 21:11
Ashfield5-Nov-08 21:11 
AnswerRe: insert_update Stored procedure and return Identity value Pin
wajans6-Nov-08 1:12
wajans6-Nov-08 1:12 
AnswerRe: insert_update Stored procedure and return Identity value Pin
Ben Fair7-Nov-08 2:17
Ben Fair7-Nov-08 2:17 
The best way to do this, in my opinion, is to use the SCOPE_IDENTITY() function. This function will return the most recent identity value created in the current scope. Returning the value for the current scope is important because if you have triggers firing that perform inserts the @@IDENTITY variable will return the last identity value created, even if it was from a different table because of a trigger. You should use:

set @iJobID = SCOPE_IDENTITY()

after the insert.

Keep It Simple Stupid! (KISS)

GeneralRe: insert_update Stored procedure and return Identity value Pin
wajans7-Nov-08 2:55
wajans7-Nov-08 2:55 
QuestionAtomic Sql Statements (Transaction) Pin
Meysam Mahfouzi5-Nov-08 4:41
Meysam Mahfouzi5-Nov-08 4:41 
AnswerRe: Atomic Sql Statements (Transaction) Pin
J4amieC5-Nov-08 4:46
J4amieC5-Nov-08 4:46 
GeneralRe: Atomic Sql Statements (Transaction) Pin
Meysam Mahfouzi5-Nov-08 4:50
Meysam Mahfouzi5-Nov-08 4:50 
AnswerRe: Atomic Sql Statements (Transaction) Pin
Meysam Mahfouzi5-Nov-08 4:48
Meysam Mahfouzi5-Nov-08 4:48 
AnswerRe: Atomic Sql Statements (Transaction) Pin
Wendelius5-Nov-08 8:04
mentorWendelius5-Nov-08 8:04 
GeneralRe: Atomic Sql Statements (Transaction) Pin
PIEBALDconsult5-Nov-08 13:33
mvePIEBALDconsult5-Nov-08 13:33 
GeneralRe: Atomic Sql Statements (Transaction) Pin
Wendelius6-Nov-08 7:39
mentorWendelius6-Nov-08 7:39 
GeneralRe: Atomic Sql Statements (Transaction) Pin
PIEBALDconsult6-Nov-08 11:27
mvePIEBALDconsult6-Nov-08 11:27 
GeneralRe: Atomic Sql Statements (Transaction) Pin
Wendelius7-Nov-08 6:36
mentorWendelius7-Nov-08 6:36 
Questionsql server 2005 query xml datatype fields Pin
arkiboys5-Nov-08 2:55
arkiboys5-Nov-08 2:55 
AnswerRe: sql server 2005 query xml datatype fields Pin
Wendelius5-Nov-08 10:33
mentorWendelius5-Nov-08 10:33 
GeneralRe: sql server 2005 query xml datatype fields Pin
arkiboys5-Nov-08 10:54
arkiboys5-Nov-08 10:54 
GeneralRe: sql server 2005 query xml datatype fields Pin
Wendelius5-Nov-08 11:13
mentorWendelius5-Nov-08 11:13 
GeneralRe: sql server 2005 query xml datatype fields Pin
arkiboys6-Nov-08 1:50
arkiboys6-Nov-08 1:50 
GeneralRe: sql server 2005 query xml datatype fields Pin
Wendelius6-Nov-08 7:06
mentorWendelius6-Nov-08 7:06 
Questiontransfering data fro one table to another Pin
prasadbuddhika5-Nov-08 1:07
prasadbuddhika5-Nov-08 1:07 

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.