Quantcast
Channel: Data Overflow The Parameter Data is too large to fit into the host field
Viewing all articles
Browse latest Browse all 14

Re: Data Overflow The Parameter Data is too large to fit into the host field

$
0
0

Could you try the below ones,

1. With (?)
SqlDataSource1.SelectCommand ="select order, recalled, edte, acct, sub, name, add1, add2, add3, code from lib.tablename t1 where code IN (?) and edte >= ? and edte <= ? order by t1.order desc"

OR

2. With ({?})
SqlDataSource1.SelectCommand ="select order, recalled, edte, acct, sub, name, add1, add2, add3, code from lib.tablename t1 where code IN ({?}) and edte >= ? and edte <= ? order by t1.order desc"

OR

3. With ({?}) and function GetCodeList()
SqlDataSource1.SelectCommand = String.Format("select order, recalled, edte, acct, sub, name, add1, add2, add3, code from lib.tablename t1 where code IN ({?}) and edte >= ? and edte <= ? order by t1.order desc),GetCodeList())"

GetCodeList() function should return the following without open and close braces,

"'CCM', 'CCS', 'CDR', 'CIR', 'CLM', 'CLP', 'CMC', 'CML', 'CMS', 'CNI', 'CRB', 'CRD', 'CRW', 'CTP', 'CTU'"
 

.RS.


Viewing all articles
Browse latest Browse all 14

Latest Images

Trending Articles





Latest Images