If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

How to create SQL command object?

Started by chinmay.sahoo, 02-29-2016, 06:12:50

Previous topic - Next topic

chinmay.sahooTopic starter

SQL command object can be created similar to that of C# objects.
      New instance declaration can be used to instantiate a SqlCommand object
      SqlCommand cmd = new SqlCommand("select CategoryName from Categories", conn);



TomClarke

Hello! I would like to recommend you a good article on this topic http://www.dotnetspark.com/tutorial/13-777-how-to-creating-command-object.aspx
A code snippet in this article demonstrates  how to create a command object.


If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...