I am designing a large database where the users will produce and store documents. Its a CMS kinda thing.
The table I’ve created is called “Doc” and then I have a “DocAssets” relation that keeps track of all the things inside the Doc.
The Doc table has a DocID ofcause.
But when I goto Entity Framework model designer and retrieve tables from database, I dont see “Doc” as a table to add.
If I rename Doc to, lets say MDoc for testing purpose. The table shows up nicely when updating from database. If I rename it back to Doc, it disappears from table list.
Now, if its a reserved word, I will figure out something else for naming strategy, but – is it me, is it a bug or is it a reserved word??
Nope it’s not a reserved word.
The “smarter question” would have been:
what would cause a table not to show up?. Now you are already assuming it is caused by it’s name and hinting to reserved words. That might set people trying to help you, but also yourself, off on the wrong track to begin with.And, might I add, not to rub it in, ofcourse you could have answered the ‘reserved word question’ yourself easily. Posting the question on SO is actually more work than punching in “sql server reserved words” in google and clicking “I’m feeling lucky” or the first hit.