473,473 Members | 1,576 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to provide authentication information to queries involving Linked Tables ??

3 New Member
Hello ,
I use MFC DAO classes to access my MS access database .

I am using some linked tables(Linked to Oracle) in my MS Access database .

Also i have some queries in my databse , these queries select some rows from the linked tables and insert them in MS access local tables .

I am facing problem while executing these queries .
The problem is that -- through the code ; when i am asking these query to execute , it prompts for username password of the Oracle Database with which linked tables are linked .

//************* Following is my C++ code

CDaoQueryDef queryDef(piDAOConn.mDatabase);
queryDef.Open("DwnNpr");
queryDef.Execute(dbFailOnError); //this statement prompts for
// Username & Password information through
// an Oracle ODBC Driver Prompt


//*************


Is it possible for me to provide the username and password to the queryDef
through the code itself before executing the query statement so that it does not pops up a prompt window .

I will be very thankful to you if you can help me out in any way .

Thanks and Best Regards ,
Chandan Ahuja
Jan 24 '07 #1
2 2299
MMcCarthy
14,534 Recognized Expert Moderator MVP
Hello ,
I use MFC DAO classes to access my MS access database .

I am using some linked tables(Linked to Oracle) in my MS Access database .

Also i have some queries in my databse , these queries select some rows from the linked tables and insert them in MS access local tables .

I am facing problem while executing these queries .
The problem is that -- through the code ; when i am asking these query to execute , it prompts for username password of the Oracle Database with which linked tables are linked .

//************* Following is my C++ code

CDaoQueryDef queryDef(piDAOConn.mDatabase);
queryDef.Open("DwnNpr");
queryDef.Execute(dbFailOnError); //this statement prompts for
// Username & Password information through
// an Oracle ODBC Driver Prompt


//*************


Is it possible for me to provide the username and password to the queryDef
through the code itself before executing the query statement so that it does not pops up a prompt window .

I will be very thankful to you if you can help me out in any way .

Thanks and Best Regards ,
Chandan Ahuja
Chandan

You can establish an odbc/dsn link in code but you will have to go to the C++ forum for the syntax.

Mary
Jan 24 '07 #2
NeoPa
32,556 Recognized Expert Moderator MVP
It may be possible also, to set up the link so that it gets the credentials another way (stored in the DSN or even using NT credentials passed through). You'd need to check this out in the Oracle forum though.
Don't ignore Mary's post though, that could also help find a workable solution for you. Hopefully these are at least starting points for you.
Good luck.
Jan 24 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Bob Everland | last post by:
I have an application that is ISAPI and the only way to secure it is through NT permissions. I need to have a way to login to windows authentication so that when I get to the ISAPI application no...
6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
2
by: Jill Elaine | last post by:
I am building an Access 2002 frontend with linked tables to an encrypted Paradox 7 database. When I first create these linked tables, I'm asked for the password to the encrypted Paradox database,...
0
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET...
14
by: google | last post by:
I am creating a new database for use within our company, that I'd like to make reasonably secure (short of a true server based solution). The back-end of a non-server based database seems to be...
3
by: Janelle.Dunlap | last post by:
I have a table in my database that is linked to an excel spreadsheet. I need to be able to manipulate the data in this linked table so that I can create smaller normalized tables that work with...
6
by: falbrech_www | last post by:
Hi all, we got here one database which has several linked tables, whereas the link points to several csv-files. Currently we also have 2 different queries using the linked tables. Now one of us...
0
by: Chandan Ahuja | last post by:
Hello , I use MFC DAO classes to access my MS access database . I am using some linked tables(Linked to Oracle) in my MS Access database . Also i have some queries in my databse , these...
3
by: nimajneb via AccessMonster.com | last post by:
Can anyone offer me any insight on the following problem? I have an Access database on a company shared drive. I'm the designer and the only user (so far). Suddenly, any time I try to open a...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.