Make it optional to use sql server binary serialization format

Added a parameter to switch between WKB and SQL Server binary as
serialization format