The Artima Developer Community
Sponsored Link

.NET Buzz Forum
SqlCommandBuilder

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Serdar Kilic

Posts: 23
Nickname: serdar
Registered: Aug, 2003

Serdar Kilic is a .NET developer in Sydney
SqlCommandBuilder Posted: Oct 7, 2003 7:02 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Serdar Kilic.
Original Post: SqlCommandBuilder
Feed Title: kilic.net
Feed URL: http://www.kilic.net/weblog/index_full.rdf
Feed Description: Occassional entries in .NET, Cycling, and whatever I'm in the mood for.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Serdar Kilic
Latest Posts From kilic.net

Advertisement

Just gotta say that the SqlCommandBuilder class absolutely rocks! For simple CRUD operations you should do yourself a favour and take a look at this. Usage is as simple as:

    SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM Pubs", connectionString);

    SqlCommandBuilder bld = new SqlCommandBuilder(da);

    da.UpdateCommand = bld.GetUpdateCommand();
    da.InsertCommand = bld.GetInsertCommand();
    da.DeleteCommand = bld.GetDeleteCommand();

make your changes to your DataSet and then call the Update method on your DataAdapter to get the changes back to SQL and voila!

Read: SqlCommandBuilder

Topic: Interesting Windows Facts Previous Topic   Next Topic Topic: PDC Sessions

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use