Solved

Invalid Object Name

Posted on 2008-11-03
2
580 Views
Last Modified: 2008-11-04
Experts,

I've inherited a VB.NET application that is bombing on a line where it refers to a local database table I'm trying to access.  The error is "Invalid Object Name".

Initially, I thought the problem was that the previous programmer's credentials were in the webconfig file, so I changed them to mine.  Then I realize that I didn't have permissions on the database in question, so I added myself.  Yet I still get the error.

Ideas?
0
Comment
Question by:NigelRocks
2 Comments
 
LVL 60

Expert Comment

by:chapmandew
ID: 22867654
post your query...you may be running it in the wrong db context.
0
 
LVL 13

Accepted Solution

by:
TechTiger007 earned 500 total points
ID: 22867741
Check if the application is connecting to correct database and the table / view that you are connecting to exist. Try the query in sql plus or toad to make sure that there is no problem with query
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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

863 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

26 Experts available now in Live!

Get 1:1 Help Now