Does anyone know if you can call an Access function from DTS?
I'm trying to delete data from an Access database, Compact the database, and load new data. My snag is calling a function in Access to compact the database.
Suggestions?I don't think you can actually call Access code from within DTS, but since DTS effectively is VBA (http://msdn.microsoft.com/vba/), you can write VB code that will do the same thing using ADO (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dtssql/dts_addf_ax_06er.asp) from within DTS.
-PatP|||Sounds like using a nuclear bomb to kill a mosquito...
Maybe a bat file that launches a different access database, then uses autoexec does the work then closes...
I would probably do this is a sproc with bcp as well, and have the job scheduled...
What's the source of the data?
Where do you ski, or is it just a nickname?sql
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment