Script that returns all available collations
select * from fn_helpcollations()
Script that returns all your databases' collations
select name, collation_name
from sys.databases
SELECT DATABASEPROPERTYEX('timetableuws', 'Collation')
Query that returns your sql server instance's collation
select SERVERPROPERTY('collation')
Query table columns collation:
SELECT name, collation_name
FROM sys.columns
WHERE OBJECT_ID IN ( SELECT OBJECT_ID
FROM sys.objects
WHERE type = 'U'
AND name = 'reg2003AU')
Change database collation
alter database collationtest collate Cyrillic_General_CI_AS
How to change database or server collation in SQL Server
http://www.db-staff.com/index.php/microsoft-sql-server/69-change-collation
No comments:
Post a Comment