Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
GeneralRe: Credentials Pin
CodingYoshi17-Dec-08 12:07
CodingYoshi17-Dec-08 12:07 
GeneralRe: Credentials Pin
Eddy Vluggen18-Dec-08 4:55
professionalEddy Vluggen18-Dec-08 4:55 
Questionhow can i write in Excel files and create spreadsheets using C# and Pin
ahmedhassan9617-Dec-08 6:24
ahmedhassan9617-Dec-08 6:24 
AnswerRe: how can i write in Excel files and create spreadsheets using C# and Pin
Pr@teek B@h!17-Dec-08 7:29
Pr@teek B@h!17-Dec-08 7:29 
QuestionWhat is the equivalent C# syntax of void SomeFunction( array<object^>^ &updatelist) Pin
s196675m17-Dec-08 6:22
s196675m17-Dec-08 6:22 
AnswerRe: What is the equivalent C# syntax of void SomeFunction( array<object^>^ &updatelist) Pin
Bram Fokke17-Dec-08 7:03
Bram Fokke17-Dec-08 7:03 
GeneralRe: What is the equivalent C# syntax of void SomeFunction( array<object^>^ &updatelist) Pin
s196675m17-Dec-08 9:54
s196675m17-Dec-08 9:54 
QuestionobjOleDbDataAdapter.Fill(objDataSet, tableName); with sybase Pin
codeadair17-Dec-08 5:02
codeadair17-Dec-08 5:02 
HI,all.
Today, when i want to get data from sybase table.
i have puzzled with a strang thing.
just like the title. when the program runs to the point, my program dipped into it. the program will not run to the next statement and also with no error threw out.
what is wrong? how could i get data from sybase table as i getting from oracle.

by the way,i could do insert,update,delete operating in my program.and one thing else,when i use oleDbDataReader to read data from sybase table, another problem happens,when i do "myReader.Close();".the same thing happens,the program will not go to next statement.

Here is my part codes:

public int LoadDataSetFromSYBASE(string sql, string tableName, ref DataSet objDataSet)
{
this.sybase_Connect();
int iCount = -1;

OleDbDataAdapter objOleDbDataAdapter = new OleDbDataAdapter(sql, this.sybase_con);
try
{
iCount = objOleDbDataAdapter.Fill(objDataSet, tableName);
}
catch(Exception e)
{
throw (new Exception("Error in LoadDataSetfromSYBASE method. " + e.Message));
}
finally
{
this.sybase_Disconnect();
}

return iCount;
}


public void LoadDataFromSYBASE(string sql,object obj)
{
using (OleDbConnection connection = new OleDbConnection(sybase_ConnectionString))
{
OleDbCommand command = new OleDbCommand(sql, connection);

connection.Open();
OleDbDataReader reader = command.ExecuteReader();

reader.Read();
obj=reader[0];
reader.Close();
}
}

MSN:msnadair@hotmail.com
Skype:skyadair

Questionis it possible to import a dll file which was developed my C# in to a asp.net application? Pin
MS Lee17-Dec-08 4:22
MS Lee17-Dec-08 4:22 
AnswerRe: is it possible to import a dll file which was developed my C# in to a asp.net application? Pin
Pete O'Hanlon17-Dec-08 4:33
mvePete O'Hanlon17-Dec-08 4:33 
AnswerRe: is it possible to import a dll file which was developed my C# in to a asp.net application? Pin
Paul Conrad17-Dec-08 5:46
professionalPaul Conrad17-Dec-08 5:46 
GeneralRe: is it possible to import a dll file which was developed my C# in to a asp.net application? Pin
MS Lee17-Dec-08 17:57
MS Lee17-Dec-08 17:57 
QuestionAssigning a null value Pin
ArielR17-Dec-08 2:11
ArielR17-Dec-08 2:11 
AnswerRe: Assigning a null value Pin
User 665817-Dec-08 2:13
User 665817-Dec-08 2:13 
GeneralRe: Assigning a null value Pin
ArielR17-Dec-08 2:16
ArielR17-Dec-08 2:16 
GeneralRe: Assigning a null value Pin
Dave Kreskowiak17-Dec-08 2:24
mveDave Kreskowiak17-Dec-08 2:24 
GeneralRe: Assigning a null value Pin
ArielR17-Dec-08 4:51
ArielR17-Dec-08 4:51 
AnswerRe: Assigning a null value Pin
PIEBALDconsult17-Dec-08 2:59
mvePIEBALDconsult17-Dec-08 2:59 
QuestionHow to pass parameter with quate to crystal reports from a C# (winform) application Pin
RamiAtia17-Dec-08 1:46
RamiAtia17-Dec-08 1:46 
AnswerRe: How to pass parameter with quate to crystal reports from a C# (winform) application Pin
SPanicker*17-Dec-08 1:50
SPanicker*17-Dec-08 1:50 
GeneralRe: How to pass parameter with quate to crystal reports from a C# (winform) application Pin
RamiAtia17-Dec-08 1:57
RamiAtia17-Dec-08 1:57 
GeneralRe: How to pass parameter with quate to crystal reports from a C# (winform) application Pin
SPanicker*17-Dec-08 2:19
SPanicker*17-Dec-08 2:19 
GeneralRe: How to pass parameter with quate to crystal reports from a C# (winform) application Pin
RamiAtia17-Dec-08 2:36
RamiAtia17-Dec-08 2:36 
GeneralRe: How to pass parameter with quate to crystal reports from a C# (winform) application Pin
RamiAtia17-Dec-08 3:00
RamiAtia17-Dec-08 3:00 
AnswerRe: How to pass parameter with quate to crystal reports from a C# (winform) application Pin
Dave Kreskowiak17-Dec-08 2:23
mveDave Kreskowiak17-Dec-08 2:23 

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.