-1

I have a column in the table Person

IsApproved bit NULL,

I have a class Person with below property

bool? IsApproved { get; set; } 

When I try to bulk insert values in Person table with Person.IsApproved value set to null, it gives the below exception.

cannot change datatype of a column once it has data.

Please help me how to store NULL value in the IsApproved column using bulk insert.

Aamir
  • 1
  • 1
  • 4

1 Answers1

-2

Set Person.IsApproved from null to System.DBNull.Value in visual studio.

Draken
  • 3,134
  • 13
  • 34
  • 54