Search code examples
c#oracleoracleclient

Errors in OracleReader results


Ok, here's the problem: When i use System.Data.OracleClient, all data returns as it should, and everything is ok, but since it's outdated API i tried to move to Oracle.DataAccess dll file. And here comes the problem: I do the request, but since i get data back it's all corrupted, shown as "?" chars in VS. my connection string:

$"User Id={userCredits.DBLogin};Password={userCredits.DBPass};Persist Security Info=False;Data Source={server.Key}"

OracleCommand passes as it should without any errors, i didn't change it since changed DB driver.


Solution

  • Didn't get why that happend, but after i reworked my code to use OracleDataAdapter instead of OracleDataReader, everything work just fine.