0

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?

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by k.d.m
1

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

Votes + Comments
simple yet useful
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.