this is my query..
INSERT INTO Model (Id,Name,ValidationDate,NextValidationDate,DateCreated,DateUpdated,BusinessGroup,Country,UserId,StatusId,Deleted,RejectionNote)
SELECT Id,Name+'Copy',ValidationDate,NextValidationDate,DateCreated,DateUpdated,BusinessGroup,Country,UserId,StatusId,Deleted,RejectionNote FROM Modelwhere Id=@modelId
{Id will be Print on this section}
after inserting the record in this table i want to get Id (first Coloumn).

ketan borsdiyaRank #2,258 · 624 reputationPosted Jul 7, 2016, 5:26 AM EDT
ketan borsdiyaRank #2,258 · 624 reputationPosted Jul 7, 2016, 2:49 AM EDT
Gagan Gautam152 reputationPosted Jul 7, 2016, 3:11 AM EDT
ketan borsdiyaRank #2,258 · 624 reputationPosted Jul 7, 2016, 3:17 AM EDT
Gagan Gautam152 reputationPosted Jul 7, 2016, 3:25 AM EDT
ketan borsdiyaRank #2,258 · 624 reputationPosted Jul 7, 2016, 3:52 AM EDT
Gagan Gautam152 reputationPosted Jul 7, 2016, 4:01 AM EDT
Vinay SinghRank #604 · 4K reputationPosted Jul 7, 2016, 2:05 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts