I'm having trouble seeing tables from one particular SQL Server 2008 database while trying to update the entity framework diagram (EFD) in Visual Studio 2010. This was working before moving the db to the new server. All other DBs on this server show their tables successfully (when in VS Entity Framework design > Right Click > Update Model from Database > 'Add' tab > Expand tables = nothing showing here).
STR
I created a database on computer A and was working on the same computer in Visual Studio 2010 to build a website app. Everything was working fine.
I then moved the DB and website app files to the primary server, computer B.
I tried to connect from VS of computer A and was unable to see any database tables while trying to update my EFD.
I tried opening the VS locally on computer B and I can still not see the EFD tables.
I tried backing up / restoring the DB to see if it was an OS file issue. <- no luck
I tried to create a new db and use the scripts generated in SQL Server to build the new db with no luck.
I've also tried changing the owner of the db, moving to sql authentication and back to windows auth and even adding security to different users that I would assume are unrelated (such as system and guest).
I believe it is a permission issue, but I can't seem to find any differences in the DBs that work (show their tables properly in entity framework designer) and this one that doesn't. I also can't see what user VS may be using to get the table information, I would assume the one that I've setup the connection for but not sure.
I'm totally stuck. In the entity framework designer I'm trying to connect using a "System.Data.SqlClient", windows integrated authentication (which should be using an admin account on the system and the owner of the db). Connection string for the entity framework is as follows:
metadata=res://*;provider=System.Data.SqlClient;
provider connection string="Data Source=localhost;Initial Catalog=myDB;
Integrated Security=True"
One last note - If I just go into VS on the top right into my Server Explorer I can create a connection there and see all of the tables just fine. However, that doesn't help me with my EFD, unfortunately.