By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,420 Members | 1,417 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,420 IT Pros & Developers. It's quick & easy.

DataAdapters and Connections

P: n/a
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
Nov 15 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Why? Just destroy it and create a new one. Why do you want to hold on to it?

--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

"JJ" <an*******@discussions.microsoft.com> wrote in message
news:93****************************@phx.gbl...

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

Nov 15 '05 #2

P: n/a
JJ
Do u mean the DataAdapter Destroy or the connection?

JJ

-----Original Message-----
Why? Just destroy it and create a new one. Why do you want to hold on to it?
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

"JJ" <an*******@discussions.microsoft.com> wrote in messagenews:93****************************@phx.gbl...

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

.

Nov 15 '05 #3

P: n/a
JJ <an*******@discussions.microsoft.com> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.