pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: [ODBC] FUD!! ODBC will not be supported by Microsoft in the future
34+ messages / 21 participants
[nested] [flat]

* Re: [ODBC] FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-09-29 17:12  Amanjit Gill <amanjit.gill@gmx.de>
  0 siblings, 1 reply; 34+ messages in thread

From: Amanjit Gill @ 2003-09-29 17:12 UTC (permalink / raw)
  To: pgsql-general@postgresql.org

Hi, 
this might be actually offtopic, but its always time to fight some FUD  :-)

> Microsoft will be doing away with the OLEDB to ODBC bridge in the near
> future.

Funny enough if I use __Microsoft__ SQL Query Analyzer which directly
connects to SQL Server and somehow shut the SQL Server down while a query is
running I get the following message (german):
_________________________________________________________
Server: Nachr.-Nr. 17, Schweregrad 16, Status 1, Zeile 0
[Microsoft][ODBC SQL Server Driver][Shared Memory]SQL Server existiert nicht
oder Zugriff verweigert.
Server: Nachr.-Nr. 2, Schweregrad 16, Status 1, Zeile 0
[Microsoft][ODBC SQL Server Driver][Shared Memory]ConnectionOpen
(Connect()).
_________________________________________________________

Which means Microsoft uses ODBC itself for its internal DB Access in SQL
Query Analyzer, and NOT OLE DB.

Now if they use this for their native DB Access (and NOT OLE DB) , it must
be perfect for
me.

Nice try anyway.


-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++




^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-09-29 17:14  Amanjit Gill <amanjit.gill@gmx.de>
  parent: Amanjit Gill <amanjit.gill@gmx.de>
  0 siblings, 1 reply; 34+ messages in thread

From: Amanjit Gill @ 2003-09-29 17:14 UTC (permalink / raw)
  To: pgsql-odbc

Hi, 
this might be actually offtopic, but its always time to fight FUD  :-)

> Microsoft will be doing away with the OLEDB to ODBC bridge in the near
> future.

Funny enough if I use __Microsoft__ SQL Query Analyzer which directly
connects to SQL Servers and somehow shut the SQL Server down while a query
running
I get the following message (german):
_________________________________________________________
Server: Nachr.-Nr. 17, Schweregrad 16, Status 1, Zeile 0
[Microsoft][ODBC SQL Server Driver][Shared Memory]SQL Server existiert nicht
oder Zugriff verweigert.
Server: Nachr.-Nr. 2, Schweregrad 16, Status 1, Zeile 0
[Microsoft][ODBC SQL Server Driver][Shared Memory]ConnectionOpen
(Connect()).
_________________________________________________________

Which means Microsoft uses ODBC itself for its internal DB Access with SQL
Query Analyzer, and NOT OLE DB.

Now if they can use this for their native DB Access, it must be perfect for
me.

Nice try anyway.

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++




^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the f
@ 2003-09-29 18:19  Janet Borschowa <borschow@roguewave.com>
  0 siblings, 1 reply; 34+ messages in thread

From: Janet Borschowa @ 2003-09-29 18:19 UTC (permalink / raw)
  To: pgsql-odbc

Yes, the SQL Server ODBC driver is one of the API's recommended by Microsoft
to write applications accessing SQL Server 2000. There are other API's also
available from Microsoft for accessing a SQL Server database. For the latest
information see Microsoft's web-site at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/bldgapps/ba
_highprog_3fg3.asp

See also information about programming ODBC SQL Server Applications at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbcsql/od_
6_0oview_8sc3.asp

========================
Janet Borschowa
Software Engineer, Database Products                        
Rogue Wave Software
(541) 753-1931   FAX: (541) 757-4630
mailto:borschow@roguewave.com  http://www.roguewave.com



-----Original Message-----
From: Amanjit Gill [mailto:amanjit.gill@gmx.de]
Sent: Monday, September 29, 2003 10:15 AM
To: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] FUD!! ODBC will not be supported by Microsoft in the
future


Hi, 
this might be actually offtopic, but its always time to fight FUD  :-)

> Microsoft will be doing away with the OLEDB to ODBC bridge in the near
> future.

Funny enough if I use __Microsoft__ SQL Query Analyzer which directly
connects to SQL Servers and somehow shut the SQL Server down while a query
running
I get the following message (german):
_________________________________________________________
Server: Nachr.-Nr. 17, Schweregrad 16, Status 1, Zeile 0
[Microsoft][ODBC SQL Server Driver][Shared Memory]SQL Server existiert nicht
oder Zugriff verweigert.
Server: Nachr.-Nr. 2, Schweregrad 16, Status 1, Zeile 0
[Microsoft][ODBC SQL Server Driver][Shared Memory]ConnectionOpen
(Connect()).
_________________________________________________________

Which means Microsoft uses ODBC itself for its internal DB Access with SQL
Query Analyzer, and NOT OLE DB.

Now if they can use this for their native DB Access, it must be perfect for
me.

Nice try anyway.

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)



^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-09-29 19:12  Andrew Ayers <aayers@eldocomp.com>
  0 siblings, 0 replies; 34+ messages in thread

From: Andrew Ayers @ 2003-09-29 19:12 UTC (permalink / raw)
  To: Amanjit Gill <amanjit.gill@gmx.de>; +Cc: pgsql-odbc

Amanjit Gill wrote:
> Hi, 
> this might be actually offtopic, but its always time to fight FUD  :-)
> 
> 
>>Microsoft will be doing away with the OLEDB to ODBC bridge in the near
>>future.
> 
> 
> Funny enough if I use __Microsoft__ SQL Query Analyzer which directly
> connects to SQL Servers and somehow shut the SQL Server down while a query
> running
> I get the following message (german):
> _________________________________________________________
> Server: Nachr.-Nr. 17, Schweregrad 16, Status 1, Zeile 0
> [Microsoft][ODBC SQL Server Driver][Shared Memory]SQL Server existiert nicht
> oder Zugriff verweigert.
> Server: Nachr.-Nr. 2, Schweregrad 16, Status 1, Zeile 0
> [Microsoft][ODBC SQL Server Driver][Shared Memory]ConnectionOpen
> (Connect()).
> _________________________________________________________
> 
> Which means Microsoft uses ODBC itself for its internal DB Access with SQL
> Query Analyzer, and NOT OLE DB.

Hmm - this is confusing. Microsoft doesn't seem to be saying that ODBC 
is going away, only the OLE DB (DAO, ADO) to ODBC bridge was being 
deprecated - right?

This "move" by M$ may leave many developers who use VB and/or Access as 
a front end to third-party back-end products (such as PostgreSQL) "in 
the lurch" - unless someone else comes up with a way to work around this.

I just converted a major application from DAO to ADO (in VB) - thinking 
it was going to be there for a while. What irritates me is that in none 
of the documentation on Microsoft's web site about ADO, that I 
referenced did they indicate that using ADO and ODBC might somehow be 
changing (a link to that document that was posted would have helped) - 
which may have changed my decision or development effort.

I can tell you that right now, finding out this (whatever the truth) - 
it is changing my development direction rapidly: I am urging my 
supervisor that we need to develop our application using something akin 
to LAMP (with the 'M' being PG instead of that "other" DB).

Maybe one day I can say "bye-bye Microsoft" for my at-work development 
(it is already this way at home).

Andrew Ayers
Phoenix, Arizona

-- CONFIDENTIALITY NOTICE --

This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email, and delete the message. Thank you.



^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-09-29 20:35  Relaxin <noname@spam.com>
  parent: Amanjit Gill <amanjit.gill@gmx.de>
  0 siblings, 2 replies; 34+ messages in thread

From: Relaxin @ 2003-09-29 20:35 UTC (permalink / raw)
  To: pgsql-odbc


