繁体   English   中英

尝试将 SQL Azure 数据库导出到 BACPAC 文件时出错

[英]Error trying export SQL Azure database to BACPAC file

我每天使用 Windows PowerShell 的 AzureRM 将大约 100 个数据库备份到 BACPAC 文件。

出于某种原因,其中 20 个数据库开始抛出一个奇怪的错误:

Could not export schema and data from database. One or more errors occurred. One or more errors occurred. One or more errors occurred. One or more errors occurred. One or more errors occurred. Failed to convert parameter value from a Int16 to a DateTime. Invalid cast from 'Int16' to 'DateTime'.

这个问题大约在一周前开始,总是使用相同的 20 个数据库。 我尝试使用 Az 模块而不是 AzureRM 和 Azure 门户执行备份,但显示了相同的错误。

我认为这是 Azure cmdlet 的错误,因为 Int16 是 SQL Azure 的数据类型,

请帮忙,我需要每天备份所有数据库。

请检查以确保您的源表和目标表具有相同的数据类型。

听起来您可能在服务器上有一个设置为Int16dateTime的列。

暂无
暂无

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

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