hello Peter,
just to clarify a bit more: could you provide some details as to what server
you are connecting to (AS2000 or AS2005) and what version of adomd.net you
are using?
in general, the session id could be used to work with the same session with
multiple connections (or maybe when you want to work with the same session
with both oledb and adomd.net connection for example). usually you would
open a connection, get it's session id and assign that session id to the
other connection object before opening it.
however, i'm not sure that the way you'd like to use this would always work.
indeed, using the connection.Close(false) should instruct adomd.net to not
to send the "end session" request to server and the session would be alive
when connection is closed. however, if there are no active connections
associated with this session id, server might decide to drop the session
(after certain time had elapsed), and thus next time you try to use it
session might be already gone. can it be the case in your example? or you
see that the session is always gone even if you re-connect right away?
hope this clarifies some,
- mary
"Reda" <piotr.nusbaum@domdata.com> wrote in message
news:e3v1lo$64g$1@helios.domdata.com...
|