Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
This is Manjari.I am facing the problem 2 -3 times while creating the users in aspnetdb database .Usually it creates but after sometime its got automatically deleted.It is not happening everytime while creating the users account.I am wondering,how some of the records are automaically deleted.I have checked the schedulers and triggers also because of the confirmation.
Please suggest me the right path,Why this is happening ...
Any help really appreciable.

Thanks,
Manjari
Posted
Comments
Jitendra Ku. Sahoo 28-Oct-14 8:08am    
Can you give more details or paste your code here ?
jagnyadatta 29-Oct-14 1:28am    
i am using insert statement for creating the users in aspnetdb.dbo.aspnet_users
the user is creating in the db.but after 2-3 days automatically 2-3 records are deleting...from log files also..i m not getting any error ..why it is happening ...i am not getting any type of clue to sort out
Maciej Los 28-Oct-14 12:02pm    
Are you using transactions?
jagnyadatta 29-Oct-14 1:25am    
no mac,I am not using any transactions...with in 2-3 days some records are automatically deleting from aspnetdb.dbo.aspnet_users table ...today also 3 users record deleted automatically ..again i have created those records for giving access ..i m wondering ...why its happening
i checked log files also..but no help

1 solution

Ex-
create trigger trg_delete on table_name for delete
declare @id bigint;
select @id=i.id from deleted d
as
begin
delete from table_name where id=@id
end

whenever delete table any key used where condition.
 
Share this answer
 
v2
Comments
jagnyadatta 4-Nov-14 23:50pm    
Thanks for responding...But my problem is ...i am not deleting the records...after creation of records ....with in 2-3 days some of the records are deleting from aspnetdb.dbo.aspnet_users table....why it is happening and how to fix this issue..please let me know if you have some idea on this...

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