I was working in a online inventory application for my client....
I had a Access database......in which there was a few tables.....
In one of my tables i had columns like PurchaseDate, ExpiryDate, ItemName, ItemCode, ItemBarCode, Size, Shape, Make, Color, Qty...etc
I passed a simple insert query to insert values to these fields....
Every time i click on Submit button i used to get error message as Syntax Error in insert into statement...
I sat for 2 hrs....try fixing it...it seemed that there's nothing wrong with the insert statement....
Database connection was perfect...
After 1 hr of debugging in all sorts of ways ....the error was the same...
Now The table had 21 columns.....and i wrote insert statements for each column one by one....
and came to a conclusion that insert statement works absolutely fone on other columns..except the Size column...Now how was it happening ..i don't know....
Then i changed the column name in the database to ISize....and Wola everything was fine.....
Now i understood that Size is a reserved word and i can't use it...
other reserved words i found out are Name, Level...
And Lets see how much you can find......@!!@$#%#