Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I am working in asp.net and Inserting 10,000 records into my database. Its takes a 25 mints to insert into database.

So Its seems like page is not working.

So I need to get the number of inserted records in middle of processing of insertion as 2 or 3 times. and need to display the number on my aspx page.

Ex: Total records 10,000

after 20 sec : Inserted records are into database : 1200

after 1 minths: Inserted records into database are : 3000

and so on.

How it is possible in asp.net ?

Pls suggest me.

Thanks
Posted

1 solution

Have a webservice that does the SQL insertion stuff. When the insertion job is started have the web method return a token by which the client (your ASP.NET applicaiton) can identify itself as the owner of said SQL insertion job. After the SQL insertion job has been started you can fetch the current status via Ajax from your application.

Cheers,

-MRB
 
Share this answer
 
Comments
NareshChingu 29-Apr-11 3:51am    
thanks for your answer sir.

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