Click here to Skip to main content
15,886,736 members
Home / Discussions / Database
   

Database

 
AnswerRe: Which database is best for my application. Pin
Reza Raad12-Jan-09 18:51
Reza Raad12-Jan-09 18:51 
GeneralRe: Which database is best for my application. Pin
Nanda_MR12-Jan-09 20:15
Nanda_MR12-Jan-09 20:15 
AnswerRe: Which database is best for my application. Pin
Wendelius12-Jan-09 22:22
mentorWendelius12-Jan-09 22:22 
QuestionExecuting Multiple Oracle Procedures Parallel( not in sequence) in dotnet [modified] Pin
shaik abdul gani12-Jan-09 17:26
shaik abdul gani12-Jan-09 17:26 
AnswerRe: Executing Multiple Oracle Procedures Parallel( not in sequence) in dotnet Pin
Wendelius12-Jan-09 21:47
mentorWendelius12-Jan-09 21:47 
GeneralRe: Executing Multiple Oracle Procedures Parallel( not in sequence) in dotnet Pin
shaik abdul gani13-Jan-09 6:11
shaik abdul gani13-Jan-09 6:11 
GeneralRe: Executing Multiple Oracle Procedures Parallel( not in sequence) in dotnet Pin
Wendelius13-Jan-09 6:15
mentorWendelius13-Jan-09 6:15 
GeneralRe: Executing Multiple Oracle Procedures Parallel( not in sequence) in dotnet [modified] Pin
shaik abdul gani15-Jan-09 20:46
shaik abdul gani15-Jan-09 20:46 
HI Mika

i tried to run the procedure using the backgroundworking class. but for time being instead of oracle procedure for testing i have just used simple select statments.

i am just pasting here the code


System.ComponentModel.BackgroundWorker worker = new System.ComponentModel.BackgroundWorker();
private static string ConnectString = "connectionstring";// this is not the actual connection
DataSet ds = new DataSet();
DataSet ds2 = new DataSet();
DataSet ds3 = new DataSet();
private void button1_Click(object sender, EventArgs e)
{
worker.DoWork += new System.ComponentModel.DoWorkEventHandler(SomeLongRunningTask);

worker.RunWorkerAsync();
OracleConnection con = new OracleConnection(ConnectString);

OracleCommand command = new OracleCommand(" select * from CIHOLDDETAILS", con);
OracleDataAdapter da = new OracleDataAdapter(command);
da.Fill(ds);



}
// private delegate void DoWorkDelegate();

private void SomeLongRunningTask(object sender, System.ComponentModel.DoWorkEventArgs e)
{
//using (OracleConnection cn = new OracleConnection(ConnectString))
//{

OracleConnection cn = new OracleConnection(ConnectString);
OracleCommand cmd = new OracleCommand(" select * from CIINSPECTIONREPORTS", cn);
OracleDataAdapter orda = new OracleDataAdapter(cmd);
orda.Fill(ds2);

// DoWorkDelegate worker2 = new DoWorkDelegate(loaddata);

//}

}

private void worker_RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerCompletedEventHandler e)
{

loaddata();
}

private void loaddata()
{
DataTable dt = new DataTable();
DataTable dt2 = new DataTable();


dt = ds.Tables[0].Copy();
dt2 = ds2.Tables[0].Copy();
ds3.Tables.Add(dt);
ds3.Tables.Add(dt2);
dataGridView1.DataSource = ds3;
}

here RunWorkerCompleted is not firing i have done this code using this link


http://www.knowdotnet.com/articles/backgroundworker.html


please help me whats the problem here.

thanx in advance

modified on Friday, January 16, 2009 4:29 AM

GeneralRe: Executing Multiple Oracle Procedures Parallel( not in sequence) in dotnet Pin
Wendelius16-Jan-09 9:16
mentorWendelius16-Jan-09 9:16 
GeneralRe: Executing Multiple Oracle Procedures Parallel( not in sequence) in dotnet Pin
shaik abdul gani18-Jan-09 21:59
shaik abdul gani18-Jan-09 21:59 
QuestionDatabase Documentation Pin
mgoad9912-Jan-09 6:58
mgoad9912-Jan-09 6:58 
AnswerRe: Database Documentation Pin
Wendelius12-Jan-09 8:04
mentorWendelius12-Jan-09 8:04 
QuestionHow do I convert an MsAccess Database into a MySQL Database and is their a free Utility to do so? Pin
BobClarkSQL12-Jan-09 5:35
BobClarkSQL12-Jan-09 5:35 
AnswerRe: How do I convert an MsAccess Database into a MySQL Database and is their a free Utility to do so? Pin
pmarfleet12-Jan-09 9:23
pmarfleet12-Jan-09 9:23 
GeneralRe: How do I convert an MsAccess Database into a MySQL Database and is their a free Utility to do so? Pin
programmervb.netc++12-Jan-09 16:28
programmervb.netc++12-Jan-09 16:28 
Questionusing comma separated list in where clause Pin
Uma Kameswari12-Jan-09 2:39
Uma Kameswari12-Jan-09 2:39 
AnswerRe: using comma separated list in where clause Pin
Wendelius12-Jan-09 3:01
mentorWendelius12-Jan-09 3:01 
AnswerRe: using comma separated list in where clause Pin
Paddy Boyd12-Jan-09 5:29
Paddy Boyd12-Jan-09 5:29 
AnswerRe: using comma separated list in where clause Pin
pmpdesign12-Jan-09 18:55
pmpdesign12-Jan-09 18:55 
GeneralRe: using comma separated list in where clause Pin
Ben Fair13-Jan-09 11:06
Ben Fair13-Jan-09 11:06 
QuestionHi how to copy a SQL server database to mySQL database Pin
Denver Thomas12-Jan-09 2:06
Denver Thomas12-Jan-09 2:06 
AnswerRe: Hi how to copy a SQL server database to mySQL database Pin
Wendelius12-Jan-09 2:51
mentorWendelius12-Jan-09 2:51 
QuestionOpen an MSAccess 2.0 database? Pin
^^BloodBeast^^12-Jan-09 1:55
^^BloodBeast^^12-Jan-09 1:55 
QuestionSSRS - Export to CSV does not work Pin
Akila R12-Jan-09 1:16
Akila R12-Jan-09 1:16 
AnswerRe: SSRS - Export to CSV does not work Pin
Ben Fair13-Jan-09 11:07
Ben Fair13-Jan-09 11:07 

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.