I am trying to execute a codeline similar to the following
rs3 = cn2.Execute(strsql);
but i guess in c# i have to pass some arguments ato exceute the strsql. Can someone enlighten me on this topic.
Thankyou
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you should have a look at the classes & interfaces that ADO.NET provides to you:
IDbConnection, ICommand, SqlConnection, SqlCommand, etc…. Have a look in the System.Data namespace.
For instance: