I have a stored proc that inserts data into the resource table. The key to the table is resource_id. The stored proc is set up to pass all but the resource_id as this is automatically generated.
Initially I had a problem where the auto increment was not working as it could not set the resource_id to null. I have rectified this by by setting the Identity to Yes. The stored proc now inserts to the table buy when I select from the table 'where resource_id = 2' it does not return any rows yet it exists in the database. Apart from the resource_id all other data is the same.
I cant seem to solve this issue. Any ideas?
Initially I had a problem where the auto increment was not working as it could not set the resource_id to null. I have rectified this by by setting the Identity to Yes. The stored proc now inserts to the table buy when I select from the table 'where resource_id = 2' it does not return any rows yet it exists in the database. Apart from the resource_id all other data is the same.
I cant seem to solve this issue. Any ideas?