denisenkom / go-mssqldb

Microsoft SQL server driver written in go language
BSD 3-Clause "New" or "Revised" License
1.81k stars 493 forks source link

Can bulkcopy load null column into tables? #780

Closed Breeze0806 closed 7 months ago

Breeze0806 commented 1 year ago

In sql server 2017, I can not load null column into table by using bulkcopy. Bulkcopy can load record only contains non-null column into tables, but it ingnore record contains null column. How can I use bulkcopy to load null column into tables? I hope I can get an real example about it.