Hi All. Can someone please help. I am using vs 2003 and SQL 2000. I have to insert about 50000 records into sql. I have tried to use a tread to do this, but when the user say closes the app while the second thread is still running, the app is closed, but the thread is still running and still inserting rows into the database. The code that i used to create a thread is as follows: Thread t1 = new Thread(new ThreadStart(ThreadLoadingData)); t1.Name = "ThreadLoadingData"; t1.Start(); I used the tread in the same class. In ThreadLoadingData i go to different classes for inserting the data. Thera are 5 tables that i must insert into, each one i use a different class. Now i also need to display a progress bar for this, how do i go about solving this problem Thanks
E
ewaldw
@ewaldw
Posts
-
Thread, User closes app while thread running -
App not repsonding-get data from SQLHi. I am new to the programming bussiness. I have a urgent question.I am still working on .net 2003. When i am on a windows form, and run a select statement from sql to retrieve data, about 5000 records, the app is displaying in the task manager - "Not Responding" and it is opening a new instance of that. When it has retrieved the data, it is then running again and the other instance dissapears. Can smeone please help. This app must write about 50 000 records in to sql in one stage after it has checked in the db for duplications, and cannot display that it is not responding. Thanks