danielwertheim

danielwertheim


notes from a passionate developer

Tags


Disclaimer

This is a personal blog. The opinions expressed here represent my own and not those of my employer, nor current or previous. All content is published "as is", without warranty of any kind and I don't take any responsibility and can't be liable for any claims, damages or other liabilities that might be caused by the content.

ADO.Net

Truly amazing! SQLCE truncates parameters

Recently I got a bug report in SisoDb where a document got truncated hence when getting deserialized back, the deserialization process blow up. After a short investigation I found this truly amazing bug in SQLCE4. If you have a field being nvarchar(4000) and you use a command parameters that has a value being 4001 chars where you set the…

Daniel WertheimDaniel Wertheim

C# - Custom datareader for SqlBulkCopy

When prototyping SisoDb I used DataTables under the covers when consuming the SqlBulkCopy class to insert data. This lead to that I had the source entities in memory as well as the DataTables. Since the SqlBulkCopy class can work with readers I created a very simple DbDataReader implementation over my entities instead. I gained a little p…

Daniel WertheimDaniel Wertheim