How to set the Collation properties of the database
2012-04-07 16:07
441 查看
-- set to the single user exclusive mode
ALTER DATABASE testdb SET SINGLE_USER WITH ROLLBACK IMMEDIATE
go
-- modify the collation properties as SQL_Latin1_General_CP1_CI_AI
ALTER DATABASE testdb COLLATE SQL_Latin1_General_CP1_CI_AI
go
-- restore to multi user mode.
ALTER DATABASE testdb SET MULTI_USER
go
ALTER DATABASE testdb SET SINGLE_USER WITH ROLLBACK IMMEDIATE
go
-- modify the collation properties as SQL_Latin1_General_CP1_CI_AI
ALTER DATABASE testdb COLLATE SQL_Latin1_General_CP1_CI_AI
go
-- restore to multi user mode.
ALTER DATABASE testdb SET MULTI_USER
go
相关文章推荐
- How to set the width of columns?about chart control for .net
- 如何窥探PDB的秘密?(How to Inspect the Content of a Program Database (PDB) File)
- How to get the published properties of an persistent object
- How to parse the user activity of a Lotus Notes database
- How to Calculate the Number of IOPS and Throughput of a Database (文档 ID 2206831.1)
- How to set the font of CListCtrl header
- How to reduce the size of logging database OR How to purge the old data from Logging Database
- how to get the space size of some tables in one database?
- How To List All The Named Events Set For A Database [ID 436036.1]
- How can I set the background of UITableView (the tableview style is "Grouped") to use an image?
- How to delete the full-text index of a notes database
- How To List All The Named Events Set For A Database
- How to set the enviroment variables of JDK & Eclipse!
- How to set the title of UIButton as left alignment?
- How To List All The Named Events Set For A Database [ID 436036.1]
- [转]How to set the control word of FPU in delphi
- 如何给上传控件上色【HOW TO SET CSS FOR THE CONTROL OF FILEUPLOAD】
- How to Tell if the I/O of the Database is Slow - 1
- How to get a notification from Linux when the set of network interfaces changes
- Please pay more attention to the character set of your database