Triệu chứng
Khi bạn cài đặt Microsoft SQL Server 2014 với tùy chọn mặc định, thuộc tính ngôn ngữ là tiếng Anh (Hoa Kỳ) us_english và thứ tự mặc định cho ngày là mdy. Nếu thứ tự ngày của hệ điều hành khác với thứ tự này, khi bạn thiết lập Managed Backup to Windows Azure, bạn sẽ nhận được các thông báo lỗi sau sau khi sao lưu hoàn tất:
Lỗi:
Lưu ý
SqlError, Code = 242, Stage = Undefined, Message = Việc chuyển đổi kiểu dữ liệu varchar sang kiểu dữ liệu ngàygiờ dẫn đến giá trị ngoài phạm vi. Câu lệnh đã bị chấm dứt.
Xếp chồng:
Lưu ý
at System.Data.SqlClient.SqlConnection.OnError(exception, SqlException, Boolean breakConnection, Action'1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject, stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior, runBehavior, SqlCommand, cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet, bulkCopyHandler, TdsParserStateObject, stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource'1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource'1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
tại System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
tại Microsoft.SqlServer.SmartAdmin.SmartBackupAgent.FileService.InsertOneRowForHelperTable(SmartBackupFilesTableRow row, SqlConnection conn, Boolean& isDuplicate)
tại Microsoft.SqlServer.SmartAdmin.SmartBackupAgent.FileService.GetLastLSNAndInsertToHelperTable(System.String, System.String, System.Guid, System.Nullable'1<System.Guid>, System.String, System.Nullable'1<System.Decimal> ByRef, System.Nullable'1<System.Decimal> ByRef, System.Nullable'1<System.Guid> ByRef, System.Nullable'1<System.Decimal> ByRef)
tại Microsoft.SqlServer.SmartAdmin.SmartBackupAgent.SmartBackup.DoJobOutcomeVerification(Microsoft.SqlServer.SmartAdmin.SmartBackupAgent.AutoBackupDBData)
tại Microsoft.SqlServer.SmartAdmin.SmartBackupAgent.SmartBackup.DoWork()
tại System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
tại System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
tại System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) tại System.Threading.ThreadHelper.ThreadStart()
Giải pháp
Sự cố này đã được khắc phục lần đầu trong bản cập nhật tích lũy tiếp theo của SQL Server.
Cập nhật Tích lũy 5 cho SQL Server 2014 /en-us/help/3011055
Giới thiệu về các bản cập nhật tích lũy cho SQL Server
Mỗi bản cập nhật tích lũy mới dành cho SQL Server chứa tất cả các bản sửa lỗi nóng và bản sửa lỗi bảo mật được tích hợp trong bản cập nhật tích lũy trước đó. Xem các bản cập nhật tích lũy mới nhất cho SQL Server:
Trạng thái
Microsoft đã xác nhận rằng đây là sự cố trong các sản phẩm của Microsoft được liệt kê trong mục "áp dụng cho".