>
> Which means Microsoft uses ODBC itself for its internal DB Access with SQL
> Query Analyzer, and NOT OLE DB.
>
> Now if they can use this for their native DB Access, it must be perfect
for
> me.
>
> Nice try anyway.
>

Sorry to inform you, but ODBC is NOT SQL Server's native connectivity, it's
OLEDB.

"OLE DB is a low-level, COM API that is used for accessing data. OLE DB is
recommended for developing tools, utilities, or low-level components that
need high performance. The OLE DB Provider for SQL Server (SQLOLEDB) is a
native, high performance provider that accesses the SQL Server TDS protocol
directly".

This statement is from the "OLEDB and SQL Server" manual that comes with the
Platform SDK (oledbsql.chm).


It's totally up to you to disregard what MS has said is coming, but the
people that live thru the problem when MS dropped MS Jet Engine and Foxpro
connectivity understand the significants of this statement.

Without a native OLEDB connectivity solution, if your customers are on a
version of MDAC that no longer supports your way of connecting to the
database...you have some big problems on your hand.

Sure, ODBC will still be around, but the only way you will be able to
connect to it will be to write native calls to ODBC.  You would be stupid to
write a new application to talk natively to ODBC, since MS will not be
making any new enhancements or fixes to ODBC, MS is dropping the OLEDB to
ODBC bridge and OLEDB and ADO.Net are where things are headed (and has been
for a couple of years now).

When the OLEDB 2 ODBC bridge is dropped, Query Analyzer will be updated,
just like Access was modified to support SQL Server (and Access, but thru
native calls to the Jet Engine)  when MS dropped the Jet Engine support in
MDAC.

It will be you and your customer that will suffer, not me.  All of my
applications that I write go thru OLEDB.

Plus, Postgresql's ODBC has some serious problems, I wouldn't trust in
production on Windows anyhow. :)

Thanks






^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the f
@ 2003-09-30 00:43  Rommel the iCeMAn <iceman@sunbeach.net>
  parent: Janet Borschowa <borschow@roguewave.com>
  0 siblings, 1 reply; 34+ messages in thread

From: Rommel the iCeMAn @ 2003-09-30 00:43 UTC (permalink / raw)
  To: pgsql-odbc

hmmmmmm ... what does FUD mean???? being from the Caribbean I sometimes lose
my grip of the of the slang ;-)

Rommel the iCeMAn
Programmer
Barbados, Caribbean


-----------------------------------------------------------------
[This E-mail was scanned for viruses by the Freemotion mailman]
-----------------------------------------------------------------




^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the f
@ 2003-09-30 00:55  Relaxin <noname@spam.com>
  parent: Rommel the iCeMAn <iceman@sunbeach.net>
  0 siblings, 0 replies; 34+ messages in thread

From: Relaxin @ 2003-09-30 00:55 UTC (permalink / raw)
  To: pgsql-odbc

It means "Fear" "Uncertainty" "Doubt".


""Rommel the iCeMAn"" <iceman@sunbeach.net> wrote in message
news:003201c386ec$21410920$cc4b32c8@edwards01...
> hmmmmmm ... what does FUD mean???? being from the Caribbean I sometimes
lose
> my grip of the of the slang ;-)
>
> Rommel the iCeMAn
> Programmer
> Barbados, Caribbean
>
>
> -----------------------------------------------------------------
> [This E-mail was scanned for viruses by the Freemotion mailman]
> -----------------------------------------------------------------
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>





^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-09-30 11:21  John K. Herreshoff <jkherr@centurytel.net>
  parent: Relaxin <noname@spam.com>
  1 sibling, 0 replies; 34+ messages in thread

From: John K. Herreshoff @ 2003-09-30 11:21 UTC (permalink / raw)
  To: pgsql-odbc

Relaxin wrote:

<snip>
> 
> Plus, Postgresql's ODBC has some serious problems, I wouldn't trust in
> production on Windows anyhow. :)
> 
> Thanks

That's a red herring.  Can you be more specific?  I've not seen trouble with
PG ODBC, but I'm not beating on it yet with any great force...

John.



^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-09-30 12:04  Steve Lutz <slutz@alacritude.com>
  0 siblings, 3 replies; 34+ messages in thread

From: Steve Lutz @ 2003-09-30 12:04 UTC (permalink / raw)
  To: pgsql-odbc

Yes, can you please be more specific, what problems have you had with
it? We are in the process of moving from Oracle on Sun to Postgres on
Linux with front end windows machines. What problems have you had with
the Postgres ODBC drivers on Windows?



-----Original Message-----
From: John K. Herreshoff [mailto:jkherr@centurytel.net]
Sent: Tuesday, September 30, 2003 7:22 AM
To: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] FUD!! ODBC will not be supported by Microsoft in the
future


Relaxin wrote:

<snip>
> 
> Plus, Postgresql's ODBC has some serious problems, I wouldn't trust in
> production on Windows anyhow. :)
> 
> Thanks

That's a red herring.  Can you be more specific?  I've not seen trouble
with
PG ODBC, but I'm not beating on it yet with any great force...

John.

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faqs/FAQ.html



^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-09-30 12:26  Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 0 replies; 34+ messages in thread

From: Dave Page @ 2003-09-30 12:26 UTC (permalink / raw)
  To: John K. Herreshoff <jkherr@centurytel.net>; pgsql-odbc



> -----Original Message-----
> From: John K. Herreshoff [mailto:jkherr@centurytel.net] 
> Sent: 30 September 2003 12:22
> To: pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] FUD!! ODBC will not be supported by 
> Microsoft in the future
> 
> 
> Relaxin wrote:
> 
> <snip>
> > 
> > Plus, Postgresql's ODBC has some serious problems, I 
> wouldn't trust in 
> > production on Windows anyhow. :)
> > 
> > Thanks
> 
> That's a red herring.  Can you be more specific?  I've not 
> seen trouble with PG ODBC, but I'm not beating on it yet with 
> any great force...

Well I am, on 50+ systems and haven't had any major issues since Byron
busted a gut fixing things back around 1997/1998.

pgAdmin II seems to use it just fine as well...

Regards, Dave.



^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-09-30 13:49  Stephen Frost <sfrost@snowman.net>
  parent: Steve Lutz <slutz@alacritude.com>
  2 siblings, 2 replies; 34+ messages in thread

From: Stephen Frost @ 2003-09-30 13:49 UTC (permalink / raw)
  To: Steve Lutz <slutz@alacritude.com>; +Cc: pgsql-odbc

* Steve Lutz (slutz@alacritude.com) wrote:
> Yes, can you please be more specific, what problems have you had with
> it? We are in the process of moving from Oracle on Sun to Postgres on
> Linux with front end windows machines. What problems have you had with
> the Postgres ODBC drivers on Windows?

Try opening a big table.

	Stephen

^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-09-30 14:14  Christopher Browne <cbbrowne@acm.org>
  parent: Steve Lutz <slutz@alacritude.com>
  2 siblings, 1 reply; 34+ messages in thread

From: Christopher Browne @ 2003-09-30 14:14 UTC (permalink / raw)
  To: pgsql-odbc

Centuries ago, Nostradamus foresaw when slutz@alacritude.com ("Steve Lutz") would write:
> Yes, can you please be more specific, what problems have you had with
> it? We are in the process of moving from Oracle on Sun to Postgres on
> Linux with front end windows machines. What problems have you had with
> the Postgres ODBC drivers on Windows?

The issue isn't with present condition of ODBC drivers.

It is that "Windows 2004," which will presumably start getting forced
onto your desktop machines next year, may no longer support ODBC in
favor of [Fill In New DB Access System Here].

So long as you can get licenses to older MSFT software, it would not
be a big issue.  If diminishment of ODBC support led to some sort of
hue and cry, Microsoft might relent, although it would be unremarkable
for that to involve them doing some work to break access to "foreign"
databases, where possible.
-- 
output = ("cbbrowne" "@" "ntlug.org")
http://cbbrowne.com/info/lsf.html
(eq? 'truth 'beauty)  ; to avoid unassigned-var error, since compiled code
                      ; will pick up previous value to var set!-ed,
                      ; the unassigned object.
