I was trying to insert a new row into two tables which has a relationship between. I wrote the stored procedure as follows.
ALTER PROCEDURE InsertUserProfile
Create Table tbl_user_login ( **ID INT Identity(1,1),** UserID varchar10, Pass varchar50 , Enabled int, Permission int , Rank int );
Make ID column as Identity(1,1) that will be auto incremented column and that will solve your problem. Make it in both tables.