我正在尝试使用 Navicat for SQL Server 导入表,但我收到此错误:
[Err] [Row1] [Imp] 42000 - [SQL Server] 从字符串转换为唯一标识符时转换失败。
[错误] [Row1] [Imp]
INSERT INTO [edfi].[StudentSchoolAssociation]
([StudentUSI],[SchoolId], [SchoolYear],[EntryDate],
[EntryGradeLevelDescriptorId], [EntryGradeLevelReasonTypeId],
[EntryTypeDescriptorId], [RepeatGradeIndicator],
[SchoolChoiceTransfer], [ExitWithdrawDate],
[ExitWithdrawTypeDescriptorId],[ResidencyStatusDescriptorId],
[PrimarySchool], [EmployedWhileEnrolled],
[ClassOfSchoolYear], [EducationOrganizationId],
[GraduationPlanTypeDescriptorId], [GraduationSchoolYear],
[Id], [LastModifiedDate], [CreateDate])
VALUES ('89', '2',
'2014', '1913-9-9',
'133', NULL,
'2184038928404', NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1776',
'', 0, 0)
[Err] [Row1] [Imp] 42000 - [SQL Server] 从字符串转换为唯一标识符时转换失败。
倒数第三列是ID
,它是带有 ( newid()
) 的 NOT NULL 唯一标识符。我想自动生成这些 ID,因此它们在 csv 文件中为空。