-- from BBN-CL's cl-parser.scm



^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-09-30 15:18  Jeff Eckermann <jeff_eckermann@yahoo.com>
  parent: Steve Lutz <slutz@alacritude.com>
  2 siblings, 0 replies; 34+ messages in thread

From: Jeff Eckermann @ 2003-09-30 15:18 UTC (permalink / raw)
  To: Steve Lutz <slutz@alacritude.com>; pgsql-odbc

For the record: the PostgreSQL ODBC driver works well
and reliably for us.



^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the f
@ 2003-09-30 16:31  Andrew Ayers <aayers@eldocomp.com>
  0 siblings, 0 replies; 34+ messages in thread

From: Andrew Ayers @ 2003-09-30 16:31 UTC (permalink / raw)
  To: Rommel the iCeMAn <iceman@sunbeach.net>; +Cc: pgsql-odbc

Rommel the iCeMAn wrote:
> hmmmmmm ... what does FUD mean???? being from the Caribbean I sometimes lose
> my grip of the of the slang ;-)

FUD - Fear, Uncertainty, and Doubt

Basically, it is the practice of spreading information (whether the info 
is true or not doesn't matter - generally, if the info is "somewhat 
true", FUD seems to work better) about a competing product or 
competitor, such that it causes others to either avoid a competing 
product, or to "wait and see" what that product or competitor will do.

Thus, by using FUD and stalling the market, the competitor can use the 
created time window to a) finish their product, b) improve their 
product, or c) slow/halt/reverse adoption of a competing product.

I am sure there are other reasons for FUD as well, but these are the 
major ones.

FUD becomes true FUD when the information being passed actually refers 
to issues of the competitor that are no longer true at the current point 
in time, but *were true* in the very recent past. This is because some 
people may not be super up-to-date on the latest offerings, services, or 
actions of a company - so you may get agreement and disagreements about 
what is or isn't going on with a company and its products within the 
industry. This is what causes the uncertainty and doubt that inspires 
the fear (the fear of adopting a product, the fear of moving away from a 
current product).

Hope this helps...

Andrew Ayers
Phoenix, Arizona

-- CONFIDENTIALITY NOTICE --

This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email, and delete the message. Thank you.



^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-10-01 11:53  markw@mohawksoft.com
  parent: Stephen Frost <sfrost@snowman.net>
  1 sibling, 1 reply; 34+ messages in thread

From: markw@mohawksoft.com @ 2003-10-01 11:53 UTC (permalink / raw)
  To: sfrost@snowman.net; +Cc: slutz@alacritude.com; pgsql-odbc

> * Steve Lutz (slutz@alacritude.com) wrote:
>> Yes, can you please be more specific, what problems have you had with
>> it? We are in the process of moving from Oracle on Sun to Postgres on
>> Linux with front end windows machines. What problems have you had with
>> the Postgres ODBC drivers on Windows?
>
> Try opening a big table.

That is not a PostgreSQL ODBC issue. There is a setting, I forget the
name, that enables a cursor in the query.

On a side not, you will be hard pressed to find a commercial ODBC
application, i.e. Access, that can handle large tables.

For what its worth, I use the PGODBC driver to create an index of tables
with Millions of rows.





^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-10-01 11:58  Stephen Frost <sfrost@snowman.net>
  parent: markw@mohawksoft.com
  0 siblings, 2 replies; 34+ messages in thread

From: Stephen Frost @ 2003-10-01 11:58 UTC (permalink / raw)
  To: markw@mohawksoft.com; +Cc: slutz@alacritude.com; pgsql-odbc

* markw@mohawksoft.com (markw@mohawksoft.com) wrote:
> > * Steve Lutz (slutz@alacritude.com) wrote:
> >> Yes, can you please be more specific, what problems have you had with
> >> it? We are in the process of moving from Oracle on Sun to Postgres on
> >> Linux with front end windows machines. What problems have you had with
> >> the Postgres ODBC drivers on Windows?
> >
> > Try opening a big table.
> 
> That is not a PostgreSQL ODBC issue. There is a setting, I forget the
> name, that enables a cursor in the query.

It should be on by default then, and I didn't see that option when I was
looking, can you tell me where it is?

> On a side not, you will be hard pressed to find a commercial ODBC
> application, i.e. Access, that can handle large tables.

Uh, Access and Oracle ODBC works just fine on the same table that
Postgres ODBC grinds the machine to a halt on.

> For what its worth, I use the PGODBC driver to create an index of tables
> with Millions of rows.

I tried using the postgres ODBC driver to open a table with a couple
million rows.  It ran the client machine out of memory.  Same table w/
the Oracle ODBC driver worked just fine.

	Stephen

^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-10-01 12:39  Mike Mascari <mascarm@mascari.com>
  parent: Stephen Frost <sfrost@snowman.net>
  1 sibling, 1 reply; 34+ messages in thread

From: Mike Mascari @ 2003-10-01 12:39 UTC (permalink / raw)
  To: Stephen Frost <sfrost@snowman.net>; +Cc: markw@mohawksoft.com; slutz@alacritude.com; pgsql-odbc

Stephen Frost wrote:

> * markw@mohawksoft.com (markw@mohawksoft.com) wrote:

>>That is not a PostgreSQL ODBC issue. There is a setting, I forget the
>>name, that enables a cursor in the query.
> 
> It should be on by default then, and I didn't see that option when I was
> looking, can you tell me where it is?

Nothin' like RTFM:

http://gborg.postgresql.org/project/psqlodbc/genpage.php?doc-config

>>On a side not, you will be hard pressed to find a commercial ODBC
>>application, i.e. Access, that can handle large tables.
> 
> Uh, Access and Oracle ODBC works just fine on the same table that
> Postgres ODBC grinds the machine to a halt on.

Use Declare/Fetch

>>For what its worth, I use the PGODBC driver to create an index of tables
>>with Millions of rows.
> 
> I tried using the postgres ODBC driver to open a table with a couple
> million rows.  It ran the client machine out of memory.  Same table w/
> the Oracle ODBC driver worked just fine.

Use Declare/Fetch

HTH,

Mike Mascari
mascarm@mascari.com





^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-10-01 12:41  Richard Huxton <dev@archonet.com>
  parent: Stephen Frost <sfrost@snowman.net>
  1 sibling, 0 replies; 34+ messages in thread

From: Richard Huxton @ 2003-10-01 12:41 UTC (permalink / raw)
  To: Stephen Frost <sfrost@snowman.net>; markw@mohawksoft.com; +Cc: slutz@alacritude.com; pgsql-odbc

On Wednesday 01 October 2003 12:58, Stephen Frost wrote:
> * markw@mohawksoft.com (markw@mohawksoft.com) wrote:
>
> I tried using the postgres ODBC driver to open a table with a couple
> million rows.  It ran the client machine out of memory.  Same table w/
> the Oracle ODBC driver worked just fine.

This is probably less to do with ODBC and more with PG's approach to result 
sets. With PG, if you ask for 10 million rows it will pass all of them to the 
client in one go. Other systems tend to act as though you asked for a cursor 
and return rows as you fetch them. In PG, if you want a cursor, you ask for a 
cursor.

-- 
  Richard Huxton
  Archonet Ltd



^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-10-01 12:53  Michael Calabrese <m2calabr@yahoo.com>
  parent: Stephen Frost <sfrost@snowman.net>
  1 sibling, 0 replies; 34+ messages in thread

From: Michael Calabrese @ 2003-10-01 12:53 UTC (permalink / raw)
  To: Stephen Frost <sfrost@snowman.net>; +Cc: Steve Lutz <slutz@alacritude.com>; pgsql-odbc

