Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 10th, 2004, 11:24 AM
Registered User
 
Join Date: Aug 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Database Connection

Hi all,

I have an Access database that has some regular old Access tables in it. But I also have some ODBC links in the same Access database to some tables on a SQL Server database. Is it possible to connect to my Access database and query the SQL Server tables through my Access connection in ASP? I've tried it, but I keep getting an error, so I'm not sure if its possible. I'd like to avoid having to connect directly to the SQL Server database.

For example, say the DSN to the Access database is called 'AccessDSN' and within Access I linked to SQL Server tables using a DSN called 'SQLDSN'. If I try to query any of the SQL Server tables through ASP using the 'AccessDSN' connection, it gives me this error:

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] ODBC--connection to 'SQLDSN' failed.

The reason I want to use Access is I have some queries that link my Access tables to the SQL Server tables.

Is it even possible to do it this way or do I have to link directly to the SQL Server to get the other tables?

Thanks for your help!
Liz






Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Connection to Access Database reachsevar ASP.NET 2.0 Basics 1 November 28th, 2007 08:56 AM
Database Connection oneillg PHP Databases 1 October 17th, 2007 04:48 PM
Database Connection kapi.goel SQL Language 2 February 14th, 2006 07:01 PM
database connection Nitin_sharma Classic ASP Databases 1 February 8th, 2005 10:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.