[C#]How to read data from Database in Realtime?
How to read data from Database in Realtime?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Feb 16, 2013, 8:45 AM EST
MASTER OOP7 reputationPosted Feb 16, 2013, 3:48 PM EST
Gopal Mahadak136 reputationPosted Feb 16, 2013, 6:45 PM EST
oledbconnection con=new oledbconnection(" conectionString")
oledbcommand cmd=new oledbcommand("Sql query",con);
oledbdatareader dr=cmd.executereader();
while(dr.read()==true)
{
text1.text=dr["sqlqueryField"].tostring();
}
MASTER OOP7 reputationPosted Feb 16, 2013, 8:11 PM EST
Gopal Mahadak136 reputationPosted Feb 16, 2013, 8:33 PM EST
Please Explain what u r trying...
MASTER OOP7 reputationPosted Feb 16, 2013, 8:49 PM EST
Gopal Mahadak136 reputationPosted Feb 16, 2013, 9:16 PM EST
if u want to do some actions then in while loop u can do u r actions...
Yes C# can automatic update values...