Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Why is Excel and Access SQL different?

Excel and Access differ in the way SQL looks at tables to pull information
from a database. Why are these not interchangeable so the same statement can
be used in both.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Why is Excel and Access SQL different?

What difference are you referring to? Hard to answer the question without
knowing more specifically where you are noticing the difference. However,
the bottom line: Access is a database, Excel is not. Excel does not have a
real table structure, the data types are more limited, there is no provision
for indexing fields, ... Excel can act somewhat like a database, but the
SQL interpreter will have limitations due to these structural differences.
Then, on the other side of the spectrum, Access implements some non-standard
SQL syntax and functions. Access is not unique in bending the SQL standards
- it is the curse of any standard in computing: sticking strictly to the
defined standard ensures compatibility and portability but at the expense of
function. Having added functionality customized to a particular database
engine leads to compatibility issues...

"Blackhorse" wrote:

Excel and Access differ in the way SQL looks at tables to pull information
from a database. Why are these not interchangeable so the same statement can
be used in both.

  #3   Report Post  
Posted to microsoft.public.excel.programming
TK TK is offline
external usenet poster
 
Posts: 177
Default Why is Excel and Access SQL different?

Hi Blackhorse

It is more do to the fact that Access is a Rational Database set
up with certain database rules, and Excel is a spreadsheet.
It's more of a storage thing, in Access you store your data
the way Access wants you to store it and in Excel you store
it the way you want to store it.
Access


Good Luck
TK

"Blackhorse" wrote:

Excel and Access differ in the way SQL looks at tables to pull information
from a database. Why are these not interchangeable so the same statement can
be used in both.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default Why is Excel and Access SQL different?


Blackhorse wrote:
Excel and Access differ in the way SQL looks at tables to pull

information
from a database. Why are these not interchangeable so the same

statement can
be used in both.


I don't get what you mean. When the data source is Excel, the SQL
engine is Jet, which what I assume you mean by 'Access'. Assuming the
same version of Jet (engine and provider/driver) then the syntax should
be the interchangeable between Excel and MS Access. The way Jet
identifies tables and data types is different for Excel but this is a
practical necessity rather that a syntax deviation. Please give an
example of non-interchangeable syntax.

P.S. I've just had a thought: when you say 'Excel' do you mean MS
Query? MS Query was designed to be used with a variety of data sources,
not just MS Jet/Access. It has its own quirky SQL syntax so it can
support its own functionality, most notably parameters (I suppose so it
can parse the SQL easily for the ? placeholders). If you don't like the
syntax you can alternatively use SQL that is used by your data source
(e.g. Jet SQL) and it should be passed untouched to the source to be
executed there. However, when you do this you lose MS Query
functionality such as parameters.

Jamie.

--

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Query from Access into Excel cause Access to go to read only T Stephens Excel Discussion (Misc queries) 0 March 24th 09 04:17 PM
Can Excel access data from Access?! Al Excel Discussion (Misc queries) 5 April 5th 08 03:52 PM
export access to excel. change access & update excel at same time fastcar Excel Discussion (Misc queries) 0 June 24th 05 09:27 PM
Access data -work in Excel- save in Access s_u_resh Excel Programming 1 October 25th 04 12:52 PM
Getting Access Error Messages when running Access through Excel Dkline[_2_] Excel Programming 0 October 12th 04 09:35 PM


All times are GMT +1. The time now is 09:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"