Hi workerbee2,
We don't have a specific ODBC provider but system DSNs are stored in the registry, so you can grab it using the regkey and regvalue providers.
I created a system DSN called TestODBC and then searched the registry to determine where it was stored.
Here's an example manifest that captures this DSN (saved as manifest.xml):
<ODBC>
<regkey path="HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\TestODBC" />
<regvalue path="HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources\TestODBC" />
</ODBC>
Then sync to a package:
msdeploy -verb:sync -source:manifest=manifest.xml -dest:package=c:\ODBC.zip
And sync from the package:
msdeploy -verb:sync -source:package=c:\ODBC.zip -dest:auto
Let me know if you have any questions or different ODBC connections that need to be synced.
thanks,
-faith
This posting is provided "AS IS" with no warranties, and confers no rights.