Help with Script Task an Access database
- From: "Jaime Lucci" <jaimelucci@xxxxxxxxxxx>
- Date: Wed, 14 Feb 2007 14:06:25 -0300
Hi! I have a problem with a SSIS.
I want to compact an Access Database within a script task. The problem is
that when the code is going to execute the command (CompactDatabase) it
produces the followin error:
"You attempted to open a database that is already opened exclusively by user
'Admin' on machine 'XXXX'. Try again when the database is available."
I'm using a native OLEDB connection to connect with the access database and
I use this connection in a Data Flow Task to transfer data from a SQL Server
to the Access database. I supposed that this connection is still open when I
tried to compact the database with the Script Task (after this Data Flow
Task is finished). I'd tried to close the connection in the Script Task but
I need an ADO.Net connection to do that (referencing the connection with
Dts.Connections("ConnectionName").AcquireConnection(Dts.Transaction)), but I
can't use an ADO.Net connection in the Data Flow Task as a destination (only
OLDB).
Do you unterstand my problem? How can I compact the access database?
Thanks a lot.
Jaime Lucci
jaimelucci@xxxxxxxxxxx
Salta - Argentina
.
- Prev by Date: Re: How can I do this (please ignore )
- Next by Date: Re: Code to Change DB in Connection
- Previous by thread: How can I do this
- Next by thread: Migrate DTS package from 32-bit machine to 64-bit machine
- Index(es):
Relevant Pages
|