导入表时从字符串转换为uniqueidentifier时转换失败?

时间:2015-07-23 14:57:04

标签: sql-server type-conversion uniqueidentifier navicat nul

我正在尝试使用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文件中是空的。

0 个答案:

没有答案
相关问题