Skip to Content.
Sympa Menu

freetds - [freetds] Perl insert query

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "nitin" <nitin.v AT bplmail.com>
  • To: <freetds AT lists.ibiblio.org>
  • Subject: [freetds] Perl insert query
  • Date: Sun, 23 Mar 2003 17:25:57 +0530

I've created a database called 'test' in MS SQL 7. When every i try to insert
a query using perl on Linux, i get the following error:

DBD::Sybase::db do failed: Server message number=208 severity=16 state=1
line=1 server=STREAM text=Invalid object name 'test'. at test.pl line 10.

The perl code is:

#!/usr/bin/perl
use DBI;

$ENV{'SYBASE'} = '/usr/local/freetds' unless $ENV{'SYBASE'};
my $dbh = DBI->connect('dbi:Sybase:server=test','test','test');
my $sql = qq/
INSERT INTO test
VALUES ('a','b',1)
/;
my $rv = $dbh->do( $sql );

$dbh->disconnect;


Can someone help me!!!!!!!!!

Thanx a lot




Archive powered by MHonArc 2.6.24.

Top of Page