Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics 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 March 3rd, 2005, 05:35 PM
Registered User
 
Join Date: Mar 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Read Linked tables in Access from VB code

I have Oracle 8i tables linked into an Access database. I have a VB frontend that uses the data from Access. I am trying to read the linked Oracle tables from my VB code, but it keeps prompting me for the Oracle user name and password. How to I connect to these linked tables in Oracle using ADO recordsets without getting a login prompt? I have heard that I can create a DSN file with the login information in it, but I have a large number of users and don't want to install a DSN file on their computers. Is there another way?

Meg.
 
Old March 3rd, 2005, 07:17 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Import the data into Access rather than liknking to it.
You also could just read the information from Access regarding what the resource is that is being linked to, and build a connection to those same data into your VB.
 
Old March 3rd, 2005, 07:30 PM
Registered User
 
Join Date: Mar 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I can not import the data because it is being updated on the Oracle side as well. I need to see current changes. I could connect directly to Oracle, which I do in other places, but there are limitation to what you can do with a recordset. Plus I have written all the code to write to Access tables and want to save time by not having to rewrite all the code with the ODBC connection limitations. That is why I am hoping to find away to make these linked tables work. Thank you though for time and the response!!
 
Old March 4th, 2005, 11:26 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

What if you connected to Oracle, created a temp table from the recordset, made your changes, then used a recordset to read the temp table back into Oracle?

It wouldn’t exactly be “live” data, but in some cases this is actually good enough.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing Linked SQL tables in Access seran128 Classic ASP Professional 0 April 3rd, 2006 10:39 PM
code to read in Access tables to a dataset - hlp! ruairi ADO.NET 4 February 12th, 2005 06:03 PM
Access Linked Tables StephenDID Access ASP 6 October 6th, 2003 10:08 AM
Access - Linked ODBC Tables Ben Access 0 July 24th, 2003 10:39 AM
Want to code external linked tables in Access Michael Allaire Access VBA 1 July 23rd, 2003 06:11 PM





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