The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DBD::FreeTDS - FreeTDS SQLServer and Sybase database driver for the DBI module

SYNOPSIS

 use DBI;;
 $dsn = "DBI:FreeTDS:database=$DATABASE;host=$DBHOST;port=$PORT";
 $dbh = DBI->connect($dsn, $user, $password);

DESCRIPTION

This is still in the early stages of development.

Multiple result sets

Sybase and SQLServer have the ability to return multiple result sets from a single SQL query. Since DBI does not indicate what should be done with multiple result sets I have taken an approach similar to DBD::Sybase by Michael Peppler. If a query might return multiple result sets you whould fetch in the normal fashion. When you hit the end of the result set you should consult the statement handle attribute 'more_results'.

For example-

   do {
     while (@rs = $sth->fetchrow) {
         process the data;
     }
   } while ($sth->{more_results});

Compute columns

Compute columns are not handle yet.

AUTHOR

Craig Spannring

SEE ALSO

DBI. perl(1).

COPYRIGHT

 Copyright 1998, 1999 CDS Networks, Inc., Medford Oregon
 
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions
 are met:

 1. Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.
 2. Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in
    the documentation and/or other materials provided with the
    distribution.
 3. All advertising materials mentioning features or use of this
    software must display the following acknowledgement:
      This product includes software developed by CDS Networks, Inc.

 4. The name of CDS Networks, Inc.  may not be used to endorse or
    promote products derived from this software without specific
    prior written permission.

 
 THIS SOFTWARE IS PROVIDED BY CDS NETWORKS, INC. ``AS IS'' AND ANY
 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL CDS NETWORKS, INC. BE
 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.