Re: pass through query

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



pedro wrote:
I'm trying to create a pass-through query to connect from Access to
an SQL server database. I need to set/connect the ODBC property and
specify the name of the SQL server database?

Can anyone assist by way of an example?

In the ODBC Connect String property box press the build button [...] to the
right. That will open the ODBC Manager applet normally accessed via Control
Panel.

In that dialog go to the Machine Data Source tab and press the [New] button.
User or System in the next choice only matters if multiple users use the PC.
Pick as appropriate then [Next].

Scroll to the bottom of the list of drivers and find the one for SQL Server. In
the next pane give the DSN a name and description and the name of the Server.
From memory I don't remember the remaining pages, but for the most part you can
select the name of the database you want as the default database and then most
other options can go with the defaults. The final page is a page that lets you
test the connection. If it comes up successful you should be good to go.

The above assumes that a DSN pointing at your server does not already exist.
You only have to create one DSN and then for subsequent passthrough queries and
table links you can just choose that one when from the Machine Data Source Tab.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com





.



Relevant Pages

  • Re: network error
    ... the back-end properly connected with ODBC to the back-end. ... sure that you have enough record locks and that your connection is good. ... front end, and a Microsoft SQL Server database holding the tables, as the ... back end (SQL Server 2000, ...
    (microsoft.public.access.formscoding)
  • Re: Changing linked SQL Server tables in code
    ... using the Microsoft SQL Server ODBC driver. ... We've set up a test SQL Server database. ... I've found some code examples here of relinking ODBC back ends to ...
    (comp.databases.ms-access)
  • Re: Using Hyperstar to get data out of UV
    ... Though I am solid in SQL Server, ... that will allow me to connect via ODBC. ... Hyperstar is already on our system. ... SQL Server database to Hyperstar? ...
    (comp.databases.pick)
  • Re: Strange database debug exeption error
    ... Using ODBC to connect to an SQL server database, ... If you would use the OleDB driver for SQL server you won't have this problem ...
    (borland.public.delphi.database.ado)
  • Re: SQL server question
    ... Microsoft is deprecating it even for new development, ... An Access project is an Access file that provides a direct, ... You can connect an Access project to a remote SQL Server ... a local SQL Server database, or a local installation of the SQL Server ...
    (comp.databases.ms-access)