Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing an intranet web-based application which has a part for managing its users. I am trying to develop this part using a ListView Control. Everything works fine except updating the information of the employee. Before explaining the problem, let me explain to you the database design:

Employee Table: Username, Name, DivisionCode
Division Table: DivisionCode, Division

(The first attribute in each table is the primary key)

I have a problem with updating the division for the employee and when I tried to do, I got the following error:
Invalid column name 'Username'.
Posted
Updated 19-Feb-13 7:33am
v2

1 solution

Dear Friend,

Try this:-

enclose your column name in square braces []. This happens in case your column name contains special Characters, spaces, or key words.

eg:
select [column name] from yourTable
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900