Skip to Content.
Sympa Menu

freetds - RE: [freetds] Perl and MS SQL

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Vecchio, Peppi" <PVecchio AT orangelake.com>
  • To: 'FreeTDS Development Group' <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Perl and MS SQL
  • Date: Tue, 11 Mar 2003 16:40:43 -0500


Here's some sample code:

$ENV{'SYBASE'} = '/usr/local/freetds' unless $ENV{'SYBASE'};
my $dbh =
DBI->connect('dbi:Sybase:server=172.1.162.3;database=Employee-DB','sa','');
my $last_name = param("last_name");
my $a1 = $dbh->quote( $last_name );
my $sql = qq/
INSERT INTO employee_info
( last_name) VALUES ( $a1 )
/;
my $rv = $dbh->do( $sql );

$dbh->disconnect;

Peppi Vecchio | Web Developer
TECHNOLOGY SERVICES GROUP



-----Original Message-----
From: Peter Milburn [mailto:peterm AT sportodds.com]
Sent: Tuesday, March 11, 2003 4:32 PM
To: Freetds (E-mail)
Subject: [freetds] Perl and MS SQL


Hi All,


We currently are using Freetds and PHP to connect to a MS SQL Server, Does
anyknow how to get Perl and Freetds to connect to a MS SQL server


Thanks,

Pete
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds




Archive powered by MHonArc 2.6.24.

Top of Page