
Q: MS SQL queries -> ANSI SQL
[James kindly replied with:]
Quote:
>If you fancy programming ODBC calls directly, there is an API >call which does this. SQLNativeSql is the name. The trouble is >you =
have to connect to the database, so there are quite a few >calls invilved.
Quote:
>I think it would be worth your while learning Transact SQL, >though. It allows you to create much more flexible queries >than Acces=
s SQL. There are a lot of "concepts" which simply >can't be expressed in a single access query which are no >problem in Transact SQL=
, and its generally a lot easier to >code to boot.
Quote:
>Hope this helps,
>James Shields
James,
Thanks for the info. I actually came across the function
SQLNativeSql while looking for ways around this problem but
couldn't find any info on the API methods to call it up. If
you have any ideas in this area, I would be well chuffed.
Cheers
Jimi
BTW I agree the Transact SQL would be a better route to go and
I have made some progress in this area. However, at the
moment, I have a LARGE number of queries in Access that need to
be stored on the Sybase box as a combination of Views / Stored
procs. I was hoping to use the SQLNativeSql function to create
the basic Sybase equivelents and then tweek them. I'm sure
I'll crack it one way or another. If and when, I'll keep you
posted!!!
--
\|/
(*.*)
*---------------------------------------oOO--(=)--OOo-----*
| James B Tollan |
| London, United Kingdom |
| |
| O tongue, thou art a treasure without end. |
| |
| And, O tongue, thou art also |
| a disease without remedy. |
| == Jelal'uddin Rumi == |
*---------------------------------------------------------*