Guest carloss Posted October 17, 2002 Posted October 17, 2002 I get the error "Syntax error in Update statement" in the following SQL: UPDATE Tasks SET Group = 'AAA' WHERE Proj = '5' If I change the name of the field from Group to something else the error goes away. Is this a problem with the SQL VB.NET parser? I want to use Group as a field name. Any other way of doing it? Quote
*Gurus* divil Posted October 17, 2002 *Gurus* Posted October 17, 2002 Tried putting Group in square brackets? Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Leaders quwiltw Posted October 17, 2002 Leaders Posted October 17, 2002 divil's suggestion should work, but I'd offer another one: Rename your column. While sql server gives you a workaround (the brackets), I think it's generally a bad idea to use keywords as column names. I'm sure others may differ. Quote --tim
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.