Hi! My first post here and hoping someone has some answers.

I'm developing an application that will be multithreaded. The primary job of the thread will be to read some xml data from a website, parse it, and save it to sql server. I have a list of customers, each of which I have to get xml data for.

I have a customer class and a list <of Customer> and a dbOps class to handle db operations.

My question is if in the thread's main method, I pass in the customer from the list, instantiate a new dbOps object, does this make calls to the dbOps methods thread safe?

Lets say I have 5 threads doing this and each one has it's own dbops object and each is calling a stored proc to insert of update. Where do I need to worry about thread safety? Do I need to use transactions in the stored procs?

Thanks,

Rut