?
Solved

oraOLEDB connection

Posted on 2002-07-06
6
Medium Priority
?
182 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 200 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month8 days, 8 hours left to enroll

765 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