Invalid Object Name sql

前端 未结 9 1569
面向向阳花
面向向阳花 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:24

    I faced case sensitivity problem. Below was my erroneous query

    SELECT * FROM [bccci$Biochemical View] AS ibv 
    

    here "V"- 1st character of last part of table name is Upper case but in actual table name it was lower case. that is [bccci$Biochemical view]. So my correct code was

    SELECT * FROM [bccci$Biochemical view] AS ibv 
    
    0 讨论(0)
  • 2020-12-15 23:27

    Try:

    Edit -> IntelliSense -> Refresh Local Cache
    
    0 讨论(0)
  • 2020-12-15 23:28

    Make sure you're using the correct database. It may be defaulting to the "Master" database, and it doesn't look like you have the full schema for the referenced table.

    Ex: [DatabaseName].[Schema].[TableName] or [Database1].[smmdmm].[aid_data]

    Hope this helps.

    0 讨论(0)
提交回复
热议问题