dbTalk Databases Forums  

Sybperl v DBD::Sybase

comp.databases.sybase comp.databases.sybase


Discuss Sybperl v DBD::Sybase in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Martin Hanna
 
Posts: n/a

Default Sybperl v DBD::Sybase - 05-07-2004 , 07:56 AM






I remember when I worked in Ingres we used "Ingperl" and when the Perl DBD
for Ingres came out we migrated all our perl scripts away from Ingperl. I'm
contemplating introducing Perl on our servers (management fear of anything
bar shell scripts being ignored) and I'm wondering if anyone can weigh up
the pros and cons for Sybperl and DBD::Sybase. Are people gradually moving
onto DBD? Is Sybperl dominant? What are the functionality benefits from
each? Any views welcome.

TIA,
Martin



Reply With Quote
  #2  
Old   
Michael Peppler
 
Posts: n/a

Default Re: Sybperl v DBD::Sybase - 05-07-2004 , 10:54 AM






On Fri, 07 May 2004 13:56:48 +0100, Martin Hanna wrote:

Quote:
I remember when I worked in Ingres we used "Ingperl" and when the Perl DBD
for Ingres came out we migrated all our perl scripts away from Ingperl.
I'm contemplating introducing Perl on our servers (management fear of
anything bar shell scripts being ignored) and I'm wondering if anyone can
weigh up the pros and cons for Sybperl and DBD::Sybase. Are people
gradually moving onto DBD? Is Sybperl dominant? What are the functionality
benefits from each? Any views welcome.
There's some info on my home page (http://www.mbay.net/~mpeppler) and
http://www.peppler.org/

I should point out that "sybperl" is not a separate binary anymore, but
rather the name for a set of modules (Sybase::CTlib, etc) that provide
access to the OpenClient libs.

Personally I tend to use the Sybase::Simple, which is a simple module
built on top of Sybase::CTlib.

Michael
--
Michael Peppler Data Migrations, Inc.
mpeppler (AT) peppler (DOT) org http://www.peppler.org/
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
long term contract positions - http://www.peppler.org/resume.html



Reply With Quote
  #3  
Old   
Ed Avis
 
Posts: n/a

Default Re: Sybperl v DBD::Sybase - 05-12-2004 , 03:10 AM



"Martin Hanna" <postmaster (AT) SPAMIGNOREmovillaIGNOREplus (DOT) com> writes:

Quote:
I'm wondering if anyone can weigh up the pros and cons for Sybperl
and DBD::Sybase. Are people gradually moving onto DBD?
Sybperl includes perl wrappers for dblib and ctlib. Ctlib is slightly
more modern but both of them are essentially C APIs. I find the DBI
interface much more convenient, particularly for error handling. A
bonus is that you can use the same style of code for Sybase and other
RDBMSes. I haven't tried the Sybase::Simple module included with
sybperl.

--
Ed Avis <ed (AT) membled (DOT) com>


Reply With Quote
  #4  
Old   
Martin Hanna
 
Posts: n/a

Default Re: Sybperl v DBD::Sybase - 05-14-2004 , 06:40 PM



"Ed Avis" <ed (AT) membled (DOT) com> wrote

Quote:
"Martin Hanna" <postmaster (AT) SPAMIGNOREmovillaIGNOREplus (DOT) com> writes:

I find the DBI interface much more convenient, particularly for error
handling. A
bonus is that you can use the same style of code for Sybase and other
RDBMSes.
That's my key interest. If I can code a connection to the DBI, whether the
DBD is Sybase, Sql Server, Oracle or whatever, the code change is minimal or
none.

Martin




Reply With Quote
  #5  
Old   
Michael Peppler
 
Posts: n/a

Default Re: Sybperl v DBD::Sybase - 05-15-2004 , 01:33 AM



On Sat, 15 May 2004 00:40:04 +0100, Martin Hanna wrote:

Quote:
"Ed Avis" <ed (AT) membled (DOT) com> wrote in message
news:l1lljy12xk.fsf (AT) budvar (DOT) future-i.net...
"Martin Hanna" <postmaster (AT) SPAMIGNOREmovillaIGNOREplus (DOT) com> writes:

I find the DBI interface much more convenient, particularly for error
handling. A
bonus is that you can use the same style of code for Sybase and other
RDBMSes.

That's my key interest. If I can code a connection to the DBI, whether the
DBD is Sybase, Sql Server, Oracle or whatever, the code change is minimal
or none.
Within limits. Between SQL Server and Sybase this is mostly true, as they
both talk T-SQL. With Oracle there will be some differences.

And to get good performance at the database server level we often use
server-specific SQL, which makes the code non-portable.

Michael
--
Michael Peppler Data Migrations, Inc.
mpeppler (AT) peppler (DOT) org http://www.peppler.org/
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
long term contract positions - http://www.peppler.org/resume.html



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.