Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.databases.ms-sqlserver > #1306

Re: Odbc and client library/drivers

Received by 10.224.207.197 with SMTP id fz5mr1013921qab.3.1348131500735; Thu, 20 Sep 2012 01:58:20 -0700 (PDT)
Received by 10.52.28.83 with SMTP id z19mr106199vdg.20.1348131500702; Thu, 20 Sep 2012 01:58:20 -0700 (PDT)
Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!i6no84448qas.0!news-out.google.com!t12ni2384qak.0!nntp.google.com!i6no63545qas.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.databases.ms-sqlserver
Date Thu, 20 Sep 2012 01:58:20 -0700 (PDT)
In-Reply-To <6e3349a4-60ed-451d-b7bf-3365ff488a74@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=83.145.50.10; posting-account=3_reEwoAAAC163IAIrx427KYmwahFuh9
NNTP-Posting-Host 83.145.50.10
References <94298aed-7cbb-41f8-a155-c4632fc9db35@googlegroups.com> <6e3349a4-60ed-451d-b7bf-3365ff488a74@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <9e19484b-dfc1-458a-a76e-7d0eff554229@googlegroups.com> (permalink)
Subject Re: Odbc and client library/drivers
From björn lundin <b.f.lundin@gmail.com>
Injection-Date Thu, 20 Sep 2012 08:58:20 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-Received-Bytes 2902
Xref csiph.com comp.databases.ms-sqlserver:1306

Show key headers only | View raw


> How about using views on the server on the same table - then you can 
> stick to using "SELECT *" in queries, but you can use different column 
> orders on the same table in different views.  In MS SQL Server,
> I suppose probably in Oracle as well, you can also INSERT, UPDATE,
> and DELETE on a view.

Yes, however only the client uses views, and the client can not update the DB.

> Also, if your elderly ODBC tool is upset by some modern data types,
> then you could use views so that those columns either don't appear,
> or are CONVERT-ed to something more digestible.

That is no problem. The datatypes we use are present already, but for
XML-type. But this is so different from Oracle's version that
we see no common denominator. So we use varchar to store the xml,
and bring it out from the db, and we parse that string,
either with SAX or with Xpath, within the Ada code.

> For INSERT etc., in such a case, you may be able to define triggers 
> on a view that intercept an action that makes excessively simple 
> assumptions about the nature of a table where you have actually
> used a view, and, instead, the trigger performs complicated data
> operations that your client program doesn't need to control directly.

Hmm, yes, but all business logis is in Ada.
It will be a nightmare to implement the same logic in both T-sql and pl/sql

we have 1 or 2 trace triggers, that copies a record when it changes to a 
trace table. That is bad enough to implement twice.
The reason to have that in trigger code is that we catch
events we might miss otherwise.


Thanks for the suggestions though
--
Björn Lundin

Back to comp.databases.ms-sqlserver | Previous | NextPrevious in thread | Find similar


Thread

Odbc and client library/drivers björn lundin <b.f.lundin@gmail.com> - 2012-09-18 10:48 -0700
  Re: Odbc and client library/drivers Erland Sommarskog <esquel@sommarskog.se> - 2012-09-18 21:57 +0200
    Re: Odbc and client library/drivers björn lundin <b.f.lundin@gmail.com> - 2012-09-18 13:24 -0700
      Re: Odbc and client library/drivers George Neuner <gneuner2@comcast.net> - 2012-09-19 11:46 -0400
      Re: Odbc and client library/drivers Erland Sommarskog <esquel@sommarskog.se> - 2012-09-19 21:16 +0200
        Re: Odbc and client library/drivers Gene Wirchenko <genew@ocis.net> - 2012-09-19 13:14 -0700
          Re: Odbc and client library/drivers björn lundin <b.f.lundin@gmail.com> - 2012-09-19 13:41 -0700
            Re: Odbc and client library/drivers björn lundin <b.f.lundin@gmail.com> - 2012-09-19 13:45 -0700
              Re: Odbc and client library/drivers björn lundin <b.f.lundin@gmail.com> - 2012-09-19 13:56 -0700
                Re: Odbc and client library/drivers björn lundin <b.f.lundin@gmail.com> - 2012-09-19 14:00 -0700
        Re: Odbc and client library/drivers björn lundin <b.f.lundin@gmail.com> - 2012-09-19 13:26 -0700
          Re: Odbc and client library/drivers Erland Sommarskog <esquel@sommarskog.se> - 2012-09-19 23:44 +0200
            Re: Odbc and client library/drivers björn lundin <b.f.lundin@gmail.com> - 2012-09-20 01:50 -0700
              Re: Odbc and client library/drivers Erland Sommarskog <esquel@sommarskog.se> - 2012-09-20 23:31 +0200
                Re: Odbc and client library/drivers björn lundin <b.f.lundin@gmail.com> - 2012-09-21 01:18 -0700
                Re: Odbc and client library/drivers bradbury9 <ray.bradbury9@gmail.com> - 2012-09-21 02:57 -0700
                Re: Odbc and client library/drivers björn lundin <b.f.lundin@gmail.com> - 2012-09-21 03:10 -0700
                Re: Odbc and client library/drivers björn lundin <b.f.lundin@gmail.com> - 2012-09-21 03:14 -0700
  Re: Odbc and client library/drivers rja.carnegie@gmail.com - 2012-09-19 16:57 -0700
    Re: Odbc and client library/drivers björn lundin <b.f.lundin@gmail.com> - 2012-09-20 01:58 -0700

csiph-web