SQL SERVER database modifications is case sensitive

Original: SQL SERVER database modifications is case sensitive

Yesterday to customers, we found that the program can not be applied, tracking error, suggesting that roughly means "database table names and database field name does not exist." After the query is found in the SQL Server database is set up case-sensitive reason (usually during installation, under the correct Oracle installation is converted to uppercase by default; the SQL Server database is not converted to uppercase, but not case-sensitive when used):

The following statement is a SQL Server database settings are case sensitive :( table names and database field names)

- Modify the database is not case sensitive
alter database database name COLLATE Chinese_PRC_CI_AS

Such as: the COLLATE Chinese_PRC_CI_AS. Zjk_cx alter database
- Modify database is case sensitive
alter database database name COLLATE Chinese_PRC_CS_AS 

如:alter database zjk_cx COLLATE Chinese_PRC_CS_AS

The following is a record of each line database content is case-sensitive :( generally used in conditions where the query)

--not case sensitive

alter database database name alter column Field Name Field Type COLLATE Chinese_PRC_CI_AS

如:alter database zjk_cx alter column DBConn varchar(500) COLLATE Chinese_PRC_CI_AS

--Case sensitive

alter database database name alter column Field Name Field Type COLLATE Chinese_PRC_CS_AS

如:alter database zjk_cx alter column DBConn varchar(500) COLLATE Chinese_PRC_CS_AS

Guess you like

Origin www.cnblogs.com/lonelyxmas/p/11791708.html