简体   繁体   English

Windows Azure SQL数据库中用户定义的CLR数据类型

[英]User-defined CLR data types in Windows Azure SQL Database

I have created user defined data types in my project. 我在项目中创建了用户定义的数据类型。 Now I am going to deploy my project on Windwos Azure. 现在我要在Windwos Azure上部署我的项目。

I have defined user defined CLR data types in my sql server 2008 database. 我在我的sql server 2008数据库中定义了用户定义的CLR数据类型。 As much as I have read about user-defined CLR data types, these are not supported in Windows Azure SQL Database. 尽管我已经阅读过有关用户定义的CLR数据类型的信息,但Windows Azure SQL数据库中不支持这些类型。

Is there any alternative for databases with user-defined CLR datatypes when migrating to Windows Azure SQL Database? 迁移到Windows Azure SQL数据库时,是否有任何替代数据库具有用户定义的CLR数据类型?

User-defined CLR data types are not supported on Windows Azure Database. Windows Azure数据库不支持用户定义的CLR数据类型。 Relevant documentation: 相关文件:

Windows Azure SQL Database does not support user-defined common language runtime (CLR) data types. Windows Azure SQL数据库不支持用户定义的公共语言运行时(CLR)数据类型。

Source: Data Types (Windows Azure SQL Database) . 来源: 数据类型(Windows Azure SQL数据库)

The following features that were new to SQL Server 2008 are not supported by Windows Azure SQL Database: (...) Extension of spatial types and methods through Common Language Runtime (CLR) The following features that were new to SQL Server 2005 are not supported by Windows Azure SQL Database: (...) Common Language Runtime (CLR) and CLR User-Defined Types Windows Azure SQL数据库不支持SQL Server 2008中新增的以下功能:(...)通过公共语言运行时(CLR)扩展空间类型和方法不支持SQL Server 2005中新增的以下功能通过Windows Azure SQL数据库:( ...)公共语言运行时(CLR)和CLR用户定义类型

Source: SQL Server Feature Limitations (Windows Azure SQL Database) . 来源: SQL Server功能限制(Windows Azure SQL数据库)

Alternatives: 备择方案:

1) Change the application to use only data types supported by Windows Azure SQL Database. 1)将应用程序更改为仅使用Windows Azure SQL数据库支持的数据类型。 Downside: requires code and database changes. 缺点:需要更改代码和数据库。 Upside: hosted, highly available service. 好处:托管,高可用性服务。

2) Use an on-premises or third-party SQL Server. 2)使用内部部署或第三方SQL Server。 Downside: you have to host SQL Server yourself or pay someone to host it; 缺点:你必须自己托管SQL Server或付钱给某人托管它; latency may be an issue; 延迟可能是一个问题; availability and management is your concern. 可用性和管理是您关注的问题。 Upside: full SQL Server compatibility. 好处:完全兼容SQL Server。

3) Host SQL Server in Windows Azure Virtual Machines using VM images published by Microsoft. 3)使用Microsoft发布的VM映像在Windows Azure虚拟机中托管SQL Server Downside: management is your concern; 缺点:管理层是您关注的问题; high availability requires additional configuration . 高可用性需要额外配置 Upside: full SQL Server compatibility; 好处:完全兼容SQL Server; low latency; 低延迟; highly available infrastructure. 高度可用的基础设

CLR is now supported on SQL Azure databases. SQL Azure数据库现在支持CLR。

http://feedback.azure.com/forums/217321-sql-database/suggestions/401015-support-clr-stored-procedures http://feedback.azure.com/forums/217321-sql-database/suggestions/401015-support-clr-stored-procedures

I haven't created an assembly yet, since that's the tricky part. 我还没有创建一个程序集,因为那是棘手的部分。

It's not clear if this is only for SAFE mode. 目前尚不清楚这是否仅适用于安全模式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM