public static int WriteSdf( DbDataReader r, SDFile writer, string structure, string structureformat )