C#
I want to search a record in Sql server management database in windows application step by step process
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
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
Ramesh MaruthiRank #937 · 2.2K reputationPosted Aug 22, 2014, 9:11 AM EDT
Do you want to search a record in a database or in a table ?
and how do you wanna search depends upon what condition ?
for example :
I want to search the student record according to the studentid on a student table so what I do is
Public student Studentsearchwithid(int id
{
student res = db.students.where(k =>k.studentid == id).FirstOrDefault();
return res;
}