Questions about OleDbParameter

Source: Internet
Author: User

The younger brother encountered a very strange problem when performing a simple sort operation.

In the past, sqlParameter was used more than limit. The first time OleDbParameter. debug was used, it was not found that the value was too large.

There is only one sequence number, so there is no sequence problem.

I also hope you can point to one or two. Invalid parameters.

. Net 4.0 + vs 2013 + c #

1 protected void button#click (object sender, EventArgs e) 2 {3 string StrSQL = @ "select * from acoa1002 where grno = @ grno"; 4 DataTable table = OracleHelper. executeDataTable (StrSQL, 5 new OleDbParameter ("@ grno", txtGR. text. trim (). toString () 6); 7 GridView1.DataSource = table; 8 GridView1.DataBind (); 9} 10 11 12 public static DataTable ExecuteDataTable (string SQL, params OleDbParameter [] parameters) 13 {14 using (OleDbConnection conn = new OleDbConnection (ConnStr) 15 {16 conn. open (); 17 using (OleDbCommand cmd = new OleDbCommand (SQL, conn) 18 {19 cmd. commandText = SQL; 20 cmd. commandType = CommandType. text; 21 cmd. parameters. addRange (parameters); 22 OleDbDataAdapter da = new OleDbDataAdapter (cmd); 23 DataSet ds = new DataSet (); 24 da. fill (ds); 25 return ds. tables [0]; 26} 27} 28}View Code '/' sends a server response in the application. When processing commands, one or more worker nodes are generated.
ORA-00936: Missing Representation

Description:Exceptions that are not handled during the current Web requirements of the primary row are reported. Please refer to the heap tracing to obtain the dynamic metadata and production location in the program.

Exception:System. Data. OleDb. OleDbException: when processing commands, one or more batch operations are generated.
ORA-00936: Missing Representation

Original program example: 

Row 25: OleDbDataAdapter da = new OleDbDataAdapter (cmd); row 26: DataSet ds = new DataSet (); Row 27: da. fill (ds); row 28: return ds. tables [0]; row 29 :}


Original program example:D: \ Dev. Source \ Jeason \ COAPODO \ OracleHelper. csRow:27

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.