5
Reply

How to creating a SqlCommand Object?

Rahul  Pandey

Rahul Pandey

Jul 01, 2013
1.4k
0

    syntax to create SqlCommand object SqlCommand = new SqlCommand("Command to execute i.e. (select,insert,update,delete))", connection objectname);ex: if u want to retrieve data from sql server we use select command i.e SqlComand cmd = new SqlCommnd("Select * from Table_Employee",conn);conn--> SqlConnection Object cmd--> SqlCommand Object

    Srinivas Pabballa
    August 28, 2015
    0

    Sqlcommand com=new Sqlcommand(query,connection object);

    Rahul Prajapat
    May 26, 2015
    0

    Using(Sqlcommand cmd = new Sqlcommand(Select * from TableName,Sqlconnection)) {//Your code here }

    Pramod Lawate
    August 27, 2013
    0

    sqlcommand cmd=new sqlcommand("select * from emp",con);con- connection object.

    Srikanth Reddy
    July 09, 2013
    0

    SqlConnection con = new SqlConnection("Data Source=ABC;Initial Catalog=studentdetail;uid=sa; pwd=Password1");SqlCommand cmd = new SqlCommand("Select * from Tablename",connection); con.open();

    Priti Kumari
    July 02, 2013
    0