Stephen can you please be more specific.  How big of a table? What type 
of problem did you have opening a big table.  I use Postgres in a 
production enivornment with about 2 to 3 million row (for all tables).  
This is big to some and small to others.  I have had no problems 
"opening" tables in psql, php, MSAcess, with a row count well over 
100,000 rows.  If you have had a problem that is reproducible, then you 
should let the list know so the problem can be fixed.

For the others on the list, I have not moved from Oracle to Postgres but 
from Access to Postgres.  Most of the problems with that transition deal 
with name issues (Access allows many things in the naming of tables and 
fields) and Access thinking it is smarter than me when I give it a query 
to run.  (I still use Access as a front end, and am slowly porting it to 
php.)

I hope this helps others on the list,
Michael Calabrese
Bike Friday

Stephen Frost wrote:

>* Steve Lutz (slutz@alacritude.com) wrote:
>  
>
>>Yes, can you please be more specific, what problems have you had with
>>it? We are in the process of moving from Oracle on Sun to Postgres on
>>Linux with front end windows machines. What problems have you had with
>>the Postgres ODBC drivers on Windows?
>>    
>>
>
>Try opening a big table.
>
>	Stephen
>  
>





^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-10-01 13:01  Ben Trewern <ben_trewern@hotmail.com>
  0 siblings, 1 reply; 34+ messages in thread

From: Ben Trewern @ 2003-10-01 13:01 UTC (permalink / raw)
  To: mascarm@mascari.com; sfrost@snowman.net; +Cc: markw@mohawksoft.com; slutz@alacritude.com; pgsql-odbc

All

I've been using (or trying to use) the pgODBC driver with 'Use 
Declare/Fetch' set to true and all goes well till you try to go to the end 
of a large recordset.  The driver seems to load all the records instead of 
just the last 50 (or whatever).  I'm using Delphi 7, BDE and psqlODBC 
version 7.03.01.08 to connect to Postgres 7.3.1.

Any ideas?  Could this be a BDE problem?  Any one else out there using this 
configuration?

Regards,

Ben

>From: Mike Mascari <mascarm@mascari.com>
>To: Stephen Frost <sfrost@snowman.net>
>CC: markw@mohawksoft.com, slutz@alacritude.com,pgsql-odbc@postgresql.org
>Subject: Re: [ODBC] FUD!! ODBC will not be supported by Microsoft in the 
>future
>Date: Wed, 01 Oct 2003 08:39:31 -0400
>
>Stephen Frost wrote:
>
> > * markw@mohawksoft.com (markw@mohawksoft.com) wrote:
>
> >>That is not a PostgreSQL ODBC issue. There is a setting, I forget the
> >>name, that enables a cursor in the query.
> >
> > It should be on by default then, and I didn't see that option when I was
> > looking, can you tell me where it is?
>
>Nothin' like RTFM:
>
>http://gborg.postgresql.org/project/psqlodbc/genpage.php?doc-config
>
> >>On a side not, you will be hard pressed to find a commercial ODBC
> >>application, i.e. Access, that can handle large tables.
> >
> > Uh, Access and Oracle ODBC works just fine on the same table that
> > Postgres ODBC grinds the machine to a halt on.
>
>Use Declare/Fetch
>
> >>For what its worth, I use the PGODBC driver to create an index of tables
> >>with Millions of rows.
> >
> > I tried using the postgres ODBC driver to open a table with a couple
> > million rows.  It ran the client machine out of memory.  Same table w/
> > the Oracle ODBC driver worked just fine.
>
>Use Declare/Fetch
>
>HTH,
>
>Mike Mascari
>mascarm@mascari.com
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 7: don't forget to increase your free space map settings

_________________________________________________________________
Express yourself with cool emoticons - download MSN Messenger today! 
http://www.msn.co.uk/messenger




^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-10-01 13:02  Steve Lutz <slutz@alacritude.com>
  0 siblings, 1 reply; 34+ messages in thread

From: Steve Lutz @ 2003-10-01 13:02 UTC (permalink / raw)
  To: Stephen Frost <sfrost@snowman.net>; pgsql-odbc

Hi Again Stephen,

I've also had similar issues with Oracle and SQL Server. I don't use
access as part of the system, but use it to link to tables for quick
data checks, or quick data entry, especially during development. It's
also great for import/export and initial data setup. I think that the
problem may be more with the server and not especially with the ODBC
driver, and possibly a little bit to do with access. I know that access
simplifies things, and it doesn't alway do what I expected (especially
queries with joined linked tables). 

One workaround I've found is that instead of opening the table directly,
create an updatable query that includes the entire source table, (Select
* from source_table) then use that query instead of the linked table
directly. I think that the query will do a cursor, but opening a linked
table doesn't. 

I'm posting this to the list in case other people have had similar
issues.

Steve


-----Original Message-----
From: Stephen Frost [mailto:sfrost@snowman.net]
Sent: Wednesday, October 01, 2003 8:18 AM
To: Steve Lutz
Subject: Re: [ODBC] FUD!! ODBC will not be supported by Microsoft in the
future


* Steve Lutz (slutz@alacritude.com) wrote:
> When you say open a table, what do you mean? Are you doing a SELECT *
> from BIG_TABLE? Or are you just attempting to select individual rows?
> (Select * FROM BIG_TABLE WHERE SOMECOLUMN=SOMEVALUE)
> 
> We have many huge tables, but we never really select the entire table,
> but if you are having problems with sub-sets of those tables, I'd like
> to know.

As I mentioned, we're using Access.  When you link in a table with
access and then 'open' it by double-clicking on the 'table' you get the
table view.  With Oracle, at least, it seems to do this alright, even
for pretty big tables.  With Postgres for the same tables it grinds the
machine to a halt.  My guess as to the reason would be that the postgres
libraries will attempt to copy the entire table into local memory and
then give it to access, which also tries to put it all in memory, so
you end up with two copies of the data in memory.  A cursor in the ODBC
driver could help with this issue, or a change in the API to allow you
to get things piecemeal, which is what Oracle does and what I would
prefer personally.

	Stephen



^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-10-01 13:09  Stephen Frost <sfrost@snowman.net>
  parent: Mike Mascari <mascarm@mascari.com>
  0 siblings, 1 reply; 34+ messages in thread

From: Stephen Frost @ 2003-10-01 13:09 UTC (permalink / raw)
  To: Mike Mascari <mascarm@mascari.com>; +Cc: markw@mohawksoft.com; slutz@alacritude.com; pgsql-odbc

* Mike Mascari (mascarm@mascari.com) wrote:
> http://gborg.postgresql.org/project/psqlodbc/genpage.php?doc-config

I saw that, and it said it was on by default so I figured it must be
something else.  Apparently it's *not* actually on by default.  I
turned it on and I'll play around with that and see if it helps.

	Stephen

^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-10-01 14:18  Jeff Eckermann <jeff_eckermann@yahoo.com>
  parent: Steve Lutz <slutz@alacritude.com>
  0 siblings, 1 reply; 34+ messages in thread

From: Jeff Eckermann @ 2003-10-01 14:18 UTC (permalink / raw)
  To: pgsql-odbc

Client-server brings up a bunch of issues that don't
apply when using local data storage for applications
such as MS Access: server load/performance, network
performance, lack of support for certain application
features etc.  These issues require a higher level of
awareness by the user/developer of what is going on.

Some products are easy to use because they silently
handle things that you would otherwise have to handle
yourself.  MS Access itself is a prime example of
this.  PostgreSQL requires more of the user, because
you have to do more of the driving yourself.  It's the
old control vs. complexity tradeoff.

The silently-manage-things-for-you approach is
attractive, until you find that the behaviour you are
getting is not what you want.  Then it can be hard to
change.

Even people who work a lot with MS Access end up
having to know a lot about how Access does things
behind the scenes, because inevitably they run into
cases where Access just doesn't do what they want.

