Cannot find the object because it does not exist or you do not have permissions. Error in SQL Server

前端 未结 14 2104
面向向阳花
面向向阳花 2020-12-05 12:35

I have a database and have a Sql script to add some fields to a table called \"Products\" in the database.

But when i am executing this script, I am getting the foll

14条回答
  •  旧时难觅i
    2020-12-05 13:04

    In my case I had created the tables via a script in Visual Studio's Server Explorer where I could perfectly query them. The connectionstring was ok. When rebooting my pc I saw that none of the tables came up anymore in the Server Explorer. I reran the creation script in Management studio and my problem was solved. Bizarre ? Yes.

    My lesson: if nothing helps, reboot your pc

提交回复
热议问题