{"id":3412,"date":"2015-12-16T09:49:47","date_gmt":"2015-12-16T14:49:47","guid":{"rendered":"https:\/\/academy.sqlbak.com\/?p=3412"},"modified":"2023-10-17T05:09:47","modified_gmt":"2023-10-17T09:09:47","slug":"invalid-object-name-msg-208","status":"publish","type":"post","link":"https:\/\/academy.sqlbak.com\/invalid-object-name-msg-208\/","title":{"rendered":"Invalid object name (Msg 208)"},"content":{"rendered":"
The “Invalid object name…<\/em>” error appears when\u00a0the name of<\/span> the selected object<\/span> is incorrect. For example, t<\/span>here is a need to selected “Column1” from the “Table_2” from the database\u00a0“Adventureworks”, the following syntax was used:<\/p>\n <\/p>\n In this case, SQL Server will send the next error:<\/p>\n Let’s check the names of all tables in the database. It was found that there was a mistake, instead “Table_2”\u00a0was “Tabl_2”. The following syntax should be applied to select “Column1” from “Table_2”:<\/p>\n The “Invalid object name…” error appears when\u00a0the name of the selected object is incorrect. For example, there is a need to selected “Column1” from the “Table_2” from the database\u00a0“Adventureworks”, the following syntax was used: SELECT Column1 FROM Tabl_2<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[159],"tags":[],"yoast_head":"\nSELECT<\/span> Column1\r\nFROM<\/span> Tabl_2<\/pre>\n
Msg 208, Level 16, State 1, Line 4<\/span>\r\nInvalid object name 'Tabl_2'.<\/span><\/pre>\n
SELECT<\/span> Column1\r\nFROM<\/span> Table_2<\/pre>\n","protected":false},"excerpt":{"rendered":"