I am using Access as the example, but this refers just
as much to the Oracle & SQL Server ODBC setups
referred to in earlier posts.


--- Steve Lutz <slutz@alacritude.com> wrote:
> Hi Again Stephen,
> 
> I've also had similar issues with Oracle and SQL
> Server. I don't use
> access as part of the system, but use it to link to
> tables for quick
> data checks, or quick data entry, especially during
> development. It's
> also great for import/export and initial data setup.
> I think that the
> problem may be more with the server and not
> especially with the ODBC
> driver, and possibly a little bit to do with access.
> I know that access
> simplifies things, and it doesn't alway do what I
> expected (especially
> queries with joined linked tables). 
> 
> One workaround I've found is that instead of opening
> the table directly,
> create an updatable query that includes the entire
> source table, (Select
> * from source_table) then use that query instead of
> the linked table
> directly. I think that the query will do a cursor,
> but opening a linked
> table doesn't. 
> 
> I'm posting this to the list in case other people
> have had similar
> issues.
> 
> Steve
> 
> 
> -----Original Message-----
> From: Stephen Frost [mailto:sfrost@snowman.net]
> Sent: Wednesday, October 01, 2003 8:18 AM
> To: Steve Lutz
> Subject: Re: [ODBC] FUD!! ODBC will not be supported
> by Microsoft in the
> future
> 
> 
> * Steve Lutz (slutz@alacritude.com) wrote:
> > When you say open a table, what do you mean? Are
> you doing a SELECT *
> > from BIG_TABLE? Or are you just attempting to
> select individual rows?
> > (Select * FROM BIG_TABLE WHERE
> SOMECOLUMN=SOMEVALUE)
> > 
> > We have many huge tables, but we never really
> select the entire table,
> > but if you are having problems with sub-sets of
> those tables, I'd like
> > to know.
> 
> As I mentioned, we're using Access.  When you link
> in a table with
> access and then 'open' it by double-clicking on the
> 'table' you get the
> table view.  With Oracle, at least, it seems to do
> this alright, even
> for pretty big tables.  With Postgres for the same
> tables it grinds the
> machine to a halt.  My guess as to the reason would
> be that the postgres
> libraries will attempt to copy the entire table into
> local memory and
> then give it to access, which also tries to put it
> all in memory, so
> you end up with two copies of the data in memory.  A
> cursor in the ODBC
> driver could help with this issue, or a change in
> the API to allow you
> to get things piecemeal, which is what Oracle does
> and what I would
> prefer personally.
> 
> 	Stephen
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com



^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-10-01 14:43  Mike Mascari <mascarm@mascari.com>
  parent: Ben Trewern <ben_trewern@hotmail.com>
  0 siblings, 0 replies; 34+ messages in thread

From: Mike Mascari @ 2003-10-01 14:43 UTC (permalink / raw)
  To: Ben Trewern <ben_trewern@hotmail.com>; +Cc: pgsql-odbc

Ben Trewern wrote:

> All
> 
> I've been using (or trying to use) the pgODBC driver with 'Use
> Declare/Fetch' set to true and all goes well till you try to go to the
> end of a large recordset.  The driver seems to load all the records
> instead of just the last 50 (or whatever).  I'm using Delphi 7, BDE and
> psqlODBC version 7.03.01.08 to connect to Postgres 7.3.1.
> 
> Any ideas?  Could this be a BDE problem?  Any one else out there using
> this configuration?
> 
> Regards,
> 
> Ben

According to what I gather from the thread here:

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&frame=right&th=7159b...

PostgreSQL cannot perform a backward-scan and is forced to materialize
 the result set in its entirety. So that is a backend issue
specifically, not an ODBC issue, I'm afraid.

Mike Mascari
mascarm@mascari.com







^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-10-01 15:34  Ben Trewern <ben_trewern@hotmail.com>
  0 siblings, 1 reply; 34+ messages in thread

From: Ben Trewern @ 2003-10-01 15:34 UTC (permalink / raw)
  To: mascarm@mascari.com; +Cc: pgsql-odbc

If you look in the pg 7.3 docs it seems to state that FETCH can fetch 
backwards.  Does this mean that the backend needs to materialize the whole 
recordset but could return just the last n records to the client?  If so 
then that would be different than the current psqlODBC state of affairs and 
would be a net gain as it would reduce network traffic.

Any thoughts?

Ben

>From: Mike Mascari <mascarm@mascari.com>
>To: Ben Trewern <ben_trewern@hotmail.com>
>CC: pgsql-odbc@postgresql.org
>Subject: Re: [ODBC] FUD!! ODBC will not be supported by Microsoft in the 
>future
>Date: Wed, 01 Oct 2003 10:43:56 -0400
>
>Ben Trewern wrote:
>
> > All
> >
> > I've been using (or trying to use) the pgODBC driver with 'Use
> > Declare/Fetch' set to true and all goes well till you try to go to the
> > end of a large recordset.  The driver seems to load all the records
> > instead of just the last 50 (or whatever).  I'm using Delphi 7, BDE and
> > psqlODBC version 7.03.01.08 to connect to Postgres 7.3.1.
> >
> > Any ideas?  Could this be a BDE problem?  Any one else out there using
> > this configuration?
> >
> > Regards,
> >
> > Ben
>
>According to what I gather from the thread here:
>
>http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&frame=right&th=7159b...
>
>PostgreSQL cannot perform a backward-scan and is forced to materialize
>  the result set in its entirety. So that is a backend issue
>specifically, not an ODBC issue, I'm afraid.
>
>Mike Mascari
>mascarm@mascari.com
>
>
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

_________________________________________________________________
Tired of 56k? Get a FREE BT Broadband connection 
http://www.msn.co.uk/specials/btbroadband




^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-10-01 16:38  Mike Mascari <mascarm@mascari.com>
  parent: Ben Trewern <ben_trewern@hotmail.com>
  0 siblings, 1 reply; 34+ messages in thread

From: Mike Mascari @ 2003-10-01 16:38 UTC (permalink / raw)
  To: Ben Trewern <ben_trewern@hotmail.com>; +Cc: pgsql-odbc

Ben Trewern wrote:

> I've been using (or trying to use) the pgODBC driver with 'Use
> Declare/Fetch' set to true and all goes well till you try to go to
> the end of a large recordset.  The driver seems to load all the
> records instead of just the last 50 (or whatever).  I'm using Delphi
> 7, BDE and psqlODBC version 7.03.01.08 to connect to Postgres 7.3.1.
>
> Any ideas?  Could this be a BDE problem?  Any one else out there
> using this configuration?

and

> If you look in the pg 7.3 docs it seems to state that FETCH can fetch
> backwards.  Does this mean that the backend needs to materialize the
> whole recordset but could return just the last n records to the client? 
> If so then that would be different than the current psqlODBC state of
> affairs and would be a net gain as it would reduce network traffic.
> 
> Any thoughts?
> 
> Ben

Well, looking at the ODBC sources shows that it is capable of using
DECLARE/FETCH to move to the end the record set. PostgreSQL will still
have to materialize the result set on the backend, of course. So I'd
suggest performing an ODBC trace to see which ODBC API functions are
being called on the client side and also turn logging on in
postgresql.conf to see what the queries look like on the server.

ODBC provides access to cursor operations through the use of
SQLFetch(), which is a forward-only cursor and SQLFetchScroll() which
is scroll-capable. Perhaps Delphi 7 is using SQLFetch() instead of
SQLFetchScroll()? The ODBC trace will tell.

Mike Mascari
mascarm@mascari.com






^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-10-01 19:50  Relaxin <me@yourhouse.com>
  parent: Jeff Eckermann <jeff_eckermann@yahoo.com>
  0 siblings, 0 replies; 34+ messages in thread

From: Relaxin @ 2003-10-01 19:50 UTC (permalink / raw)
  To: pgsql-odbc


