Can we create insert and show the record from the table in single stored procedure
Can we create insert and show the record from the table in single stored procedure ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ankit ShivnakrPosted Jun 8, 2012, 9:36 AM
This will help you a lot
http://forums.asp.net/t/1479564.aspx/1
&
http://forums.asp.net/t/1099198.aspx/1
Happy Coding
brunda kPosted Jun 8, 2012, 6:43 AM
yes, we can
create proc sp_test
As
Begin
BEGIN TRANSACTION
insert into Test values(121,'latest','test',0)
COMMIT TRANSACTION
select * from Test
End