How to create SQL command object?

Author Topic: How to create SQL command object?  (Read 585 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 153
  • Karma: 0
    • No Addiction
How to create SQL command object?
« on: 02-29-2016, 04:12:50 »
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);



Offline TomClarke

  • Trade Count: (0)
  • Hero Member
  • *****
  • Thank You 17
  • Posts: 897
  • Karma: 0
  • Gender: Male
    • Custom Writing Service & Content Marketplace
Re: How to create SQL command object?
« Reply #1 on: 04-20-2016, 03:31:08 »
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.
Your ideas, our writings - Writology.com

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1129 Views
Last post 08-19-2011, 01:56:39
by Walalayo
1 Replies
1134 Views
Last post 03-15-2012, 09:03:52
by Elev8
4 Replies
2755 Views
Last post 07-16-2012, 07:07:34
by sunilkumar
6 Replies
3415 Views
Last post 11-28-2015, 05:44:38
by Dewlance
0 Replies
992 Views
Last post 07-25-2013, 10:25:11
by Patrecia