Solved

oraOLEDB connection

Posted on 2002-07-06
6
177 Views
Last Modified: 2009-07-29
I am having problem when I am fetching a data column having a data type long and connecting to the database with provider oraOLEDB.
 The table emp having the long data type column has been created in a user "mainuser". I have created another user "moduser". I have giving all the permission of select, delete, insert to mod on the table emp.
Now when I am logining from VB by "mainuser" I am able to fetch the record from table emp. If I login as "moduser" I get an error "Table or View does not exist" on fetch of record.
With the same situtation of two user as above I use MSDAORA as the provider I don't have problem in both the situation.
0
Comment
Question by:saurabh_pradhan
6 Comments
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 50 total points
ID: 7134199
try to put the owner of table before the table name

mainuser.emp instead of just emp

or create public Synonym for ur table

0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 7134216
Please maintain your open questions:
Questions Asked 13
Last 10 Grades Given A A A A A A C B  
Question Grading Record 8 Answers Graded / 8 Answers Received

Thanks,
Anthony
0
 
LVL 18

Expert Comment

by:mdougan
ID: 7138568
The more common way to handle this is to grant all on table emp to Public

And then make sure that mainuser and mod user are both in the Public group.  Then, you can reference your table name as emp in both your queries and your VB code.

Normally, it's a bad idea to write an application where specific users own database objects such as queries.  dbo or whomever is the database owner should own all objects in the database, tables, procs etc.

You can log in as mainuser and create a table under the dbo if you are part of the dbo group, simply by including the dbo in the create table or create procedure statements:

create table dbo.emp .......

In this way, even if mainuser creates the table it will belong to DBO.  If mainuser and moduser are both part of DBO then both will have all rights automatically.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 2

Expert Comment

by:vbDoc
ID: 7149378
Because of the fude between MS and Oracle only use MSDAORA and not oraOLEDB.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7990776
Hi saurabh_pradhan,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Split points between: mnasman and mdougan

saurabh_pradhan, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 8053250
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange

mdougan points for you at:
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20535658.html
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

914 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now