Invalid Object Name sql

前端 未结 9 1601
面向向阳花
面向向阳花 2020-12-15 22:55

I keep getting an invalid object name error on my sql code. (member_number, subscriber_policy_number) is underlined with the error message.

The code it

9条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-15 23:22

    There might be 2 reasons for it.

    1. Table name is wrong

      Sol: Verify the table name and try to execute

    2. Database name and schema name are not mentioned with the table name in query

      Sol: Mention the database and schema name in SQL query.

    For ex:

    select * from MESQLDBM.dbo.Alert ([DatabaseName].[Schema].[TableName])
    

提交回复
热议问题