sql server 2005 排序规则与大小写敏感
作者:互联网
2009-05-31
If you installed Sql Server 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'.
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
分库分表不是银弹!中间表,二次分库分表,ES中间件结合
面试准备之SQL 6 —— 存储过程
面试准备之SQL 5 —— 事务、索引和视图
面试准备之SQL 4—— 数据查询
面试准备之SQL 3——数据管理
面试准备之SQL 2——数据库的实现(T-SQL建库建表)
面试准备之SQL 1——数据库设计
TFS2008SP1, 升级数据库从SQL2005SP3到SQL2008SP1
安装 SQL SERVER MsiGetProductInfo 无法检索 Product Code 解决方案
数据库组件 Hxj.Data
AI精选
