如何更改Azure SQL数据仓库和Azure SQL数据库的排序规则? [英] How to change collation for Azure SQL Data warehouse and Azure SQL Database?

查看:345
本文介绍了如何更改Azure SQL数据仓库和Azure SQL数据库的排序规则?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Guy,

Can i change sql collation for Azure SQL Data warehouse and Azure SQL Database form Latin to another collation in exiting resource?

谁可以帮我推荐我问题。请帮忙建议我。

Who can help and recommend me about my issue. please help suggestion me.

谢谢,

za_phu

推荐答案

创建Azure SQL数据库和Azure SQL Datawarehouse后,无法直接更改排序规则。

There is no direct way to change the collation for Azure SQL Database and Azure SQL Datawarehouse once they are created.

是否需要更改特定列或整个数据库的排序规则。

Do you need to change the collation on specific columns or the entire database.

您可以使用下面的脚本在各列上更改它

You can change it on individual columns using the script below

ALTER TABLE dbo.MyTable ALTER COLUMN CharCol  
            varchar(10)COLLATE YOURTARGETCOLLATION NOT NULL;  
GO  

但是如果你需要在整个数据库上更改它,你可以通过一个。 bacpac文件。

However if you need to change it on the entire database, you can do it via a .bacpac file.

请参阅说明
here

如果您有其他问题,请与我们联系。

Do let me know if you have further questions.


这篇关于如何更改Azure SQL数据仓库和Azure SQL数据库的排序规则?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