?
Solved

programming sql queries in Access

Posted on 2013-01-03
7
Medium Priority
?
273 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 26

Assisted Solution

by:jerryb30
jerryb30 earned 600 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 85
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 600 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Suggested Courses

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