Re: Accessing a MS Sqlserver 2000 database via Perl

From: Jenda Krynicky (Jenda_at_Krynicky.cz)
Date: 02/21/05


To: <dbi-users@perl.org>
Date: Mon, 21 Feb 2005 14:06:12 +0100

From: "Shailesh Patel" <Shailesh.Patel@henderson.com>
> I am trying to get hold of Perl modules and code examples which allow
> me to connect to a MS SqlServer 2000 database, query and manipulate
> database tables?
>
> I know I can use the Win32::ODBC module but I believe this requires a
> pre-defined ODBC DSN connection. I wanted the ability to specify the
> Server, database, login details dynamically.

You can use both Win32::ODBC and DBI+DBD::ODBC without predefined
DSNs. The docs of both modules contain examples.

I would use DBI + DBD::ODBC myself.

Jenda
===== Jenda@Krynicky.cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery



Relevant Pages

  • Re: Import bayes_* for SpamAssassin from Debian to FreeBSD
    ... using on Debian -- and you'll have to compile the perl modules ... and db41 on Debian. ... no database of that kind found, ... Can you confirm that the copies of the files on the FreeBSD box are byte-for-byte ...
    (freebsd-questions)
  • Re: DBMS and lisp, etc.
    ... Naively implemented with SQL, again for 10 ... (1 query for the initial orders, 1 query for each order for its ... soon as you upgrade to the SQL database. ... (eq (order-customer orderA) ...
    (comp.lang.lisp)
  • Re: OT: SQL
    ... query processing. ... FROM Employees e, Employees m, Management mgt ... Manager and Employee Salaries. ... The scheme used does not model database files in general, ...
    (sci.logic)
  • Re: access 2003
    ... I removed the parameters from the form query source. ... boxes from the form header, events, code, etc and ran the form query source ... forms queries and the SQL because syntax of the SQL will change randomly. ... the Access 97 database, I wouldn't have thought any expressions would be ...
    (microsoft.public.access.conversion)
  • RE: Import external data - web query
    ... Your reply for my query is very extensive, this is for importing a file from ... The data source I want isn't listed in the Select Data Source dialog box. ... information used to connect to a database. ... Check your driver First, make sure you have the right ODBC driver (Open ...
    (microsoft.public.excel.misc)