If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > AsaConnection Problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-31-04, 10:19
IkBenOtto IkBenOtto is offline
Registered User
 
Join Date: Aug 2004
Posts: 2
AsaConnection Problem

Hello,

I've got a little problem. When I connect to my Sybase database with a webapplication I get two connections. When I do the same with a win32 application i get only 1 connection.

This is the code:
' Dim myAsaConnection As New AsaConnection("...")
' myAsaConnection.Open()
' myAsaConnection.Close()

Can someone help me with this?

Greetz,

Martijn
Reply With Quote
  #2 (permalink)  
Old 08-31-04, 19:45
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Not sure why you would be getting two conenctions. perhaps if you posted the web app code I may be able to come up with something (the above code looks like the windows app code).

One possible thing might be that you are not setting your connections to nothing (eg set ASAConnection=nothing) which will kill the object completely and perhaps IIS is managing some connection pooling...

Like I said, without the code it is hard to say....
Reply With Quote
  #3 (permalink)  
Old 09-01-04, 02:31
IkBenOtto IkBenOtto is offline
Registered User
 
Join Date: Aug 2004
Posts: 2
This is the only code the progam has. I've made a webapplication in visual studio.net, add a button and put code behind the button.

What you say works but on a very strange way.

I tried it earlier to set the connection to nothing and it doesn't work. I've tried it now and it works. But i have to restart my computerc change the code and test the connection. If it doesn't work right: restart computer, chagne code and test connection. Strange but true.

Now it works fine. (but for how long?)

Last edited by IkBenOtto; 09-01-04 at 02:45.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On