Using D2010, UniDAC 3.00.0.10, SQL Server 2008 & PostgreSQL
To set empty string parameters to NULL I use modified SQLServerUniProvider & PostgreSQLUniProvider in which I set:
Code: Select all
TOLEDBREcordSet(Obj).SetProp(prEnableEmptyStrings, False)
Would this be the best/safest place to change this?
I think it would be useful if there was an 'EnableEmptyStrings' property available at the connection level so that whether you use a UniTable, UniQuery, UniSQL or UniConnection.ExecSQL it would write any empty string parameters as NULLs.
Regards, Paul.