DataAdapters and Connections

  • Thread starter Thread starter JJ
  • Start date Start date
J

JJ

I was wondering if I have an existing DataAdapter created
and I had killed the connection to it. How do I setup a
new connection to same DataAdapter without having to
resetup the DataAdapter? So reconnect the DataAdapter
after a disconnect is what I'm after.

Thanks,

JJ
 
Why? Just destroy it and create a new one. Why do you want to hold on to it?
 
JJ said:
I was wondering if I have an existing DataAdapter created
and I had killed the connection to it. How do I setup a
new connection to same DataAdapter without having to
resetup the DataAdapter? So reconnect the DataAdapter
after a disconnect is what I'm after.

What kind of DataAdapter is it? If you change the connection within
each of the Command objects of a SqlDataAdapter, for instance, I would
imagine that would do the trick.
 
Back
Top