Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

C Sharp C# ASP.net tutorial 2 (Inserting Data into a SQL database

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
21,473
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 6, 2010

C Sharp C# ASP.net tutorial 2 (Inserting Data into a SQL database

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (vadlak12)

  • The way you have it you end up squandering some resources. On a desktop system it matters less(it still matters but not as much as web system. I would rearrange a little Do the declarations but don't call the connection.open as early as you did wrap the connection.open with a try catch, finally group try { //Declarations here connection.open(): command.ExecuteNonQuery : Catch exception { \*Do something with the exception like notify the user*/ } Finally {Connection.Close();}
  • @sweatyhot Thank you For you suggestion i havent had much time lately to do the video preps i usually do. I will keep that into consideration

see all

All Comments (10)

Sign In or Sign Up now to post a comment!
  • Thank's a lot that what i miss it ^_^

  • I have 2 tables in 1 database, what do I do to specify the table?

  • Firstly, Thank you so much Vadlak12. It´s very good video. Congratulations! Very interesting! thanks and Regards - Rodrigo Santos - Brazil.

  • thank you

  • @vadlak12 well as I said before I appreciate you doing what you do. You are definately helping me to learn C# and I really appreciate it. Just thought for someone else who is a beginner no point in learning bad habits. Also noticed you sometimes when quoting code don't point out that the = sign in C# is an assignment operand and doesn't mean equal but you say equal. Thats different from VB where = does mean equal.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more