From hatuan05 at gmail.com Wed Jan 5 15:25:49 2011 From: hatuan05 at gmail.com (tuanhoanganh) Date: Wed, 5 Jan 2011 22:25:49 +0700 Subject: [Dbi-link-general] DBI Link to SQL Server 2008 question? Message-ID: I knows dbi-link can work with SQL Server by dbi:Sybase connect but i don't know how to download and config sybase lib to make dbi:Sybase work with SQL Server. Is there any tutorial or link help dbi-link work with SQL Server. Thank in advance Tuan Hoang ANh -------------- next part -------------- An HTML attachment was scrubbed... URL: From filip.rembialkowski at gmail.com Wed Jan 5 18:12:06 2011 From: filip.rembialkowski at gmail.com (=?UTF-8?Q?Filip_Rembia=C5=82kowski?=) Date: Wed, 5 Jan 2011 19:12:06 +0100 Subject: [Dbi-link-general] DBI Link to SQL Server 2008 question? In-Reply-To: References: Message-ID: 2011/1/5 tuanhoanganh > I knows dbi-link can work with SQL Server by dbi:Sybase connect but i don't > know how to download and config sybase lib to make dbi:Sybase work with SQL > Server. > > Is there any tutorial or link help dbi-link work with SQL Server. > > I remember that I suceeded with setting up dbi-link to MS SQL by by configuring freetds + unixodbc first, than compiling DBD::Sybase. similar to this: http://www.perlmonks.org/?node_id=392385 HTH greets, Filip -------------- next part -------------- An HTML attachment was scrubbed... URL: From filip.rembialkowski at gmail.com Wed Jan 5 18:14:30 2011 From: filip.rembialkowski at gmail.com (=?UTF-8?Q?Filip_Rembia=C5=82kowski?=) Date: Wed, 5 Jan 2011 19:14:30 +0100 Subject: [Dbi-link-general] DBI Link to SQL Server 2008 question? In-Reply-To: References: Message-ID: 2011/1/5 tuanhoanganh > I knows dbi-link can work with SQL Server by dbi:Sybase connect but i don't > know how to download and config sybase lib to make dbi:Sybase work with SQL > Server. > > Is there any tutorial or link help dbi-link work with SQL Server. > > and if you are on Windows then use DBD::ODBC. Filip -------------- next part -------------- An HTML attachment was scrubbed... URL: From hatuan05 at gmail.com Thu Jan 6 02:49:44 2011 From: hatuan05 at gmail.com (tuanhoanganh) Date: Thu, 6 Jan 2011 09:49:44 +0700 Subject: [Dbi-link-general] DBI Link to SQL Server 2008 question? In-Reply-To: References: Message-ID: I am using postgresql 9.0.1 x86 on windows 2008 R2 I test DBI:ODBC connect on plperl but have error. I can't fix it. Did you test dbi-link on postgreSQL 8, 9 with DBI:ODBC CREATE OR REPLACE FUNCTION test_connection() RETURNS void AS $BODY$ use DBI; my $dbh = DBI->connect( 'dbi:ODBC:DRIVER=SQL Server;Server=127.0.0.1;Database=TEST;Uid=sa;Pwd=abc123ABC;Port=1433', 'sa', 'abc123ABC', { AutoCommit => 1, RaiseError => 1, } ); if ($DBI::errstr) { die <connect( 'dbi:ODBC:DRIVER=SQL Server;Server=127.0.0.1;Database=TEST;Uid=sa;Pwd=abc123ABC;Port=1433', 'sa', 'abc123ABC', { AutoCommit => 1, RaiseError => 1, } ) or die "Did not connect to db."; print join(',', $h->tables); Please help me. Thanks in advance Tuan Hoang ANh 2011/1/6 Filip Rembia?kowski > > > 2011/1/5 tuanhoanganh > >> I knows dbi-link can work with SQL Server by dbi:Sybase connect but i >> don't know how to download and config sybase lib to make dbi:Sybase work >> with SQL Server. >> >> >> Is there any tutorial or link help dbi-link work with SQL Server. >> >> > > and if you are on Windows then use DBD::ODBC. > > Filip > > -------------- next part -------------- An HTML attachment was scrubbed... URL: