sql server 2005 排序规则与大小写敏感
2007-11-11 12:54:23 来源:WEB开发网If you installed sql server(WINDOWS平台上强大的数据库平台) 2005 Full !
When Your Run Follow:
--------------------------------
use AdventureWorks
go
select * from sales.customer ----it's error!why?
select * from Sales.Customer----it's right!
---------------------------------
This issue is related to your database collation setting.
You can try run this to find out what your database collation is:
SELECT databasepropertyex(AdventureWorks','collation')
The collation of your database makes your query case sensitive.
If you want a quick change, you can change your database to another collation which is not case sensitive, for examle:
ALTER DATABASE AdventureWorks COLLATE SQL_Latin1_General_CP1_CI_AS
You can search Books online for more information on collation.
AND
There are some limitations on altering collation of a database, maybe there are some SCHEMABINGING views in the database. you can refers to SQL2005 Books Online, and locate:
'ALTER DATABASE (Transact-SQL)' topic ->'Remarks' section->'Changing the Database Collation'.
- ››SQL Server 2008 R2 下如何清理数据库日志文件
- ››sqlite 存取中文的解决方法
- ››SQL2005、2008、2000 清空删除日志
- ››SQL Server 2005和SQL Server 2000数据的相互导入...
- ››sql server 2008 在安装了活动目录以后无法启动服...
- ››sqlserver 每30分自动生成一次
- ››sqlite 数据库 对 BOOL型 数据的插入处理正确用法...
- ››sql server自动生成批量执行SQL脚本的批处理
- ››sql server 2008亿万数据性能优化
- ››SQL Server 2008清空数据库日志方法
- ››sqlserver安装和简单的使用
- ››SQL Sever 2008 R2 数据库管理
更多精彩
赞助商链接