Re: creating a dsn in script
From: Steve Seguis [MVP] (steve_NO_SPAM_at_scriptmation.com)
Date: 12/09/04
- Next message: Michael Harris \(MVP\): "Re: Cannot Retrieve UserName Property in Windows Script Host"
- Previous message: aratheff: "Re: net time"
- In reply to: Dan D.: "creating a dsn in script"
- Next in thread: Gerry Hickman: "Re: creating a dsn in script"
- Reply: Gerry Hickman: "Re: creating a dsn in script"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 09 Dec 2004 22:32:22 GMT
The easiest way is to create the DSN on one machine, then go into the
registry and export these settings.
For User DSNs, look in:
HKEY_CURRENT_USER\Software\ODBC\ODBC.INI
For System DSNs, look in:
HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI
Just right click on the key under the ODBC.INI key that pertains to your DSN
and export to a reg file. You can then import it in another machine by
running:
regedit /s C:\dsn.reg
Where C:\dsn.reg is the path and filename for your reg file. Note: This
assumes that whatever ODBC provider your DSN is using also exists on the
other PCs.
Hope that helps.
-- Steve Seguis - MCSE, MS-MVP, SCJP SCRIPTMATION Automating the Enterprise http://www.scriptmation.com "Dan D." <DanD@discussions.microsoft.com> wrote in message news:77D469F9-29EB-4CB7-BA9A-D99512B4CD4F@microsoft.com... > Is it possible to create a dsn on every PC we have in script? I thought I > saw > an example somewhere about a year ago but now I can find anything on it. > > Thanks, > -- > Dan D.
- Next message: Michael Harris \(MVP\): "Re: Cannot Retrieve UserName Property in Windows Script Host"
- Previous message: aratheff: "Re: net time"
- In reply to: Dan D.: "creating a dsn in script"
- Next in thread: Gerry Hickman: "Re: creating a dsn in script"
- Reply: Gerry Hickman: "Re: creating a dsn in script"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|