Reputation: 1093
This is my first time working on a database project, and I'm using Visual Studio 2013.
I simply followed the instruction on Microsoft to create a database project as listed below:
Import
--> Database
and successfully imported tablesAdd
--> Stored Procedure...
However I keep getting this Invalid object name 'TABLENAME'.
message for any tables I've imported.
I've tried Use DATABASE_NAME;
but it did not help.
Also I've read about refreshing IntelliSense but I do not get the refresh option in VS2013. Plus, it's not just the IntelliSense because I still get the same error when I manually type in the table name.
Even if I create a stored procedure directly in SSMS and then try to run it, I still get the same Invalid object name
error.
Any help is appreciated very much.
Upvotes: 1
Views: 4798
Reputation: 1093
The problem was that I didn't change the connection setup to use the correct database server (I was using the local one).
Debug
Target Connection String
, click Edit
and select the correct database serverUpvotes: 3