> Even people who work a lot with MS Access end up
> having to know a lot about how Access does things
> behind the scenes, because inevitably they run into
> cases where Access just doesn't do what they want.
>
> I am using Access as the example, but this refers just
> as much to the Oracle & SQL Server ODBC setups
> referred to in earlier posts.
>
I disagree here about SQL Server. SQL Server allows forward and backwards
capabilities thru ODBC and OLEDB without having to pull the entire resultset
to the client.

You have to set it to Server side cursors and use DYNAMIC or KEYSET rowset
type.

SQLServer is the only database that I have come across that adheres to the
ODBC/ OLE DB standards (granted, they created the standard ), nearly 100%.

Postgresql supports fetching backwards, but the ODBC driver fetches thru all
of the records when you want to goto the end of the result set.  This
obviously can be fixed, but as it stands now, that amount of traffic is to
heavy in a production environment when you could have many users connected
to the system and their performance drops to near nothing because the
network is saturated.





^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-10-02 09:12  Hiroshi Inoue <Inoue@tpf.co.jp>
  parent: Mike Mascari <mascarm@mascari.com>
  0 siblings, 1 reply; 34+ messages in thread

From: Hiroshi Inoue @ 2003-10-02 09:12 UTC (permalink / raw)
  To: Mike Mascari <mascarm@mascari.com>; +Cc: Ben Trewern <ben_trewern@hotmail.com>; pgsql-odbc

Currently we can only use forward-only read-only
cursors with 'Use Declare/Fetch' option. BDE
may need scrollable (and holdable ?) cursors so
as to use the ODBC driver effectively though I'm
not sure.

Non read-only applications have had some troubles
with 'Use Declare/Fetch' option, because PostgreSQL's
cursors could not live across transactions. In 7.4 we
would have holdable cursors which could live outside
transactions, so we would be able to implement the
option properly for 7.4 servers. 

I'm planning to implement static read-only cursors
with 'Use Desclre/Fetch' option.

regards,
Hiroshi Inoue
	http://www.geocities.jp/inocchichichi/psqlodbc/

Mike Mascari wrote:
> 
> Ben Trewern wrote:
> 
> > I've been using (or trying to use) the pgODBC driver with 'Use
> > Declare/Fetch' set to true and all goes well till you try to go to
> > the end of a large recordset.  The driver seems to load all the
> > records instead of just the last 50 (or whatever).  I'm using Delphi
> > 7, BDE and psqlODBC version 7.03.01.08 to connect to Postgres 7.3.1.
> >
> > Any ideas?  Could this be a BDE problem?  Any one else out there
> > using this configuration?
> 
> and
> 
> > If you look in the pg 7.3 docs it seems to state that FETCH can fetch
> > backwards.  Does this mean that the backend needs to materialize the
> > whole recordset but could return just the last n records to the client?
> > If so then that would be different than the current psqlODBC state of
> > affairs and would be a net gain as it would reduce network traffic.
> >
> > Any thoughts?
> >
> > Ben
> 
> Well, looking at the ODBC sources shows that it is capable of using
> DECLARE/FETCH to move to the end the record set. PostgreSQL will still
> have to materialize the result set on the backend, of course. So I'd
> suggest performing an ODBC trace to see which ODBC API functions are
> being called on the client side and also turn logging on in
> postgresql.conf to see what the queries look like on the server.
> 
> ODBC provides access to cursor operations through the use of
> SQLFetch(), which is a forward-only cursor and SQLFetchScroll() which
> is scroll-capable. Perhaps Delphi 7 is using SQLFetch() instead of
> SQLFetchScroll()? The ODBC trace will tell.
> 
> Mike Mascari
> mascarm@mascari.com



^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-10-02 16:08  Chris Gamache <cgg007@yahoo.com>
  parent: Hiroshi Inoue <Inoue@tpf.co.jp>
  0 siblings, 1 reply; 34+ messages in thread

From: Chris Gamache @ 2003-10-02 16:08 UTC (permalink / raw)
  To: Hiroshi Inoue <Inoue@tpf.co.jp>; Mike Mascari <mascarm@mascari.com>; +Cc: Ben Trewern <ben_trewern@hotmail.com>; pgsql-odbc

Since we're speaking on FUD, and the limitations of PgODBC under windows I
thought I would add my $0.50 ... :)

The SQL_ENLIST_IN_DTC directive is not supported. Having support for this
feature would allow the ODBC connector to work synchronously within an MTS/COM+
transaction. I believe that the "Distributed Transaction" that "DTC" refers to
is the transaction started under MTS/COM+. If THAT transaction fails, than all
the open transactions are rolled back, including the database work for that
particular COM+ transaction. 

Having said that, a PostgreSQL OLEDB component would support that implicitly
(yes?) and would have the benfit of natively accessing PostgreSQL, thereby
increasing the level of performance under ADO. It would also allow PostgreSQL
to transcend the demise of ODBC under Windows.

What're y'all's opinion of beginning new work, or continuing the unfinished
work for a PgOLEDB driver?

CG

--- Hiroshi Inoue <Inoue@tpf.co.jp> wrote:
> Currently we can only use forward-only read-only
> cursors with 'Use Declare/Fetch' option. BDE
> may need scrollable (and holdable ?) cursors so
> as to use the ODBC driver effectively though I'm
> not sure.
> 
> Non read-only applications have had some troubles
> with 'Use Declare/Fetch' option, because PostgreSQL's
> cursors could not live across transactions. In 7.4 we
> would have holdable cursors which could live outside
> transactions, so we would be able to implement the
> option properly for 7.4 servers. 
> 
> I'm planning to implement static read-only cursors
> with 'Use Desclre/Fetch' option.
> 
> regards,
> Hiroshi Inoue
> 	http://www.geocities.jp/inocchichichi/psqlodbc/
> 
> Mike Mascari wrote:
> > 
> > Ben Trewern wrote:
> > 
> > > I've been using (or trying to use) the pgODBC driver with 'Use
> > > Declare/Fetch' set to true and all goes well till you try to go to
> > > the end of a large recordset.  The driver seems to load all the
> > > records instead of just the last 50 (or whatever).  I'm using Delphi
> > > 7, BDE and psqlODBC version 7.03.01.08 to connect to Postgres 7.3.1.
> > >
> > > Any ideas?  Could this be a BDE problem?  Any one else out there
> > > using this configuration?
> > 
> > and
> > 
> > > If you look in the pg 7.3 docs it seems to state that FETCH can fetch
> > > backwards.  Does this mean that the backend needs to materialize the
> > > whole recordset but could return just the last n records to the client?
> > > If so then that would be different than the current psqlODBC state of
> > > affairs and would be a net gain as it would reduce network traffic.
> > >
> > > Any thoughts?
> > >
> > > Ben
> > 
> > Well, looking at the ODBC sources shows that it is capable of using
> > DECLARE/FETCH to move to the end the record set. PostgreSQL will still
> > have to materialize the result set on the backend, of course. So I'd
> > suggest performing an ODBC trace to see which ODBC API functions are
> > being called on the client side and also turn logging on in
> > postgresql.conf to see what the queries look like on the server.
> > 
> > ODBC provides access to cursor operations through the use of
> > SQLFetch(), which is a forward-only cursor and SQLFetchScroll() which
> > is scroll-capable. Perhaps Delphi 7 is using SQLFetch() instead of
> > SQLFetchScroll()? The ODBC trace will tell.
> > 
> > Mike Mascari
> > mascarm@mascari.com
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com



^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the f
@ 2003-10-02 17:27  Janet Borschowa <borschow@roguewave.com>
  0 siblings, 0 replies; 34+ messages in thread

From: Janet Borschowa @ 2003-10-02 17:27 UTC (permalink / raw)
  To: pgsql-odbc

