The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Table-valued parameter 7 ("@VoucherList"), row 0, column 0: Data type 0xF3 (user-defined table type) has a non-zero length database name specified. Database name is not allowed with a table-valued parameter, only schema name and type name are valid.
How Can I Solve This Error
Rafnas T PRank #280 · 8.8K pointsPosted May 19, 2018, 3:36 AM EDT
Shraddha Ital102 pointsPosted May 19, 2018, 3:53 AM EDT
public DataTable InsertUpdateDispatchPaymentDetail(string DeliveryAddress, int DispatchByAM, int FinYearId, decimal Amount, string PaymentRmk, string FilePath, DataTable VoucherId) { DataTable dtDetail = new DataTable(); SqlParameter[] arrParam = new SqlParameter[7]; arrParam[0] = new SqlParameter("@DeliveryAddress", DeliveryAddress); arrParam[1] = new SqlParameter("@DispatchByAM", DispatchByAM); arrParam[2] = new SqlParameter("@FinYearId", FinYearId); arrParam[3] = new SqlParameter("@Amount", Amount); arrParam[4] = new SqlParameter("@PaymentRmk", PaymentRmk); arrParam[5] = new SqlParameter("@FilePath", FilePath); arrParam[6] = new SqlParameter("@VoucherList", VoucherId); ds = SqlHelper.ExecuteDataset(strConnStringRemote, "UspInsertUpdateDispatchPaymentDetail", arrParam); if (ds.Tables.Count > 0) { dtDetail = ds.Tables[0]; } return dtDetail; }Rafnas T PRank #280 · 8.8K pointsPosted May 19, 2018, 3:58 AM EDT
Rafnas T PRank #280 · 8.8K pointsPosted May 19, 2018, 3:59 AM EDT