Q: MS SQL queries -> ANSI SQL 
Author Message
 Q: MS SQL queries -> ANSI SQL

Quote:


>I believe you can make both queries on Access. Or don't? What's the advantage of using INNER JOIN instead of WHERE?

Robert,

The basic difference between the two syntax types makes no
difference to MS Access/VB.  However, when creating back end
databases on SQL servers, the native SQL must be used (if
creating views / stored procedures on the box).  This excludes
(in the case of Sybase) the use of the MS Access syntax.  

Transact SQL refers to joins with the *= (left join) =* (right
join) = (inner join) type operators.  Unfortunately, it is not
as simple as substituting a *= for a left join (create a simple
four table query with left/right and inner joins and you'll see
what I mean!!).

Anyway, I'll keep everyone posted if I find a way to
'Translate' the two native tongues.

All the best

Jimi



Fri, 15 May 1998 03:00:00 GMT  
 Q: MS SQL queries -> ANSI SQL

I believe you can make both queries on Access. Or don't? What's the
advantage of using INNER JOIN instead of WHERE?

Quote:
>Hi,
>Does anyone know of an API call (possibly to odbc.dll) that
>would allow one to send as a string, Microsoft SQL (from MS
>Access) and return the ANSI equivelant.  The example below
>shows an example of what I mean:
>Microsoft SQL:
>SELECT DISTINCTROW Paragraph.Paragraph_Number,
>[Confirmation_Type].Confirmation_Type_Name,
>Paragraph.Paragraph_Text
>FROM ([Confirmation_Type] INNER JOIN
>[Confirmation_Paragraph_INT] ON
>[Confirmation_Type].Confirmation_Type_Code =
>[Confirmation_Paragraph_INT].Confirmation_Type_Code) INNER JOIN
>Paragraph ON [Confirmation_Paragraph_INT].Paragraph_Code =
>Paragraph.Paragraph_Code;
>ANSI SQL:
>SELECT DISTINCT Paragraph.Paragraph_Number,
>Confirmation_Type.Confirmation_Type_Name,
>Paragraph.Paragraph_Text
>FROM Confirmation_Paragraph_INT, Confirmation_Type, Paragraph
>WHERE
>((Confirmation_Paragraph_INT.Paragraph_Code=Paragraph.Paragraph
>_Code) AND (Confirmation_Paragraph_INT.Confirmation_Type_Code=
>Confirmation_Type.Confirmation_Type_Code));
>Basically I'd love to know if there is a function along the
>lines of (perhaps someone has written a dll to do this?):
>cSQLANSI=SQLtoANSI(MsQuery)
>Hope someone can help.
>Jimi
>--
>                                             \|/
>                                            (*.*)
>*---------------------------------------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 ==                   |
>*---------------------------------------------------------*



Fri, 15 May 1998 03:00:00 GMT  
 Q: MS SQL queries -> ANSI SQL

Quote:


>I believe you can make both queries on Access. Or don't? What's the
>advantage of using INNER JOIN instead of WHERE?

Yup,

If you use INNER JOIN the recordset is updatable, if you use the ANSI
standard where joins then the recordset is read-only. Ain't access
wonderful!

Cheers,

Bob Porter




Fri, 15 May 1998 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Q: MS SQL queries -> ANSI SQL

2. VBScript- SQL Query of MS SQL 7 Database

3. VB 4.0, ANSI SQL '89, complex queries?

4. VB->VBSQL.VBX->MS SQL Problem

5. Converting MS SQL to MS SQL CE

6. Date and Time -> SQL query

7. => VB SQL QUERY PROBLEM

8. Pass Data VB>SQL>ODBC>Oracle Database

9. dynamic pass-through query to MS-SQL server

10. SQL Pass through Query Problem with Oracle and MS Access Forms

11. SQL Query to MS-Access only returns single record

12. Crosstab query in MS SQL?

 

 
Powered by phpBB® Forum Software