http://qs321.pair.com?node_id=305845


in reply to Re: Access to MS Server
in thread Access to MS Server

Other things that confuse me about this code:

Should DESCRIPTION not be put down as DATA_SOURCE_DESCRIPTION?

When I run this code I get:

Undefined subroutine &Win32::ODBC::DataSources called at Data_B.pl lin +e 13.

What is the subroutine that I need for this code to work?

Can I specify the Server as 'local'?

I have tried switching Win32 to WinNT.

When do I use Win32::ODBC and when do I use DBD::ODBC?

Please answer any points that you can.

Replies are listed 'Best First'.
Re: Re: Re: Access to MS Server
by monktim (Friar) on Nov 12, 2003 at 22:48 UTC
    Hi Win,

    The code should work as is. Try to run this code by itself and then check the ODBC data sources in the Control Pannel. You should see "matt" or whatever you assign $server to.