<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2288020487110342873</id><updated>2012-01-07T18:49:49.704+07:00</updated><category term='linux'/><category term='xml'/><category term='windows xp'/><category term='transaction'/><category term='connection string'/><category term='sql'/><category term='software'/><category term='visual studio 2005'/><category term='programming'/><category term='virtualisasi'/><category term='format'/><category term='store procedure'/><category term='vb.net'/><category term='database'/><category term='datagridview'/><title type='text'>Just another Visual Basic weblog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://duniavb.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://duniavb.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Dewi Marlina</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2288020487110342873.post-6976827872183185179</id><published>2010-09-12T14:39:00.000+07:00</published><updated>2010-09-12T14:39:11.471+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb.net'/><category scheme='http://www.blogger.com/atom/ns#' term='visual studio 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='xml'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>Database, Reading an XML File into In-Memory Data Tables</title><summary type='text'>ProblemYou previously exported a DataSet to an XML file, and  now you need to get it back. 
SolutionUse the DataSet object's ReadXML() method to  restore data from a previously generated XML export. 
DiscussionRecipe 13.9  exports some XML and a related schema for a table with state-specific  information. To read it back into a DataSet object, use the following  code:Dim stateSet As New </summary><link rel='replies' type='application/atom+xml' href='http://duniavb.blogspot.com/feeds/6976827872183185179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2288020487110342873&amp;postID=6976827872183185179' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/6976827872183185179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/6976827872183185179'/><link rel='alternate' type='text/html' href='http://duniavb.blogspot.com/2010/09/database-reading-xml-file-into-in.html' title='Database, Reading an XML File into In-Memory Data Tables'/><author><name>Dewi Marlina</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2288020487110342873.post-8556206040477698267</id><published>2010-09-12T14:32:00.000+07:00</published><updated>2010-09-12T14:32:41.406+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='vb.net'/><category scheme='http://www.blogger.com/atom/ns#' term='visual studio 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='store procedure'/><category scheme='http://www.blogger.com/atom/ns#' term='xml'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>Database, Writing In-Memory Data Tables to an XML File</title><summary type='text'>ProblemYou have some data in a DataSet object, and you would  like to export it to an XML file for later reimportation. 
SolutionUse the DataSet's WriteXML() method to send the DataSet  content to the file in a common XML format. 
DiscussionRecipe 13.8  builds a DataTable object with two state-specific records. The  following code adds that table to a DataSet object and writes its  records to an </summary><link rel='replies' type='application/atom+xml' href='http://duniavb.blogspot.com/feeds/8556206040477698267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2288020487110342873&amp;postID=8556206040477698267' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/8556206040477698267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/8556206040477698267'/><link rel='alternate' type='text/html' href='http://duniavb.blogspot.com/2010/09/database-writing-in-memory-data-tables.html' title='Database, Writing In-Memory Data Tables to an XML File'/><author><name>Dewi Marlina</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2288020487110342873.post-6513609790510997599</id><published>2010-09-12T14:25:00.001+07:00</published><updated>2010-09-12T14:31:28.283+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='vb.net'/><category scheme='http://www.blogger.com/atom/ns#' term='visual studio 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>Database, Creating In-Memory Data Tables Manually</title><summary type='text'>ProblemYou want to manage some data in a database-table-like fashion,  but the source data is not coming from a database, or from anything that looks  like a table. 
SolutionBuild a DataTable manually, and fill in all the table  details and data yourself. 
DiscussionThe following code builds a simple table of state information  and adds two records:Dim stateTable As DataTable = New DataTable("</summary><link rel='replies' type='application/atom+xml' href='http://duniavb.blogspot.com/feeds/6513609790510997599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2288020487110342873&amp;postID=6513609790510997599' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/6513609790510997599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/6513609790510997599'/><link rel='alternate' type='text/html' href='http://duniavb.blogspot.com/2010/09/database-creating-in-memory-data-tables.html' title='Database, Creating In-Memory Data Tables Manually'/><author><name>Dewi Marlina</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2288020487110342873.post-3931362859803464714</id><published>2010-09-12T14:09:00.000+07:00</published><updated>2010-09-12T14:09:42.142+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='vb.net'/><category scheme='http://www.blogger.com/atom/ns#' term='visual studio 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>Database, Storing the Results of a Query in Memory</title><summary type='text'>ProblemWhile a data reader is fast and convenient, you would like to  keep the retrieved data around for a while, even when you are disconnected from  the database or other data source. 
SolutionUse the data reader to bring the results into a data set. The  DataSet object represents one or more  in-memory database tables, each with its records stored in a separate DataTable object. 
DiscussionThe</summary><link rel='replies' type='application/atom+xml' href='http://duniavb.blogspot.com/feeds/3931362859803464714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2288020487110342873&amp;postID=3931362859803464714' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/3931362859803464714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/3931362859803464714'/><link rel='alternate' type='text/html' href='http://duniavb.blogspot.com/2010/09/database-storing-results-of-query-in.html' title='Database, Storing the Results of a Query in Memory'/><author><name>Dewi Marlina</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2288020487110342873.post-8291300671632303263</id><published>2010-09-12T13:37:00.000+07:00</published><updated>2010-09-12T13:37:53.702+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb.net'/><category scheme='http://www.blogger.com/atom/ns#' term='visual studio 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='transaction'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>Database, Using Transaction</title><summary type='text'>ProblemYou need to issue multiple database updates in the context of a  single, atomic transaction. 
SolutionUse an ADO.NET transaction to envelop the various SQL  statements that need to be processed as a unit. 
DiscussionThe following block of code connects to a database via ADO.NET  and makes several database updates within a single transaction:' ----- Connect to the database.
 Dim </summary><link rel='replies' type='application/atom+xml' href='http://duniavb.blogspot.com/feeds/8291300671632303263/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2288020487110342873&amp;postID=8291300671632303263' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/8291300671632303263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/8291300671632303263'/><link rel='alternate' type='text/html' href='http://duniavb.blogspot.com/2010/09/database-using-transaction.html' title='Database, Using Transaction'/><author><name>Dewi Marlina</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2288020487110342873.post-3130076832767596923</id><published>2010-09-12T13:25:00.001+07:00</published><updated>2010-09-12T13:28:50.694+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='visual studio 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='store procedure'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>Database, Using Stored Procedures</title><summary type='text'> 
ProblemYou need to use a stored procedure in your database, and you're  not sure how to specify values for its input and output parameters. 
SolutionUse the command object's Parameters collection to set  and retrieve stored procedure argument values. 
DiscussionHere's a simple SQL Server stored procedure that does nothing  more than retrieve a field from a table given its ID value:CREATE </summary><link rel='replies' type='application/atom+xml' href='http://duniavb.blogspot.com/feeds/3130076832767596923/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2288020487110342873&amp;postID=3130076832767596923' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/3130076832767596923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/3130076832767596923'/><link rel='alternate' type='text/html' href='http://duniavb.blogspot.com/2010/09/database-using-stored-procedures.html' title='Database, Using Stored Procedures'/><author><name>Dewi Marlina</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2288020487110342873.post-2436203658523418396</id><published>2010-09-06T15:21:00.004+07:00</published><updated>2010-09-06T15:37:13.214+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='datagridview'/><category scheme='http://www.blogger.com/atom/ns#' term='format'/><category scheme='http://www.blogger.com/atom/ns#' term='vb.net'/><category scheme='http://www.blogger.com/atom/ns#' term='visual studio 2005'/><title type='text'>Format the DataGridView</title><summary type='text'>Formatting  the .NET 1.x DataGrid ranges from awkward to nearly impossible.  However, thanks to its multi-layered model, formatting the DataGridView  is far easier. This model builds on a single class, the  DataGridViewCellStyle, which encapsulates key formatting properties.  You can assign different DataGridViewCellStyle objects to separate  rows, columns, or even distinct cells. 
Note: By using</summary><link rel='replies' type='application/atom+xml' href='http://duniavb.blogspot.com/feeds/2436203658523418396/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2288020487110342873&amp;postID=2436203658523418396' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/2436203658523418396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/2436203658523418396'/><link rel='alternate' type='text/html' href='http://duniavb.blogspot.com/2010/09/format-datagridview.html' title='Format the DataGridView'/><author><name>Dewi Marlina</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_d-kZ2dILwj0/TISlp4tCcCI/AAAAAAAAAA8/D6bwrWRhrcE/s72-c/datagridview.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2288020487110342873.post-5201821554732494671</id><published>2008-09-11T14:06:00.004+07:00</published><updated>2010-09-07T09:39:19.973+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb.net'/><category scheme='http://www.blogger.com/atom/ns#' term='visual studio 2005'/><title type='text'>Issuing SQL Commands</title><summary type='text'>Problem

Now that you've established a connection to a database through a provider, you're ready to issue SQL commands. But how?

Solution
Use a Command object to issue SQL commands directly to your database through the provider connection.

Discussion
The following code updates a SQL Server table named Table1, changing every Column2 field to 25 whenever Column1 has a value of 0:
' ----- Connect </summary><link rel='replies' type='application/atom+xml' href='http://duniavb.blogspot.com/feeds/5201821554732494671/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2288020487110342873&amp;postID=5201821554732494671' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/5201821554732494671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/5201821554732494671'/><link rel='alternate' type='text/html' href='http://duniavb.blogspot.com/2008/09/issuing-sql-commands.html' title='Issuing SQL Commands'/><author><name>Dewi Marlina</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2288020487110342873.post-6270242094619093496</id><published>2008-09-11T13:57:00.006+07:00</published><updated>2010-09-07T09:41:50.259+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='connection string'/><category scheme='http://www.blogger.com/atom/ns#' term='vb.net'/><category scheme='http://www.blogger.com/atom/ns#' term='visual studio 2005'/><title type='text'>Connecting to a Data Provider</title><summary type='text'>Problem
You are writing an application that interacts with a database, and you need to connect to it to run some queries.

Solution
Use a Connection object and a "connection string" to establish the connection you will use for queries and updates.

Discussion
The following set of statements establishes a connection to a SQL Server Express database named MyDatabase running on the system named </summary><link rel='replies' type='application/atom+xml' href='http://duniavb.blogspot.com/feeds/6270242094619093496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2288020487110342873&amp;postID=6270242094619093496' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/6270242094619093496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/6270242094619093496'/><link rel='alternate' type='text/html' href='http://duniavb.blogspot.com/2008/09/connecting-to-data-provider.html' title='Connecting to a Data Provider'/><author><name>Dewi Marlina</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2288020487110342873.post-3474024729015453374</id><published>2008-09-04T13:05:00.004+07:00</published><updated>2010-09-06T14:55:27.366+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='windows xp'/><category scheme='http://www.blogger.com/atom/ns#' term='virtualisasi'/><category scheme='http://www.blogger.com/atom/ns#' term='software'/><title type='text'>andLinux, run Linux applications in Windows</title><summary type='text'>For those who like to run Linux applications but still use a PC that had Windows OS, now do not need to go back and forth reboot to run a dual boot or run a virtualization program such a Virtual PC or Virtual Box. With andLinux now we can run linux applications in windows as if the applications are Windows applications.andLinux uses the Ubuntu Linux distribution that runs in a seamless </summary><link rel='replies' type='application/atom+xml' href='http://duniavb.blogspot.com/feeds/3474024729015453374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2288020487110342873&amp;postID=3474024729015453374' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/3474024729015453374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2288020487110342873/posts/default/3474024729015453374'/><link rel='alternate' type='text/html' href='http://duniavb.blogspot.com/2008/09/andlinux-menjalankan-aplikasi-linux-di.html' title='andLinux, run Linux applications in Windows'/><author><name>Dewi Marlina</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