> -----Original Message-----
> From: Relaxin [mailto:noname@spam.com]
> Sent: Monday, September 29, 2003 1:35 PM
> To: pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] FUD!! ODBC will not be supported by 
> Microsoft in the
> future
> 
> 
> 
> >
> > Which means Microsoft uses ODBC itself for its internal DB 
> Access with SQL
> > Query Analyzer, and NOT OLE DB.
> >
> > Now if they can use this for their native DB Access, it 
> must be perfect
> for
> > me.
> >
> > Nice try anyway.
> >
> 
> Sorry to inform you, but ODBC is NOT SQL Server's native 
> connectivity, it's
> OLEDB.
> 
> "OLE DB is a low-level, COM API that is used for accessing 
> data. OLE DB is
> recommended for developing tools, utilities, or low-level 
> components that
> need high performance. The OLE DB Provider for SQL Server 
> (SQLOLEDB) is a
> native, high performance provider that accesses the SQL 
> Server TDS protocol
> directly".
> 
> This statement is from the "OLEDB and SQL Server" manual that 
> comes with the
> Platform SDK (oledbsql.chm).
> 

Yes, its true that OLEDB is a native API for SQL Server. However, it is NOT
TRUE that ODBC is not. Please show me a link to Microsoft's website where it
says that their ODBC SQL Server driver is not an API. Here is what I find in
Microsoft's manual for SQL Server:

"Open C API designed to access data in SQL databases. The SQL Server ODBC
driver is a native, high-performance driver that directly accesses the SQL
Server TDS protocol."


> 
> It's totally up to you to disregard what MS has said is 
> coming, but the
> people that live thru the problem when MS dropped MS Jet 
> Engine and Foxpro
> connectivity understand the significants of this statement.
> 
> Without a native OLEDB connectivity solution, if your 
> customers are on a
> version of MDAC that no longer supports your way of connecting to the
> database...you have some big problems on your hand.
> 
> Sure, ODBC will still be around, but the only way you will be able to
> connect to it will be to write native calls to ODBC.  You 
> would be stupid to
> write a new application to talk natively to ODBC, since MS will not be
> making any new enhancements or fixes to ODBC, MS is dropping 
> the OLEDB to
> ODBC bridge and OLEDB and ADO.Net are where things are headed 
> (and has been
> for a couple of years now).
> 

Again, please send the link to Microsoft's website where they say that they
are not going to make new enhancements or fixes to the ODBC SQL Server
driver (I do not care about Microsoft's ODBC driver for Oracle). This is a
native API for SQL Server (see above) and I have been unable to find any
information from Microsoft that says what you claim. I am very interested in
hearing from you on this point. Thanks!

Please note, dropping the "OLE DB to ODBC bridge" does not mean that they
are dropping the "ODBC SQL Server driver."

> When the OLEDB 2 ODBC bridge is dropped, Query Analyzer will 
> be updated,
> just like Access was modified to support SQL Server (and 
> Access, but thru
> native calls to the Jet Engine)  when MS dropped the Jet 
> Engine support in
> MDAC.
> 
> It will be you and your customer that will suffer, not me.  All of my
> applications that I write go thru OLEDB.
> 
> Plus, Postgresql's ODBC has some serious problems, I wouldn't trust in
> production on Windows anyhow. :)
> 
> Thanks
> 
> 
> 
> 
> ---------------------------(end of 
> broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
>                http://archives.postgresql.org
> 

Thanks!

========================
Janet Borschowa
Software Engineer, Database Products                        
Rogue Wave Software
(541) 753-1931   FAX: (541) 757-4630
mailto:borschow@roguewave.com  http://www.roguewave.com



^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-10-03 00:26  Hiroshi Inoue <Inoue@tpf.co.jp>
  parent: Chris Gamache <cgg007@yahoo.com>
  0 siblings, 0 replies; 34+ messages in thread

From: Hiroshi Inoue @ 2003-10-03 00:26 UTC (permalink / raw)
  To: cgg007@yahoo.com; +Cc: Mike Mascari <mascarm@mascari.com>; Ben Trewern <ben_trewern@hotmail.com>; pgsql-odbc

Chris Gamache wrote:
> 
> Since we're speaking on FUD, and the limitations of PgODBC under
> windows I thought I would add my $0.50 ... :)
> 
> The SQL_ENLIST_IN_DTC directive is not supported. Having support
> for this feature would allow the ODBC connector to work synchronously > within an MTS/COM+
> transaction. I believe that the "Distributed Transaction" that
> "DTC" refers to is the transaction started under MTS/COM+. If
> THAT transaction fails, than all
> the open transactions are rolled back, including the database
> work for that particular COM+ transaction.
> 
> Having said that, a PostgreSQL OLEDB component would support
> that implicitly (yes?)

Maybe no. PostgreSQL doesn't have distributed transaction
functionality yet. However nice the interface is, it's
impossible to support it unless we tell a lie to MTS.
Recently 2-phase commit has been discussed on pgsql-hackers ML.
I don't know what kind of DTC PostgreSQL would support. If it
would support XA interface, the ODBC driver would be able to
support SQL_ENLIST_IN_DTC directive. 

> and would have the benfit of natively accessing PostgreSQL,
> thereby increasing the level of performance under ADO.

Maybe yes as long as you use ADO to access PostgreSQL and
the implementation is not so bad.

> It
> would also allow PostgreSQL to transcend the demise of ODBC
> under Windows.

AFAIR what the subject means is that MS wouldn't support
MSDASQL OLEDB provider any longer.
Unfortunalety the life of the interfaces MS provides is
fairly short. How short the life of RDO was ! ADO.NET and
ADO are alike in appearance but quite different in nature.
Honestly I doubt which lives longer, ADO or ODBC.
 
regards,
Hiroshi Inoue
	http://www.geocities.jp/inocchichichi/psqlodbc/



^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-10-03 12:20  Amanjit Gill <amanjit.gill@gmx.de>
  parent: Relaxin <noname@spam.com>
  1 sibling, 0 replies; 34+ messages in thread

From: Amanjit Gill @ 2003-10-03 12:20 UTC (permalink / raw)
  To: pgsql-odbc

Hi, Relaxin wrote...

<This is my last post for this topic since it is now offtopic>

>Sorry to inform you, but ODBC is NOT SQL Server's native connectivity, it's
>OLEDB.

First of all Microsoft Query Analyzer seems to use ODBC. Microsoft rather
uses ODBC itself then OLE/DB for this app. BUT promotes others to use OLE/DB
(by dropping OLE/DB <-> ODBC interconnectivity).

"Native connectivity" is whatever connectivity the database vendor chooses
to implement (--> TDS!, Net8, whatever). We don't have to care about this.
ODBC uses a driver concept as an abstraction from this concept. This is the
industry standard. I haven't seen that many native OLE-DB drivers.

Dropping OLEDB/ODBC connectivity means people using OLE as their lowest DB
API will have to use databases that provide native whatever OLEDB Access.
Which of course is a risk, because ODBC drivers are still used primarily in
the industry and are already well tested. But these guys will have to port
their VB6 apps to VB.NET anyway, their ASP things to the totally different
ASP.NET, etc and use C# anyway, until the next technology iteration arrives.

>need high performance. The OLE DB Provider for SQL Server (SQLOLEDB) is a
>native, high performance provider that accesses the SQL Server TDS protocol
>directly".

Yeah, the ODBC driver probably uses TDS aswell. "High Performance." Now if
you can do C++ take the otl template library, use an fast Ora9i server and
write some database code using a) "more native" Oracle 9i OCI and b) the
Oracle ODBC Driver (MS or Ora). You can switch using a single #define. Then
realize how fast odbc really is.

>connect to it will be to write native calls to ODBC.  You would be stupid
to
>write a new application to talk natively to ODBC, since MS will not be
>making any new enhancements or fixes to ODBC, MS is dropping the OLEDB to
>ODBC bridge and OLEDB and ADO.Net are where things are headed (and has been
>for a couple of years now).

