473,508 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataAdapters and Connections

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
3 1200
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2397
by: Mudge | last post by:
Hi, My hosting provider only allows me to use 50 connections to my MySQL database that my Web site will use. I don't know what this 50 connections means exactly. Does this mean that only 50...
0
1487
by: hillscottc | last post by:
I have two DataAdapters....1)daStandard does a SELECT *, and 2)daDuplicates uses a stored proc which returns only rows with some duplicate data. Problem is, when I butRefresh_Click and I have...
2
1285
by: Vik | last post by:
Is it possible to loop through all dataadapters on page? Thanks
4
1259
by: Jon Maz | last post by:
Hi, I just read the following in an old NG thread: "when you use the adapter with a closed connection it will open it, do your requested database access, and close it immediately. If you use...
17
8412
by: Peter Proost | last post by:
Hi Group, I've got an interesting problem, I don't know if this is the right group but I think so because everything I've read about it so far says it's a .net problem. Here's the problem, we're...
2
1656
by: JohnT | last post by:
Okay... I'm using VB.net (2003) and I am accessing an MS Access DB file. I have two DataAdapters that I use to search for specific info. The two of them are similar except one is a Date, the...
0
1039
by: Tina | last post by:
I converted my project and it runs ok but when I look at that .aspx page there are no dataadapters. I have tried help and msdn search with words like "conversion" "upgrade" " 2003 to 2005" and...
0
964
by: drisso | last post by:
I found it convenient in asp.net 1.1 that you could easily define a dataadapter through a wizard and when the page reloads the initialize component would recreate it for you each time. Now that...
5
3366
by: Usman Jamil | last post by:
Hi I've a class that creates a connection to a database, gets and loop on a dataset given a query and then close the connection. When I use netstat viewer to see if there is any connection open...
0
872
by: gjok | last post by:
Hi. I have a few questions and I am hoping some kind programmer out there can offer me some guidance. I am trying to understand database interaction in .NET, and I'm having a really hard time as...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7489
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5047
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4705
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1547
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
414
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.