我正在尝试使用Navicat for SQL Server导入表格,我收到此错误:
[Err] [Row1] [Imp] 42000 - [SQL Server]从字符串转换为uniqueidentifier时转换失败。
[Err] [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]从字符串转换为uniqueidentifier时转换失败。
倒数第三列是ID
,它是带有(newid()
)的NOT NULL uniqueidentifier。我想自动生成这些ID,因此它们在csv文件中是空的。