Re: Open Client vs Embedded SQL



On Sat, 17 Dec 2005 16:43:50 +0100, jeremy wrote:

> Hello,
>
> I'm new to Sybase.
> I'm an Oracle/Pro*C developer.
> It seems there is 2 ways to access Sybase database in C : Open Client and
> Embedded SQL.
> I know Embeded SQL (= Pro*C) but I just saw Open Client code on the Net
> : it's horrible !!!
> So, why using Open Client against Embedded SQL ? As Emb. SQL is a lot
> simpler to write and maintain, is Open Client faster (execution) ?

I guess it depends on your point of view. As a C programmer the first time
I saw Embedded SQL I found it horrible to look at, and I figured that
debugging that kind of code would be tricky (because of the precompile
stage, etc).

OpenClient is a little tricky to get started with, but it is quite
straightforward once you have the hang of it. I usually have a few
home-grown helper functions that take a few short-cuts and make the code
writing a bit easier.

Michael
--
Michael Peppler [TeamSybase] mpeppler@xxxxxxxxxxx - http://www.peppler.org/
Sybase DBA/Developer
Sybase on Linux FAQ: http://www.peppler.org/FAQ/linux.html


.



Relevant Pages

  • Open Client vs Embedded SQL
    ... I'm an Oracle/Pro*C developer. ... It seems there is 2 ways to access Sybase database in C: Open Client and Embedded SQL. ...
    (comp.databases.sybase)
  • Re: Installing DBD::Sybase on MAC
    ... Okay, thanks Micheal, any ways, i dumped this open client from sybase, ... and went for freebsd. ...
    (comp.lang.perl.misc)