2、.SqlServer.Server;usingSystem.Data.SqlTypes;usingSystem.IO;usingSystem.Text;[Serializable][SqlUserDefinedAggregate( Format.UserDefined,//useclrserializationtoserializetheintermediateresult IsInvariantToNulls=true,//optimizerproperty IsInvariantToDuplicates=false,//optimizerproperty I