MS Access语法错误信息
MS Access语法错误信息
This short article deals with the following common MS Access-related error messages:
Syntax error (missing operator) in query expression 'field='some_partial_string'
Syntax error in INSERT INTO statement
Syntax error in UPDATE statement
Syntax error in from clause
Syntax error in WHERE clause
There are 4 main causes for these errors: using a Reserved Word for a field name; embedded spaces in field or table names; attempting to insert unescaped single quotes; and incorrectly delimited datatypes. There is a fifth cause, and that is a genuine syntax error resulting from a typo, or otherwise misconstructed SQL statement. Assuming that you are sure this fifth cause is not applicable in your case, here's how to deal with the other four.
Reserved Words and Embedded Spaces
The most common culprits among reserved words are NAME and PASSWORD, which at first glance appear to be perfectly reasonable choices for field names in, say, a User table. What can be more confounding is that PASSWORD doesn't appear on this list of reserved words in Access. However, the fact is that in an ASP.NET application, you aren't dealing with an Access database. It's actually a Jet 4.0 database, and there is a separate list of reserved words for Jet 4.0 that does indeed include PASSWORD (but not NAME). Best advice is to familiarise yourself with both lists (and the one for Sql Server Reserved Words too) and avoid using any of them as a habit. However, if you can't change your field names, you will have to srround them with [ ] brackets:
Select [name], [password], emailaddress from Users
The same resolution applies to embedded spaces in field names: change them or surround them in [ ] brackets:
Select [user name], userpassword, [email address] from Users
When using the Query Builder within Visual Studio or Visual Web Developer, you will find that all field names are surrounded by brackets by default.
Unescaped Single Quotes and Incorrect Datatype Delimiters
相关文档:
Web Server Access on a VirtualBox Guest
In: Computing 数码编程
7
Oct
2008
I been using VirtualBox to deploy virtual machines on my Windows
machine since a significant memory upgrade. VirtualBox is suprisingly
easy to used if compared to VMWare and it just fit to my basic needs.
Access the ......
在SQL Server 内查询Access 数据, 并将数据保存到SQL Server
'Jet OLEDB:Database Password=; /*Access 密码*/
Data Source=C:\temp\Test.mdb; /*Access 数据库路径*/
Password=;/*Access工作组密码*/
1. 查询Access 表内所有数据
SELECT *
from OPENDATASOURCE
('Microsoft.Jet.OLEDB.4.0',
'Jet OLEDB:Database ......
http://support.microsoft.com/default.aspx/kb/237980/zh-cn
将 Access 数据库转换为 SQL Server 的最简便方法是使用升迁向导。升迁向导:
保留数据库结构,包括数据、索引和默认设置。
自动将 Access 有效性规则和默认设置转换为适当的 SQL Server 等效内容。
在升迁后保持表关系和参照完整性。
要在 Access 2000 ......
1:先对一些概念的理解:
JDBC:Java DataBase Connection
本季目标
1、JDBC的分类
2、JDBC的主要操作类和接口:
DriverManager、Connection、Statement、PreparedStatement、ResultSet
3、如何使用JDBC连接MySQL数据库
www.mldn.cn上有MYSQL的教程。
1、什么是JDBC?
JDBC是JAVA提供的一个服务,专门用于访问 ......
Microsoft JET Database Engine error '80004005'
Selected collating sequence not supported by the operating system.
是因为国外的主机不支持MDB文件默认的汉语拼音排序方式
只要把排序改为常规,如下图:
然后依次点击 工具 -> 数据库常用工具 -> 压缩和修复数据库
应该就可以正常使用了.
上文来源于 KinJ ......