Of course you need support for any technology - this is a political move.
There are no direct technical reasons for do so.

Microsoft marks ODBC as deprecated? Ok, the ODBC Implementation from
Microsoft is very good but the specs are clear - writing a free odbc
implementation (based on unixodbc) is an adequate challenge for the open
source community.

>It will be you and your customer that will suffer, not me.  All of my
>applications that I write go thru OLEDB.

My databases are rather big (geneome databases, medical directories with
about 20mio entries) and I basically do a lot of OLAP. There is no way
around ODBC. Try to use Data mining tool SPSS Clementine to connect to a
database using OLE DB. No way.

>Plus, Postgresql's ODBC has some serious problems, I wouldn't trust in
>production on Windows anyhow. :)

The ODBC architecture has established itself, it is over 10 years old, solid
and industry standard. Every important datbase vendor has an ODBC Driver.
Find me an OLE-DB or whatever .NET provider for every significant database
out there.

Issues with a specific driver (in this case: odbc) are issues with a
specific driver and not issues with an architecture.

>Thanks
You're welcome.



---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.522 / Virus Database: 320 - Release Date: 29.09.2003

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.522 / Virus Database: 320 - Release Date: 29.09.2003





^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-10-09 19:22  Bruce Momjian <pgman@candle.pha.pa.us>
  parent: Stephen Frost <sfrost@snowman.net>
  0 siblings, 0 replies; 34+ messages in thread

From: Bruce Momjian @ 2003-10-09 19:22 UTC (permalink / raw)
  To: Stephen Frost <sfrost@snowman.net>; +Cc: Mike Mascari <mascarm@mascari.com>; markw@mohawksoft.com; slutz@alacritude.com; pgsql-odbc

Stephen Frost wrote:
-- Start of PGP signed section.
> * Mike Mascari (mascarm@mascari.com) wrote:
> > http://gborg.postgresql.org/project/psqlodbc/genpage.php?doc-config
> 
> I saw that, and it said it was on by default so I figured it must be
> something else.  Apparently it's *not* actually on by default.  I
> turned it on and I'll play around with that and see if it helps.

I have updated this web page to show that "Use Declare/Fetch" is _not_
on by default.  Thanks.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



^ permalink  raw  reply  [nested|flat] 34+ messages in thread

* Re: FUD!! ODBC will not be supported by Microsoft in the future
@ 2003-11-24 22:29  Randolf Richardson <rr@8x.ca>
  parent: Christopher Browne <cbbrowne@acm.org>
  0 siblings, 0 replies; 34+ messages in thread

From: Randolf Richardson @ 2003-11-24 22:29 UTC (permalink / raw)
  To: pgsql-odbc

>> Yes, can you please be more specific, what problems have you had with
>> it? We are in the process of moving from Oracle on Sun to Postgres on
>> Linux with front end windows machines. What problems have you had with
>> the Postgres ODBC drivers on Windows?
> 
> The issue isn't with present condition of ODBC drivers.
> 
> It is that "Windows 2004," which will presumably start getting forced
> onto your desktop machines next year, may no longer support ODBC in
> favor of [Fill In New DB Access System Here].
> 
> So long as you can get licenses to older MSFT software, it would not
> be a big issue.  If diminishment of ODBC support led to some sort of
> hue and cry, Microsoft might relent, although it would be unremarkable
> for that to involve them doing some work to break access to "foreign"
> databases, where possible.

    	Ah, I wouldn't be worried about this.  Microsoft tried to kill Java 
(and they're still trying to kill it today), but just look at how popular 
it is now -- looks like Microsoft's efforts backfired, and I suspect the 
same will be true with ODBC.

    	If ODBC support is in fact eliminated by Microsoft, however, the rest 
of the world will still be able to move on to JDBC if some open source 
alternative doesn't save the day.

-- 
Randolf Richardson - rr@8x.ca
Vancouver, British Columbia, Canada

Please do not eMail me directly when responding
to my postings in the newsgroups.



^ permalink  raw  reply  [nested|flat] 34+ messages in thread


end of thread, other threads:[~2003-11-24 22:29 UTC | newest]

Thread overview: 34+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-09-29 17:12 Re: [ODBC] FUD!! ODBC will not be supported by Microsoft in the future Amanjit Gill <amanjit.gill@gmx.de>
2003-09-29 17:14 ` Amanjit Gill <amanjit.gill@gmx.de>
2003-09-29 20:35   ` Relaxin <noname@spam.com>
2003-09-30 11:21     ` John K. Herreshoff <jkherr@centurytel.net>
2003-10-03 12:20     ` Amanjit Gill <amanjit.gill@gmx.de>
2003-09-29 18:19 Re: FUD!! ODBC will not be supported by Microsoft in the f Janet Borschowa <borschow@roguewave.com>
2003-09-30 00:43 ` Re: FUD!! ODBC will not be supported by Microsoft in the f Rommel the iCeMAn <iceman@sunbeach.net>
2003-09-30 00:55   ` Re: FUD!! ODBC will not be supported by Microsoft in the f Relaxin <noname@spam.com>
2003-09-29 19:12 Re: FUD!! ODBC will not be supported by Microsoft in the future Andrew Ayers <aayers@eldocomp.com>
2003-09-30 12:04 Re: FUD!! ODBC will not be supported by Microsoft in the future Steve Lutz <slutz@alacritude.com>
2003-09-30 13:49 ` Stephen Frost <sfrost@snowman.net>
2003-10-01 11:53   ` markw@mohawksoft.com
2003-10-01 11:58     ` Stephen Frost <sfrost@snowman.net>
2003-10-01 12:39       ` Mike Mascari <mascarm@mascari.com>
2003-10-01 13:09         ` Stephen Frost <sfrost@snowman.net>
2003-10-09 19:22           ` Bruce Momjian <pgman@candle.pha.pa.us>
2003-10-01 12:41       ` Richard Huxton <dev@archonet.com>
2003-10-01 12:53   ` Michael Calabrese <m2calabr@yahoo.com>
2003-09-30 14:14 ` Christopher Browne <cbbrowne@acm.org>
2003-11-24 22:29   ` Randolf Richardson <rr@8x.ca>
2003-09-30 15:18 ` Jeff Eckermann <jeff_eckermann@yahoo.com>
2003-09-30 12:26 Re: FUD!! ODBC will not be supported by Microsoft in the future Dave Page <dpage@vale-housing.co.uk>
2003-09-30 16:31 Re: FUD!! ODBC will not be supported by Microsoft in the f Andrew Ayers <aayers@eldocomp.com>
2003-10-01 13:01 Re: FUD!! ODBC will not be supported by Microsoft in the future Ben Trewern <ben_trewern@hotmail.com>
2003-10-01 14:43 ` Mike Mascari <mascarm@mascari.com>
2003-10-01 13:02 Re: FUD!! ODBC will not be supported by Microsoft in the future Steve Lutz <slutz@alacritude.com>
2003-10-01 14:18 ` Jeff Eckermann <jeff_eckermann@yahoo.com>
2003-10-01 19:50   ` Relaxin <me@yourhouse.com>
2003-10-01 15:34 Re: FUD!! ODBC will not be supported by Microsoft in the future Ben Trewern <ben_trewern@hotmail.com>
2003-10-01 16:38 ` Mike Mascari <mascarm@mascari.com>
2003-10-02 09:12   ` Hiroshi Inoue <Inoue@tpf.co.jp>
2003-10-02 16:08     ` Chris Gamache <cgg007@yahoo.com>
2003-10-03 00:26       ` Hiroshi Inoue <Inoue@tpf.co.jp>
2003-10-02 17:27 Re: FUD!! ODBC will not be supported by Microsoft in the f Janet Borschowa <borschow@roguewave.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox