How to send message
how to send sms in database data using c# windows application
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
Francis SusaimichaelRank #466 · 5.4K reputationPosted Apr 5, 2016, 10:15 PM EDT
I guess, you want to get the data from the DB and sent the data as SMS. I'm not sure what type of data you are retrieve from DB. I hope it may be any password/code or some thing like that. Also, the data size will be from 1 to 120 char length.
You can get the data from the DB, you could do some thing like below:
{
DataTable dt = new DataTable();
string strConString = "Data Source=(local);Initial Catalog=MyDB;Integrated Security=True";
using (SqlConnection con = new SqlConnection(strConString))
{
con.Open();
SqlCommand cmd = new SqlCommand("Select * from tblStudents", con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
da.Fill(dt);
con.Close();
}
return dt;
}
Rajeesh MenothRank #118 · 18.4K reputationPosted Apr 5, 2016, 10:25 PM EDT
GokulRank #3,416 · 423 reputationPosted Apr 7, 2016, 3:30 AM EDT
Francis SusaimichaelRank #466 · 5.4K reputationPosted Apr 7, 2016, 10:28 PM EDT
any na,esspace for message send
What you meant exactly? Add some more clarity on your question.