Re: .ldb file stays when connection is closed
From: Scott M. (s-mar_at_BADSPAMsnet.net)
Date: 02/25/04
- Next message: Scott M.: "Re: Datagrid Question -- Beginner"
- Previous message: Lloyd Dupont: "Re: Puzzled & "SELECT Scope_Identity()""
- In reply to: Derrick: ".ldb file stays when connection is closed"
- Next in thread: Kevin Yu [MSFT]: "Re: .ldb file stays when connection is closed"
- Reply: Kevin Yu [MSFT]: "Re: .ldb file stays when connection is closed"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 24 Feb 2004 23:23:11 -0500
My guess is that ADO.NET uses connection pooling, so even when you close
your connection, it is still in the pool?
"Derrick" <Derrick_no_spam@geostrategies.ca> wrote in message
news:MVT_b.610246$X%5.68987@pd7tw2no...
> I am working on a vb.net app that access an MS Access Data base.
>
> I am having a confusing problem, and was hoping to get a little
> clarification.
>
> One form creates the .mdb file and creates the tables and constraintes
using
> DDL and a command object using its executeNonQuery() method. When I close
> the connection, the .ldb file stays. I checked the connection state and
it
> reports closed.
>
> In another form, I connect to the data base, retreive information using a
> datareader and close the connection. The .ldb file disappears.
>
> Both forms create an instance of same class and call the same methods to
> connect and disconnect.
>
> So my questions are:
> 1. should the .ldb file disappear when the connection is closed?
>
> 2. If it should, what could cause it to remain when the connection is
> closed?
>
> Thanks for your help
>
> Derrick
>
>
- Next message: Scott M.: "Re: Datagrid Question -- Beginner"
- Previous message: Lloyd Dupont: "Re: Puzzled & "SELECT Scope_Identity()""
- In reply to: Derrick: ".ldb file stays when connection is closed"
- Next in thread: Kevin Yu [MSFT]: "Re: .ldb file stays when connection is closed"
- Reply: Kevin Yu [MSFT]: "Re: .ldb file stays when connection is closed"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|