Unix Technical Forum

Incorrect syntax near '5' where 5 is the beginning of a field name

This is a discussion on Incorrect syntax near '5' where 5 is the beginning of a field name within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> Hi all i get the following error [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '5'. (#170) when ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 09:46 PM
=?Utf-8?B?anc=?=
 
Posts: n/a
Default Incorrect syntax near '5' where 5 is the beginning of a field name

Hi all

i get the following error
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near
'5'. (#170)
when trying to update or delete a record from an Access Linked table. Adding
a record is fine. There is a field called 5Years, but this has not been a
problem before. Only occurred when database was moved to a new server.

SQL server version on current and old server is 2000 sp3a



--
jw
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 09:46 PM
Warren Read
 
Posts: n/a
Default RE: Incorrect syntax near '5' where 5 is the beginning of a field name

It's always been my understanding that fields can't start with certain
characters, like punctuation characters and numbers.

I'm surprised this ever worked. It may have been a bug that was fixed in
your recent release?

Perhaps someone else has a more knowledgeable response.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:23 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com