I got this parameter:
$objDbCmd.Parameters.Add(\"@telephone\", [System.Data.SqlDbType]::VarChar, 18) | Out-Null; $objDbCmd.Parameters[\"@telephone\"].Value =
I don't know about powershell, but in C# I would do something like this:
if ([string]::IsNullOrEmpty($objUser.Telephone)) { $objDbCmd.Parameters["@telephone"].Value = [DBNull]::Value; } else { $objDbCmd.Parameters["@telephone"].Value = $objUser.Telephone; }