示例#1
0
        public bool BulkCopyEnd()
        {
            tds.Comm.Append((byte)TdsPacketSubType.Done);

            // So the TDS spec calls for a Status (ushort), CurCmd (ushort) and DoneRowCount (long)
            // all of which are 0.
            // However it looks like MS .net is only sending 8 bytes not sure which parts they are leaving
            // out but we are going with the TDS spec size
            tds.Comm.Append((short)0x00);
            tds.Comm.Append((short)0x00);
            tds.Comm.Append((long)0x00);

            tds.ExecBulkCopy(30, false);
            return(true);
        }
示例#2
0
 public bool BulkCopyEnd()
 {
     tds.Comm.Append((short)TdsPacketSubType.Done);
     tds.ExecBulkCopy(30, false);
     return(true);
 }