Solved

programming sql queries in Access

Posted on 2013-01-03
7
246 Views
Last Modified: 2013-01-08
Is it possible to program SQL queries in Access with the "dbo_ xxxxxx" scheme?
Would the underscores cause an error?
0
Comment
Question by:zachvaldez
7 Comments
 
LVL 26

Assisted Solution

by:jerryb30
jerryb30 earned 150 total points
ID: 38740909
No, the underscore will not cause an error.
Yes, you can make sql queries against (presumably) linked SQL Server tables.
0
 
LVL 84
ID: 38740942
Note that those queries must use ACCESS syntax, and not SQL Server Syntax. You can use "pass through" queries to do this - pass through queries are defined in Access, but you also define a connection string to your SQL database. The Access database then "passes through" your query to the sql server without parsing.
0
 

Author Comment

by:zachvaldez
ID: 38741369
can you provide examples please?
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Author Comment

by:zachvaldez
ID: 38741498
Id like to repharse the question?
"How can I program SQL queries in MS Access with the "dbo_tablename" schema used in SQL server?
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 150 total points
ID: 38741722
Then perhaps you need to clearly define what you mean by "SQL queries" and "Program".
By SQL Queries, do you mean queries created in Access, based on linked SQL tables?
If so, post the SQL.

By "Program" do you mean "run" those queries?
You can certainly "Run" an Access query based on SQL Linked tables.
If you are asking if you can "Write/Create" queries in Access based on Linked SQL tables, then you will have to describe, in detail, what you need to do.
(possibly posting graphical examples)

But like zachvaldez asks, it is always best to post a clear example of what you have, and what you ultimately need to end up with.

For example, you never really stated what these queries are doing, or what type of queries these were:
Select queries, or Action queries, or Crosstab queries, Group By, ...etc

Not sure if any of this is even relevant, we just need a little more clarification.

Then I am sure that any of the experts here will be able to provide a more targeted solution.

;-)

JeffCoachman
0
 

Author Closing Comment

by:zachvaldez
ID: 38756187
It is an OK answer but thanks for your help
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 38756421
Well it was not really an answer, just a request for more info.

Is this issue now resolved?
If so, what was the actual solution?
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Exporting Access Tables as CSV 3 23
How to use DLookup with IsNull Function 4 26
Create macro from runcode 30 26
Turn off MS Access Default=0 for Numerics 6 25
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question