Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
4
Answers
Stored procedure is returning -1
krishna bharath
10y
856
1
Reply
Hello friends,
I am developing an application in MVC 4.0 using entity framework. When i insert a row in the database table, the value is inserted successfully. I am using scope_identity() to get the Identity value of the newly inserted column. When i execute the stored procedure, it is showing the Scope_identity() value correctly. But when I am trying to insert the value through front-end code using stored procedure, it is returning -1. Though the data is inserted successfully, it is returning -1. Please help me in solving this issue. I need to get the ID.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
show sql query result in label
unable to use the stored procedure in entity framework that