What are this?

I read this on some forums. It goes like this

da.InsertCommand = new SqlCommand ("insert into table values('')",con);

a dataadapter calling an sql command? Could someone explain me this?

insertCommand property in SqlDataAdapter Class accept T-Sql Statement.Using the instance of SqlCommand we can provide T-Sql Statement to insertCommand property.
SqlCommand Class is used to specify what type of interaction we want to perform with database

commented: simple yet useful +1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.