Question

I use sql server 2014.

I have a table in my ManuDB database called (waqf).

I am trying to update the table but not allowed and a message (invalid object name waqf) appears.

I don't know what is the reason although I have a table called waqf.

image

Was it helpful?

Solution

Because you are executing the statement in Master Database as shown in the snip shot.

enter image description here

select the correct database from drop down list shown in picture or execute the following statement.

USE ManuDB 
GO

UPDATE ......

OTHER TIPS

From the drop down list of database; set it to ManuDB.

At the moment, it's pointing to Master which doesn't have your table.

Type USE <yourdatabasename> before your update statement

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top