473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

SQL Server + Access = No Queries!?

48
So I'm connecting to an external SQL server. The data I need to access is stored across three tables, lets call them:

tblTinkerers
tblWidgets
tblParts

tblTinkerers is related to tblWidgets by the latter's PK.
tblWidgets is related to tblParts by the latter's PK

So, to see what Tinkerers need which parts, you need to traverse the tables. Now, I've not really worked with this SQL server thing, and don't quite understand a lot of the restrictions. Normally, I would just make a query between the first two tables, and then another query with the combination of the first two with the third.

I can't seem to do that now.

So, I'd very much like either of the following:
1) an easier way to do this normally that I'm missing, or
2) a way I can create joins within this SQL realm.

Please and thank you all.
Nov 6 '07 #1
4 1217
ADezii
8,834 Expert 8TB
So I'm connecting to an external SQL server. The data I need to access is stored across three tables, lets call them:

tblTinkerers
tblWidgets
tblParts

tblTinkerers is related to tblWidgets by the latter's PK.
tblWidgets is related to tblParts by the latter's PK

So, to see what Tinkerers need which parts, you need to traverse the tables. Now, I've not really worked with this SQL server thing, and don't quite understand a lot of the restrictions. Normally, I would just make a query between the first two tables, and then another query with the combination of the first two with the third.

I can't seem to do that now.

So, I'd very much like either of the following:
1) an easier way to do this normally that I'm missing, or
2) a way I can create joins within this SQL realm.

Please and thank you all.
The SQL would look something like this assuming the following Primary Keys, Relationships, and Field Names:

Expand|Select|Wrap|Line Numbers
  1. SELECT tblTinkerers.TinkererID, tblTinkerers.T_Name, tblParts.Part_Name
  2. FROM (tblTinkerers INNER JOIN tblWidgets ON tblTinkerers.TinkererID = tblWidgets.TinkererID) INNER JOIN tblParts ON tblWidgets.WidgetID = tblParts.WidgetID
  3. ORDER BY tblTinkerers.T_Name;
  4.  
  1. tblTinkerers.[TinkererID){PK}[1] ==> tblWidgets.[TinkererID][MANY]
  2. tblWidgets.[WidgetID]{PK}[1] ==> tblParts.[WidgetID][MANY]

NOTE: The Tinkerer's ID, Name, and Part Names would be displayed for each Tinkerer by the Tinkerer's Name Ascending (WOW! - getting tongue tied)
Nov 7 '07 #2
isoquin
48
I should clarify:

I'm not having a problem with the SQL statement (although that did make things much more clear), but rather that I can't seem to create queries within an Access project that pulls data from an external SQL server (which I enter through IP address and login).

Ideas?
Nov 12 '07 #3
ADezii
8,834 Expert 8TB
I should clarify:

I'm not having a problem with the SQL statement (although that did make things much more clear), but rather that I can't seem to create queries within an Access project that pulls data from an external SQL server (which I enter through IP address and login).

Ideas?
can't seem to create queries within an Access project that pulls data from an external SQL server (which I enter through IP address and login).
I'm not really sure what you mean when you say you cannot create Queries in an Access Project, please explain in more detail.
  1. Do you have a legitimate Connection to SQL Server and have you tested that Connection?
  2. Does you Login have the necessary Permissions on the Tables comprising the Query?
  3. Have you tried Creating/Executing the Queries utilizing an Administrative Login?
  4. Can you create simple SELECT Queries on the SQL Server data?
  5. Do you have required Permissions on the Directory where the SQL Server Database resides?
Nov 12 '07 #4
isoquin
48
I'm not really sure what you mean when you say you cannot create Queries in an Access Project, please explain in more detail.
  1. Do you have a legitimate Connection to SQL Server and have you tested that Connection?
  2. Does you Login have the necessary Permissions on the Tables comprising the Query?
  3. Have you tried Creating/Executing the Queries utilizing an Administrative Login?
  4. Can you create simple SELECT Queries on the SQL Server data?
  5. Do you have required Permissions on the Directory where the SQL Server Database resides?
I have a legitimate connection, tested and true. I can pull data, export it to a blank database, and play with it as usual. However, in the SQL connection Access project, the Queries "tab" only lists the following:
Create Function in Designer
Create View in Designer
Create Stored Procedure in Designer

But, if I try to open any of these, it says my version doesn't support them with an external SQL database. As such, I"ve been having to export the data continuously, which is a pain.

idea?
Nov 14 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
6
by: Jegger | last post by:
Hello! We have following situation; network with 100 users, aplication developed in Access, user DB deployed on SQL Server. Is it better to create query inside aplication (with code) and then...
29
by: Mark B | last post by:
We have an Access app (quite big) at www.orbisoft.com/download. We have had requests by potential users to have it converted to an SQL version for them since there corporate policy excludes them...
4
by: neptune | last post by:
I've been reading the numerous posts on using SQL Server vs. Access, but still don't know if SQL server is right for my applications. I work in a section of a large corporate accounting department...
67
by: Mike MacSween | last post by:
I've got a SQL Server database. Nearly finished. It's going to go on a single non networked machine. One day somebody might get access to it over ADSL (probably TS), but for now it's a single user...
15
by: brettclare | last post by:
I have linked a large SQL Server table to Access, however 'only' 2,195,439 records are shown and are available to query. Can I increase the size (cache??)/number of records showing in Access? ...
11
by: Bob | last post by:
I am in the process of upgrading an Access database to SQL Server (and climbing that learning curve!). The wizard happily upgraded all the tables and I can link to them OK using ODBC. The...
10
by: tlyczko | last post by:
Hello, We have Access databases (backends) that will eventually be consolidated into a SQL Server database, to facilitate data reporting, analysis, etc. Some queries in one Access database...
5
by: marshmallowww | last post by:
I have an Access 2000 mde application which uses ADO and pass through queries to communicate with SQL Server 7, 2000 or 2005. Some of my customers, especially those with SQL Server 2005, have had...
9
by: Mourad | last post by:
Hi All, Is it possible to create a Make Table query in access (2.0 and 2003) that creates the table into a SQL Server database? Following the steps: 1- Create New Query 2- Set Query Type as...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.