Click here to Skip to main content
15,906,463 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
how to insert data by using storedprocedure.... in my database table i should maintain identity

i have created stored procedure but from front end data does not inserted

i have faced this problem while using identity to my table...
please tell me solution for this...
Posted
Comments
Yogesh Pednekar 15-Mar-12 3:51am    
can you show me error message ?

Get a good example with source code:
Insert and retrieve data through stored procedure[^]
 
Share this answer
 
Comments
DGKumar 15-Mar-12 3:34am    
When i add IDENTITY to column it is not working
you cannot insert a value into the identity column by default. De identity column is self counting and will generate it's own value.
It is not wise to set your own value in an identity field but with Set Identity_Insert [table_name] ON it can be done.
see here[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900