C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Interview   Jobs   Projects   Offshore Development    
Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Revenue Sharing | Talk to Us |



My Profile

Gifts

Active Members
TodayLast 7 Days more...







Paradox table in C#.nET


Posted Date: 09 May 2008      Total Responses: 3

Posted By: Praveen       Member Level: Bronze     Points: 1


Guys,

I need to convert a dataset into Paradox DB.
How can i ?





Responses

Author: Giribabu    10 May 2008Member Level: GoldRating:     Points: 2
dsPersonel = new DataSet();
dsPersonel = GetDataSetFromAdapter(dsPersonel, "Dsn=IKAY","SELECT * FROM PERSONEL") ;
dataGridView1.DataSource = dsPersonel.Tables[0];
}

public DataSet GetDataSetFromAdapter(DataSet dataSet, string connectionString, string queryString)
{
using (OdbcConnection connection = new OdbcConnection(connectionString))
{
OdbcDataAdapter adapter = new OdbcDataAdapter(queryString, connection);


// Open the connection and fill the DataSet.
try
{
connection.Open();
adapter.Fill(dataSet);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
// The connection is automatically closed when the
// code exits the using block.
}
return dataSet;
}
}


Author: Giribabu    10 May 2008Member Level: GoldRating:     Points: 2
fetching record from paradox db
-----------------------------------
dsPersonel = new DataSet();
dsPersonel = GetDataSetFromAdapter(dsPersonel, "Dsn=IKAY","SELECT * FROM PERSONEL") ;
dataGridView1.DataSource = dsPersonel.Tables[0];
}

public DataSet GetDataSetFromAdapter(DataSet dataSet, string connectionString, string queryString)
{
using (OdbcConnection connection = new OdbcConnection(connectionString))
{
OdbcDataAdapter adapter = new OdbcDataAdapter(queryString, connection);


// Open the connection and fill the DataSet.
try
{
connection.Open();
adapter.Fill(dataSet);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
// The connection is automatically closed when the
// code exits the using block.
}
return dataSet;
}
}


Author: karthekeyan    11 May 2008Member Level: DiamondRating:     Points: 2
support.codegear.com/article/35523 -


Post Reply
You must Sign In to post a response.
Next : listbox in VB.NET
Previous : Please help
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



Read TATA Nano reviews.
dotNet Slackers   BizTalk Adaptors    Web Design   Scripts
Are you waiting for engineering entrance result? Watch here for engineering entrance results.
it outsourcing

Contact Us    Privacy Policy    Terms Of Use