Click here to Skip to main content
15,565,530 members
Home / Discussions / C#
   

C#

 
AnswerRe: Accessing Variables in a c# windows application Pin
Manas Bhardwaj12-Aug-08 6:28
professionalManas Bhardwaj12-Aug-08 6:28 
GeneralRe: Accessing Variables in a c# windows application Pin
Rome'12-Aug-08 6:33
Rome'12-Aug-08 6:33 
GeneralRe: Accessing Variables in a c# windows application [modified] Pin
c242312-Aug-08 6:39
c242312-Aug-08 6:39 
GeneralRe: Accessing Variables in a c# windows application Pin
Rome'12-Aug-08 7:01
Rome'12-Aug-08 7:01 
GeneralRe: Accessing Variables in a c# windows application Pin
TheComputerMan12-Aug-08 6:43
TheComputerMan12-Aug-08 6:43 
GeneralRe: Accessing Variables in a c# windows application Pin
Rome'12-Aug-08 7:00
Rome'12-Aug-08 7:00 
GeneralRe: Accessing Variables in a c# windows application Pin
vikas amin12-Aug-08 6:50
vikas amin12-Aug-08 6:50 
QuestionStrange problem with GetSchemaTable and utf8 Pin
stofel12-Aug-08 5:24
stofel12-Aug-08 5:24 
Hi,


I have a problem with an oracle DB which is installed with an utf8-characterset. I build a form in VS2005 where the user type in a SQL-selectstatement and the form executes it and displays the result. Everything works fine with a singlebytecharcterset.

For example:

String sqltext = "Select artext from tbl_ar"; // artext is
   // varchar2(30 char)
DataTable schTable;
OracleDataReader rdr = null;


OracleCommand cmd = new OracleCommand (sqltext, OracleConnection, OracleTransaction);
rdr = cmd.ExecuteReader(CommandBehavior.KeyInfo);
schTable = rdr.GetSchemaTable();  // Here the DataTable is filled with the
    //  information of the columns
DataRow fldDescr = schTable.Rows[0];
int len = (int) fldDescr[2]; 	    // 2 = ColumnSize



In the database with the utf8-characterset the variable len hat the value 0f 90 instead of 30. Is there a way to get the correct result ?

Thanks in advanced
Stofel
AnswerRe: Strange problem with GetSchemaTable and utf8 Pin
Wendelius12-Aug-08 8:57
mveWendelius12-Aug-08 8:57 
QuestionEvent for handling exception during Application Close in winforms Pin
Rashmi_Karnam12-Aug-08 5:14
Rashmi_Karnam12-Aug-08 5:14 
AnswerRe: Event for handling exception during Application Close in winforms Pin
Manas Bhardwaj12-Aug-08 5:24
professionalManas Bhardwaj12-Aug-08 5:24 
AnswerRe: Event for handling exception during Application Close in winforms Pin
vikas amin12-Aug-08 6:37
vikas amin12-Aug-08 6:37 
GeneralRe: Event for handling exception during Application Close in winforms Pin
Rashmi_Karnam13-Aug-08 5:05
Rashmi_Karnam13-Aug-08 5:05 
QuestionHelp: Invalid Parameter Used error Pin
nudma12-Aug-08 5:08
nudma12-Aug-08 5:08 
AnswerRe: Help: Invalid Parameter Used error Pin
Rashmi_Karnam12-Aug-08 5:28
Rashmi_Karnam12-Aug-08 5:28 
GeneralRe: Help: Invalid Parameter Used error Pin
nudma12-Aug-08 7:03
nudma12-Aug-08 7:03 
GeneralRe: Help: Invalid Parameter Used error Pin
Rashmi_Karnam13-Aug-08 5:04
Rashmi_Karnam13-Aug-08 5:04 
GeneralRe: Help: Invalid Parameter Used error Pin
nudma13-Aug-08 5:36
nudma13-Aug-08 5:36 
GeneralRe: Help: Invalid Parameter Used error Pin
Rashmi_Karnam13-Aug-08 10:57
Rashmi_Karnam13-Aug-08 10:57 
GeneralRe: Help: Invalid Parameter Used error Pin
nudma14-Aug-08 5:43
nudma14-Aug-08 5:43 
QuestionString or binary data would be truncated. The statement has been terminated. Pin
laziale12-Aug-08 4:47
laziale12-Aug-08 4:47 
AnswerRe: String or binary data would be truncated. The statement has been terminated. Pin
vikas amin12-Aug-08 6:28
vikas amin12-Aug-08 6:28 
Questionrowchanged event and update error Pin
catborise12-Aug-08 4:10
catborise12-Aug-08 4:10 
AnswerRe: rowchanged event and update error Pin
catborise13-Aug-08 2:53
catborise13-Aug-08 2:53 
QuestionNeed Help Calling A Fortran 77 (.for) DLL Pin
Nitusa12-Aug-08 4:03
Nitusa12-Aug-08 4:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.