Hi.
Is there a safe, reasonably easy way to copy DSN's once they've been
created?
We found a fairly painless way to do this. We just run a VBScript remotely
to create DSN's on each of the workstations that need them. The following
VBScript will create a System DSN on a Windows XP workstation, name it
TrgSched, connect to the CAL-SQL01 SQL Server, point to the Training
database, and assign Joe as the login name. When we don't want the DSN to
be visible in the ODBC manager, we don't write the ODBC Data Sources Windows
Registry key.
(Watch out for word wrap.)
Dim objWS
Set objWS = CreateObject ("WScript.Shell")
objWS.RegWrite
"HKLM\Software\ODBC\ODBC.INI\TrgSched\Driver","C:\WINDOWS\System32\sqlsrv32.dll"
objWS.RegWrite "HKLM\Software\ODBC\ODBC.INI\TrgSched\Server","CAL-SQL01"
objWS.RegWrite "HKLM\Software\ODBC\ODBC.INI\TrgSched\Database","Training"
objWS.RegWrite "HKLM\Software\ODBC\ODBC.INI\TrgSched\LastUser","Joe"
objWS.RegWrite "HKLM\Software\ODBC\ODBC.INI\ODBC Data
Sources\TrgSched","SQL Server"
set objWS = Nothing
HTH.
Gunny
See
http://www.QBuilt.com for all your database needs.
See
http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
http://www.Access.QBuilt.com/html/expert_contributors2.html for contact
info.