| Author: M. Irfan 06 Jul 2008 | Member Level: Gold | Rating: Points: 5 |
you are using sql statement which includes a keyword which is reserevd
use like this string update_cmd= string.Format("Update tbl_user Set [password]='"+new_password.Trim()+"' Where user='"+user.Trim()+"'");
OleDbCommand cmd_91 = new OleDbCommand(); cmd_91.CommandText = update_cmd.Trim(); cmd_91.Connection = con;
use password as [password]
Hope this helps http://matespoint.blogspot.com
|