Home All Groups Group Topic Archive Search About


Author
7 Aug 2005 8:40 PM
Bob Trapp
I know that ODBC is out of date, but I need to create an ODBC source with
scripting.  I use VBScript to create enter all the register values.  This
only works if someone has previously set up an ODBS data source name on the
target computer.  If I follow up by using the ODBC Administrator tool, it
recognizes all the data I entered and then the data source works.  Running
the administrator manually defeats teh purpose of the script.

Does any one know what part I'm missing?  Even the MSDN stuff I've read says
that programmatic creation of an ODBC DSN only works if the computer has seen
such a source before.  Any help would be appreciated.

Author
7 Aug 2005 9:09 PM
Michael Harris (MVP)
Bob Trapp wrote:
> I know that ODBC is out of date, but I need to create an ODBC source
> with scripting.  I use VBScript to create enter all the register
> values.  This only works if someone has previously set up an ODBS
> data source name on the target computer.  If I follow up by using the
> ODBC Administrator tool, it recognizes all the data I entered and
> then the data source works.  Running the administrator manually
> defeats teh purpose of the script.
>
> Does any one know what part I'm missing?  Even the MSDN stuff I've
> read says that programmatic creation of an ODBC DSN only works if the
> computer has seen such a source before.  Any help would be
> appreciated.


vbscript create odbc group:*.scripting - Google Groups
http://groups.google.com/groups?q=vbscript%20create%20odbc%20%20group:*.scripting


--
Michael Harris
Microsoft MVP Scripting

AddThis Social Bookmark Button