-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An OleDbCommand.Prepare() method throws the System.Data.OleDb.OleDbException: 'The parameter is incorrect.' exception #31497
Comments
|
I believe the problem is related to this #981 |
I tested using a LocalDB database and OLE DB Driver for SQL Server and got a error too. "Provider=MSOLEDBSQL;Server=(localdb)\MSSQLLocalDB;Database=SarathlalDb;DataTypeCompatibility=80;Integrated Security=SSPI; " In .Net Core 3.0 or 3.1 tests with 1 parameter works, but with 2 or more parameters error occurs. @JoeHz tests the command with 1 parameter just to confirm what I said: Select * from [PlayerNumbers] where [Section] = ? |
@maryamariyan @divega @cheenamalhotra @danmosemsft @saurabh500 @msftgits |
@DevExpress-Visualization see #981 and check if that didn't solve your problem please |
@DevExpress-Visualization @jader1313 Has this got anything to do with x86 specific apps or is the issue reproducible on x64 as well? I havent tried a repro yet, but wanted to check before I try this out. |
@saurabh500 I don't know. @DevExpress-Visualization did not specify in his initial post which database/driver he was having problems with, but since it is a command with parameters, it may have been solved with the issue 981 solution. So I believe that @DevExpress-Visualization should retest. |
Hi @saurabh500 and @jader1313, Sorry for the delay. |
@DevExpress-Visualization Thanks for the information. |
Also based on @DevExpress-Visualization this seems like a x86 specific issue. |
From what @DevExpress-Visualization reported, it has already been resolved and I believe the ticket can be closed @saurabh500. |
From what @DevExpress-Visualization reported, it has already been resolved and I believe the ticket can be closed @saurabh500 . |
He moved to using the ACE driver for the x64 arch where the problems are not occurring. I will test if Jet driver with x86 app works or not. |
@saurabh500 Do you believe that there is still work to be done here? |
Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process. This process is part of our issue cleanup automation. |
This issue will now be closed since it had been marked |
The following code under the .NET Core 3 causes the System.Data.OleDb.OleDbException: 'The parameter is incorrect.' exception, but under .NET Framework, it works fine:
Code
Call Stack
Sample project
The text was updated successfully, but these errors were encountered: