Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET Database and Reporting > DataAdapter.fill Dataset with error: "Input string was not in a correct format"


Reply
 
Thread Tools Display Modes
  #1  
Old 07-13-2012, 10:47 AM
commodore64 commodore64 is offline
Newcomer
 
Join Date: Jul 2012
Posts: 2
Default DataAdapter.fill Dataset with error: "Input string was not in a correct format"


Hi all,
I have a problem when i fill a dataset with a query return via ODBC via Oracle.
The program work well from many month. I think, but I'm not sure, that the problem is the field "Price" that return in a record for the first time value 0,78 (so far it has been always greater than 1).
The code is:
Code:
    Dim cmd As New Odbc.OdbcCommand
    sql = "SELECT * FROM....
    cmd.CommandText = sql
    cmd.CommandType = CommandType.Text
    cmd.Connection = DB
     
     
    Dim da As New Odbc.OdbcDataAdapter
    da.FillLoadOption = LoadOption.OverwriteChanges
     
    da.SelectCommand = cmd
    da.Fill(ds, "TABLE11")
Please, can anyone help me? Thanks
Reply With Quote
  #2  
Old 07-14-2012, 12:22 PM
commodore64 commodore64 is offline
Newcomer
 
Join Date: Jul 2012
Posts: 2
Wink Resolved

Hi,
I have resolved the problem changing the ODBC property "Numeric Setting" from "Use Oracle NLS setting" at "Use Microsoft regional setting".
I hope this post is useful for someone.
Bye
Reply With Quote
Reply

Tags
dataadapter, dataadapter.fill, dataset, vb.net


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->