<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-3598351875444713762</atom:id><lastBuildDate>Fri, 25 Oct 2024 04:00:09 +0000</lastBuildDate><category>SQL statement</category><category>adodc connectionstring</category><category>vb</category><category>agenda</category><category>billing internet</category><category>billing rental</category><category>blinking</category><category>caption jalan</category><category>clear recent file</category><category>color</category><category>daily agenda</category><category>data environmnet</category><category>data report</category><category>datediff vb</category><category>history</category><category>ini file</category><category>left</category><category>login vb</category><category>login with database</category><category>movie</category><category>movie player</category><category>player</category><category>qbcolor</category><category>random</category><category>remainder</category><category>report</category><category>right</category><category>screen</category><category>show hidden file or folder</category><category>splash</category><category>splash screen</category><category>sql syntax</category><category>stop watch vb</category><category>timer</category><category>vb code</category><category>vb movie</category><category>visible</category><category>web browser</category><title>free vb application and tutorials</title><description>free vb project, free vb source code, free vb tutorials</description><link>http://adivb.blogspot.com/</link><managingEditor>noreply@blogger.com (adi_vb)</managingEditor><generator>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3598351875444713762.post-3843981199815716644</guid><pubDate>Sat, 03 Oct 2009 07:51:00 +0000</pubDate><atom:updated>2009-10-03T00:58:28.695-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">clear recent file</category><category domain="http://www.blogger.com/atom/ns#">history</category><title>Clear Recent File(s)</title><description>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmZbayG1SnfuLyJecnCw02QsY4ksE0b8dqO8scqmeQPmm5gdz0mMjvY_MySLnCiuRMAqm1szWSxIsv4I3pkR0Uc3EgYbiDjO6ogoyzNJgf_4U7wbJJCosNUhKVuVDJBxSPK2K7cf-EEFGO/s1600-h/clear_history.JPG&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmZbayG1SnfuLyJecnCw02QsY4ksE0b8dqO8scqmeQPmm5gdz0mMjvY_MySLnCiuRMAqm1szWSxIsv4I3pkR0Uc3EgYbiDjO6ogoyzNJgf_4U7wbJJCosNUhKVuVDJBxSPK2K7cf-EEFGO/s320/clear_history.JPG&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5388279213792838418&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Oke, dengan vb kita bisa membersihkan daftar file-file yang kita buka. Karena windows secara default menyimpan daftar file tsb. kalo kita klik start&gt;Documents, maka akan tampil semua file yang udah kita buka.&lt;br /&gt;&lt;br /&gt;kalo mau delete...ngapain cape-cape, nih kode vb-nya...&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#ff6666;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;span style=&quot;color:#ff6666;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span&gt;Private Declare Sub SHAddToRecentDocs Lib &quot;shell32.dll&quot; _&lt;br /&gt;(ByVal uFlags As Long, ByVal PV As String)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#ff6666;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;span style=&quot;color:#ff6666;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span&gt;Private Sub Command1_Click()&lt;br /&gt;     ClearDocumentsMenu&lt;br /&gt;     MsgBox &quot;Sudah ter-hapus&quot;&lt;br /&gt;     End&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Public Function ClearDocumentsMenu() As Boolean&lt;br /&gt;      &#39;Returns true if successful, false otherwise&lt;br /&gt;      SHAddToRecentDocs 2, vbNullString&lt;br /&gt;      ClearDocumentsMenu = Err.LastDllError = 0&lt;br /&gt;End Function&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#ff6666;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;span style=&quot;color:#ff6666;&quot;&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;Selamat mencoba!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#ff6666;&quot;&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#ff6666;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#ff6666;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</description><link>http://adivb.blogspot.com/2009/10/clear-recent-files.html</link><author>noreply@blogger.com (adi_vb)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmZbayG1SnfuLyJecnCw02QsY4ksE0b8dqO8scqmeQPmm5gdz0mMjvY_MySLnCiuRMAqm1szWSxIsv4I3pkR0Uc3EgYbiDjO6ogoyzNJgf_4U7wbJJCosNUhKVuVDJBxSPK2K7cf-EEFGO/s72-c/clear_history.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3598351875444713762.post-2017630271168949801</guid><pubDate>Sat, 01 Aug 2009 06:00:00 +0000</pubDate><atom:updated>2009-07-31T23:09:23.491-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">data environmnet</category><category domain="http://www.blogger.com/atom/ns#">data report</category><category domain="http://www.blogger.com/atom/ns#">report</category><category domain="http://www.blogger.com/atom/ns#">vb</category><title>Report tanpa Data Environment</title><description>Ya, kita tetap bisa membuat report dengan data report tetapi &lt;span style=&quot;font-weight:bold;&quot;&gt;tanpa&lt;span style=&quot;font-style:italic;&quot;&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;font-weight:bold;&quot;&gt;data environmnet&lt;/span&gt;.&lt;br /&gt;hal ini sangat dimungkinkan sekali, karena vb menyediakan objek data control untuk menghubungkan data report dengan database; yaitu &lt;span style=&quot;font-weight:bold;&quot;&gt;adodc&lt;/span&gt; salah satunya.&lt;br /&gt;&lt;br /&gt;oke, caranya gmn?&lt;br /&gt;1. buat/desain report dengan data report&lt;br /&gt;2. buat koneksi adodc-nya&lt;br /&gt;3. hubungkan data report dengan adodc, yaitu..&lt;br /&gt;   - isi properties text pada data report dengan nama_field pada database&lt;br /&gt;4. buat kodenya: letakkan di command atau objek lainnya.&lt;br /&gt;   set datareport1.datasource=adodc1&lt;br /&gt;   datareport1.show&lt;br /&gt;5. oke deh selesai!&lt;br /&gt;&lt;br /&gt;selamat mencoba!</description><link>http://adivb.blogspot.com/2009/07/report-tanpa-data-environment.html</link><author>noreply@blogger.com (adi_vb)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3598351875444713762.post-5097752975514982991</guid><pubDate>Mon, 12 Jan 2009 04:18:00 +0000</pubDate><atom:updated>2009-01-11T20:24:09.146-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">SQL statement</category><category domain="http://www.blogger.com/atom/ns#">sql syntax</category><title>SQL Statement #2</title><description>Oke, lets try another SQL Statement.&lt;br /&gt;i was publis little SQL Statement before...&lt;br /&gt;click &lt;a href=&quot;http://adivb.blogspot.com/2007/11/syntax-sql-for-querying-database.html&quot;&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;here&lt;/span&gt;&lt;/a&gt; if you want to see..&lt;br /&gt;&lt;br /&gt;In this tutorial, we will include SQL statement to VB Program.&lt;br /&gt;Actually, we can use any database manipulation by regular &lt;br /&gt;&lt;br /&gt;expression or arithmatic expression, but with this way, it tooks&lt;br /&gt;many code and not efficienct.&lt;br /&gt;&lt;br /&gt;So, SQL statement simplify our way.&lt;br /&gt;&lt;br /&gt;Suppose we have this table:&lt;br /&gt;table name: &lt;span style=&quot;font-weight:bold;&quot;&gt;member&lt;/span&gt;&lt;br /&gt;-----------------------------&lt;br /&gt;code name    city     age&lt;br /&gt;-----------------------------&lt;br /&gt;001  john    depok    17&lt;br /&gt;002  erica   bogor    20&lt;br /&gt;003  sony    jakarta  18&lt;br /&gt;004  wawan   depok    16&lt;br /&gt;005  jojo    depok    25&lt;br /&gt;-----------------------------&lt;br /&gt;&lt;br /&gt;oke, case study:&lt;br /&gt;1. if we to add data...&lt;br /&gt;   sql=&quot;insert into member values(&#39;006&#39;,&#39;dewi&#39;,&#39;bogor&#39;,&#39;18&#39;)&quot;&lt;br /&gt;   means: add record, code=06, name=dewi, city=bogor, age=18&lt;br /&gt;&lt;br /&gt;2. if we want to update data...&lt;br /&gt;   sql=&quot;update member set name=&#39;eric&#39; where code=&#39;002&#39;&quot;&lt;br /&gt;   means: change erica name into eric&lt;br /&gt;&lt;br /&gt;3. if we want to delete data...&lt;br /&gt;   sql=&quot;delete from member where code=&#39;005&#39;&quot;&lt;br /&gt;   means: delete the recorde that its code=005&lt;br /&gt;&lt;br /&gt;oke, i assume we use &lt;span style=&quot;font-weight:bold;&quot;&gt;adodc1&lt;/span&gt; to connect the database, so how to&lt;br /&gt;embeded SQL statement?&lt;br /&gt;here is the code:&lt;br /&gt;&lt;br /&gt; &lt;span style=&quot;font-weight:bold;&quot;&gt;sql=&quot;...&quot;&lt;/span&gt;  [look at each case study above]&lt;br /&gt; &lt;span style=&quot;font-weight:bold;&quot;&gt;adodc1.recordsource=sql&lt;br /&gt; adodc1.refresh&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;oke, that SQL statement @ glance we&#39;ll continue later...</description><link>http://adivb.blogspot.com/2009/01/sql-statement-2.html</link><author>noreply@blogger.com (adi_vb)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3598351875444713762.post-5198877427766628531</guid><pubDate>Fri, 14 Nov 2008 06:59:00 +0000</pubDate><atom:updated>2008-11-13T23:08:08.386-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">movie</category><category domain="http://www.blogger.com/atom/ns#">movie player</category><category domain="http://www.blogger.com/atom/ns#">player</category><category domain="http://www.blogger.com/atom/ns#">vb movie</category><title>Movie Player by vb</title><description>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzWSgu6bLSJokrQ9p73ieVxxQPYsoooN4tG0Si68SkjpQRm_lqO8XZMMblCxdZuH-3c08s6c1FX9iVMnLkrBcNqUMO9yTrOS1wBphBonBdq0I4vNDXHIgqC5exby53W2TLMypSM4rEZDPH/s1600-h/movie.JPG&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 274px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzWSgu6bLSJokrQ9p73ieVxxQPYsoooN4tG0Si68SkjpQRm_lqO8XZMMblCxdZuH-3c08s6c1FX9iVMnLkrBcNqUMO9yTrOS1wBphBonBdq0I4vNDXHIgqC5exby53W2TLMypSM4rEZDPH/s320/movie.JPG&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5268405261729579394&quot; /&gt;&lt;/a&gt;&lt;br /&gt;yes, with vb, we can create a movie player.&lt;br /&gt;here, i create a movie player. we can change movie number.&lt;br /&gt;it will play from the first movie and then go to next movie until the end.&lt;br /&gt;click &lt;a href=&quot;http://www.esnips.com/doc/f01bafab-a9bc-4d40-b75f-9bb81af333c6/movie_player&quot;&gt;here&lt;/a&gt; to download full code and application.&lt;br /&gt;have a nice day!</description><link>http://adivb.blogspot.com/2008/11/movie-player-by-vb.html</link><author>noreply@blogger.com (adi_vb)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzWSgu6bLSJokrQ9p73ieVxxQPYsoooN4tG0Si68SkjpQRm_lqO8XZMMblCxdZuH-3c08s6c1FX9iVMnLkrBcNqUMO9yTrOS1wBphBonBdq0I4vNDXHIgqC5exby53W2TLMypSM4rEZDPH/s72-c/movie.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3598351875444713762.post-5615756966028103923</guid><pubDate>Wed, 05 Nov 2008 00:58:00 +0000</pubDate><atom:updated>2008-11-12T18:00:26.221-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">blinking</category><category domain="http://www.blogger.com/atom/ns#">timer</category><category domain="http://www.blogger.com/atom/ns#">vb</category><category domain="http://www.blogger.com/atom/ns#">visible</category><title>Make &#39;blinking&#39; label or any object with vb</title><description>&lt;p&gt;wanna make a blinking label or object?..?&lt;/p&gt;&lt;p&gt;with vb, its so easy....here is the way:&lt;/p&gt;&lt;p&gt;suppose object label1 will blinking, step:&lt;/p&gt;&lt;p&gt;1. Put label1 t the form, fill its caption with any title&lt;/p&gt;&lt;p&gt;2. Put Timer to the form, set its properties: Enabled=true, interval=100 (it means 100 millisecond)&lt;/p&gt;&lt;p&gt;3. Goto code editor by doubleclick Timer, write this code:&lt;/p&gt;&lt;p&gt;    &lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:georgia;&quot;&gt;&lt;span style=&quot;color:#cc33cc;&quot;&gt;private sub Timer1_Timer()&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:georgia;&quot;&gt;&lt;span style=&quot;color:#cc33cc;&quot;&gt;        label1.visible=not label1.visible   &#39;this will blink label1 each 100ms&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:georgia;&quot;&gt;&lt;span style=&quot;color:#cc33cc;&quot;&gt;     end sub&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;4. Finish...Run it!.... &lt;/p&gt;More timer programming in vb...try &lt;a href=&quot;http://adivb.blogspot.com/2007/11/stop-watch-by-vb.html&quot;&gt;this...&lt;/a&gt;</description><link>http://adivb.blogspot.com/2008/11/membuat-tulisan-berkedip.html</link><author>noreply@blogger.com (adi_vb)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3598351875444713762.post-5058967362233495002</guid><pubDate>Wed, 05 Nov 2008 00:42:00 +0000</pubDate><atom:updated>2008-11-12T17:55:21.090-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">screen</category><category domain="http://www.blogger.com/atom/ns#">splash</category><category domain="http://www.blogger.com/atom/ns#">splash screen</category><category domain="http://www.blogger.com/atom/ns#">vb code</category><title>Create Own Splash Screen in VB</title><description>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7hWk8KAVeyhDIYGq7hW1YQEOhlP6-a3XDa27eW8m_hhEBEnprpXVNj8VQ7YGlZIx5RiBXoCyhifv5I1gfawCnSzoP3W_G4N02JoENFYB7JtyamFgU-wNrQR5HVPog3F0GX4NEMwD8bzrq/s1600-h/splash.JPG&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 218px; height: 145px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7hWk8KAVeyhDIYGq7hW1YQEOhlP6-a3XDa27eW8m_hhEBEnprpXVNj8VQ7YGlZIx5RiBXoCyhifv5I1gfawCnSzoP3W_G4N02JoENFYB7JtyamFgU-wNrQR5HVPog3F0GX4NEMwD8bzrq/s320/splash.JPG&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5264971251951854402&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;Splash Screen adalah tampilan awal yang biasanya muncul ketika suatu aplikasi dijalankan.&lt;/p&gt;&lt;p&gt;Splash Screen biasanya berisikan informasi umum atau hanya ucapan selamat datang.&lt;/p&gt;&lt;p&gt;Oke, bagaimana bikinnya?...gampang....&lt;/p&gt;&lt;p&gt;Klik &lt;a href=&quot;http://www.esnips.com/doc/c911e27e-04b1-40f8-9266-b372cd27fdb6/splash_screen&quot;&gt;disini&lt;/a&gt; untuk download. Source code lengkap!&lt;/p&gt;&lt;p&gt;Selamat berkarya....&lt;/p&gt;</description><link>http://adivb.blogspot.com/2008/11/membuat-splash-screen.html</link><author>noreply@blogger.com (adi_vb)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7hWk8KAVeyhDIYGq7hW1YQEOhlP6-a3XDa27eW8m_hhEBEnprpXVNj8VQ7YGlZIx5RiBXoCyhifv5I1gfawCnSzoP3W_G4N02JoENFYB7JtyamFgU-wNrQR5HVPog3F0GX4NEMwD8bzrq/s72-c/splash.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3598351875444713762.post-3302572326663196143</guid><pubDate>Fri, 28 Mar 2008 10:43:00 +0000</pubDate><atom:updated>2008-12-09T01:51:00.166-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">caption jalan</category><category domain="http://www.blogger.com/atom/ns#">color</category><category domain="http://www.blogger.com/atom/ns#">left</category><category domain="http://www.blogger.com/atom/ns#">qbcolor</category><category domain="http://www.blogger.com/atom/ns#">random</category><category domain="http://www.blogger.com/atom/ns#">right</category><title>Caption Form berjalan + Background gonta-ganti</title><description>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjf0HhhGEXOwyizMJYHHxJzg9zFUWRD4jWGmhDwjnsKTT_fzvCuN1YKdLASgDr7jQOxhfluIJ_nYc2wpC_-DUFtudBhS2q6yCqQK4-Z1UawUi3A6P7rDTm64G4328jratuLpWUxBAVfEgPz/s1600-h/latihan.JPG&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjf0HhhGEXOwyizMJYHHxJzg9zFUWRD4jWGmhDwjnsKTT_fzvCuN1YKdLASgDr7jQOxhfluIJ_nYc2wpC_-DUFtudBhS2q6yCqQK4-Z1UawUi3A6P7rDTm64G4328jratuLpWUxBAVfEgPz/s320/latihan.JPG&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5182743962256114482&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;Ini adalah contoh program sederhana membuat caption pada form&lt;br /&gt;berpindah huruf pertama ke belakang dan seterusnya.&lt;br /&gt;Juga cara sederhana mengganti warna latar belakang form.&lt;br /&gt;&lt;br /&gt;Hal ini sebenarnya sangat sederhana....&lt;br /&gt;Kita hanya menggunakan fungsi manipulasi string (&lt;span style=&quot;color:#cc33cc;&quot;&gt;left&lt;/span&gt; dan&lt;span style=&quot;color:#cc33cc;&quot;&gt; right&lt;/span&gt;)&lt;br /&gt;serta &lt;span style=&quot;color:#cc33cc;&quot;&gt;Q&lt;/span&gt;&lt;span style=&quot;color:#cc33cc;&quot;&gt;bcolor&lt;/span&gt; (u/ ganti warna)...&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;----------&lt;br /&gt;source code:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#993399;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;Private Sub Timer1_Timer()&lt;br /&gt;  Me.BackColor = QBColor(Rnd * 15)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Timer2_Timer()&lt;br /&gt;  a = Left(Me.Caption, 1)&lt;br /&gt;  b = Right(Me.Caption, Len(Me.Caption) - 1)&lt;br /&gt;  Me.Caption = b &amp;amp; a&lt;br /&gt;End Sub&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;----------&lt;br /&gt;&lt;br /&gt;Jangan lupa letakkan 2 timer di form. Set &lt;span style=&quot;color:#cc33cc;&quot;&gt;Enabled=true&lt;/span&gt; dan &lt;span style=&quot;color:#cc33cc;&quot;&gt;Interval=100&lt;/span&gt; (berarti 100 ms).&lt;br /&gt;Selamat mencoba....have a nice day!</description><link>http://adivb.blogspot.com/2008/03/caption-form-berjalan-background-gonta.html</link><author>noreply@blogger.com (adi_vb)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjf0HhhGEXOwyizMJYHHxJzg9zFUWRD4jWGmhDwjnsKTT_fzvCuN1YKdLASgDr7jQOxhfluIJ_nYc2wpC_-DUFtudBhS2q6yCqQK4-Z1UawUi3A6P7rDTm64G4328jratuLpWUxBAVfEgPz/s72-c/latihan.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3598351875444713762.post-7115844141389752544</guid><pubDate>Tue, 11 Mar 2008 04:12:00 +0000</pubDate><atom:updated>2008-03-10T21:22:23.565-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">agenda</category><category domain="http://www.blogger.com/atom/ns#">daily agenda</category><category domain="http://www.blogger.com/atom/ns#">remainder</category><title>Daily Agenda</title><description>Yes, this application i create for my self at the first aim...&lt;br /&gt;but, i think it would be usefull for other...&lt;br /&gt;so, i decide to publish it...&lt;br /&gt;i use it as a daily agenda, so it can remainds me what i must do at certain day and certain time...&lt;br /&gt;i use MS ACCESS as a database and vb 6 as a programming as usual...&lt;br /&gt;clik &lt;a href=&#39;http://www.esnips.com/doc/59c560f9-fc2d-4fd1-be16-9c7b3b13d058/TodayAgenda&#39;&gt;here&lt;/a&gt; to download all...&lt;br /&gt;have a nice day!...</description><link>http://adivb.blogspot.com/2008/03/daily-agenda.html</link><author>noreply@blogger.com (adi_vb)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3598351875444713762.post-1653447217625009154</guid><pubDate>Fri, 09 Nov 2007 11:36:00 +0000</pubDate><atom:updated>2008-12-09T01:51:00.319-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">web browser</category><title>web viewer like browser</title><description>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-nUemQw2OHIX9UQF0r9TVdV934rRRXSWJjUPVWurvnnUa7L5vjjQHYA8Hxd5TlDt4XJNBguvjLV3BQlEz3DpjZFLyAAe5Z6cQfgRDri56mN-8bD8fdg4XV8opL7n0aDO5yXOvbfJJ8cQ9/s1600-h/web_browser.JPG&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-nUemQw2OHIX9UQF0r9TVdV934rRRXSWJjUPVWurvnnUa7L5vjjQHYA8Hxd5TlDt4XJNBguvjLV3BQlEz3DpjZFLyAAe5Z6cQfgRDri56mN-8bD8fdg4XV8opL7n0aDO5yXOvbfJJ8cQ9/s320/web_browser.JPG&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5130803778407974226&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;so many browser spread in internet.&lt;br /&gt;wow, vb can make it too, even it&#39;s so easy.&lt;br /&gt;we need an object called Microsoft Internet Controls.&lt;br /&gt;this object defaultly installed when we install vb.&lt;br /&gt;here is some code..&lt;br /&gt;&lt;br /&gt;Private Sub Command1_Click()&lt;br /&gt;End&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Form_Load()&lt;br /&gt;&#39;show web file&lt;br /&gt;web.Navigate App.Path &amp; &quot;\contoh.htm&quot;&lt;br /&gt;End Sub</description><link>http://adivb.blogspot.com/2007/11/web-viewer-like-browser.html</link><author>noreply@blogger.com (adi_vb)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-nUemQw2OHIX9UQF0r9TVdV934rRRXSWJjUPVWurvnnUa7L5vjjQHYA8Hxd5TlDt4XJNBguvjLV3BQlEz3DpjZFLyAAe5Z6cQfgRDri56mN-8bD8fdg4XV8opL7n0aDO5yXOvbfJJ8cQ9/s72-c/web_browser.JPG" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3598351875444713762.post-641658189332469659</guid><pubDate>Fri, 09 Nov 2007 11:26:00 +0000</pubDate><atom:updated>2008-12-09T01:51:00.450-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ini file</category><title>read write ini file</title><description>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivVft2DFSvqcnZOtYUoB7oA2z6UQ4CBwnuZgHVqu79w5Js1QOUi2__5XItrUH0Lok3nsP-97Q6QktER6x4PirmUwyMBf7UnOGP3bsRN7eJn2kBJ9Gsykrd4P35aDQQznzDHg6CK0qsk_Nh/s1600-h/ini_file.JPG&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivVft2DFSvqcnZOtYUoB7oA2z6UQ4CBwnuZgHVqu79w5Js1QOUi2__5XItrUH0Lok3nsP-97Q6QktER6x4PirmUwyMBf7UnOGP3bsRN7eJn2kBJ9Gsykrd4P35aDQQznzDHg6CK0qsk_Nh/s320/ini_file.JPG&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5130802541457392962&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;some application need configuration setting.&lt;br /&gt;usually we use ini file in windows system.&lt;br /&gt;vb can do both read and write ini file.&lt;br /&gt;here is code for read/write ini file.&lt;br /&gt;&lt;br /&gt;Private Declare Function GetPrivateProfileString Lib &quot;kernel32&quot; Alias _ &quot;GetPrivateProfileStringA&quot; (ByVal lpApplicationName As String, ByVal lpKeyName As _ Any, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize _&lt;br /&gt;As Long, ByVal lpFileName As String) As Long&lt;br /&gt;&lt;br /&gt;Private Declare Function WritePrivateProfileString Lib &quot;kernel32&quot; _&lt;br /&gt;Alias &quot;WritePrivateProfileStringA&quot; (ByVal lpApplicationName As String, _&lt;br /&gt;ByVal lpKeyName As Any, ByVal lpString As Any, ByVal lpFileName As String) As Long&lt;br /&gt;&lt;br /&gt;Const ini_file = &quot;C:\contoh.ini&quot;&lt;br /&gt;&lt;br /&gt;Private Sub Command1_Click()&lt;br /&gt;&#39;this code will save from di Text1 &lt;br /&gt;&#39;under section &#39;coba&#39; on Key &#39;oke&#39;.&lt;br /&gt;hasil = WritePrivateProfileString(&quot;coba&quot;, &quot;oke&quot;, Text1.Text, ini_file)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Command2_Click()&lt;br /&gt;Dim my_val As String * 20&lt;br /&gt;&#39;this code will get from key &#39;oke&#39; under section &#39;coba&#39;,&lt;br /&gt;&#39;and give to variable named my_val.&lt;br /&gt;hasil = GetPrivateProfileString(&quot;coba&quot;, &quot;oke&quot;, &quot;Empty&quot;, my_val, Len(my_val),ini_file)&lt;br /&gt;MsgBox my_val, vbInformation, &quot;ok&quot;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;click &lt;a href=&quot;http://www.esnips.com/doc/1caa55ab-46cb-49a6-96ce-1d323d87faac/read_write_ini_file&quot;&gt;here&lt;/a&gt; to download the project...</description><link>http://adivb.blogspot.com/2007/11/read-write-ini-file.html</link><author>noreply@blogger.com (adi_vb)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivVft2DFSvqcnZOtYUoB7oA2z6UQ4CBwnuZgHVqu79w5Js1QOUi2__5XItrUH0Lok3nsP-97Q6QktER6x4PirmUwyMBf7UnOGP3bsRN7eJn2kBJ9Gsykrd4P35aDQQznzDHg6CK0qsk_Nh/s72-c/ini_file.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3598351875444713762.post-6543636132426270564</guid><pubDate>Fri, 09 Nov 2007 11:09:00 +0000</pubDate><atom:updated>2007-11-09T03:16:29.205-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">show hidden file or folder</category><title>show hidden file</title><description>so many virus or worm that attack our file or folder.&lt;br /&gt;one of its attack is hide our file or folder.&lt;br /&gt;they usually make our file hidden and system file.&lt;br /&gt;here is some code to make it show again.&lt;br /&gt;we only use dos command to resolve this problem.&lt;br /&gt;here is the code...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. get in to command dos (Start&gt;Run&gt;type ‘cmd’)&lt;br /&gt;2. suppost the drive that we want to recover is f, so type &quot;f:&quot; (enter) &lt;br /&gt;3. type “attrib –s –h /s /d *” push enter&lt;br /&gt;4. that&#39;s all, all file or folder will show up again…&lt;br /&gt;&lt;br /&gt;have a nice try…</description><link>http://adivb.blogspot.com/2007/11/show-hidden-file.html</link><author>noreply@blogger.com (adi_vb)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3598351875444713762.post-7054825540306334137</guid><pubDate>Fri, 09 Nov 2007 09:24:00 +0000</pubDate><atom:updated>2008-12-09T01:51:00.722-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">login with database</category><title>Login with database</title><description>Oke, now we try to make a login form.&lt;br /&gt;but, we use database to store user name and password...&lt;br /&gt;i use ms access 2003 to build the database.&lt;br /&gt;in this application, there are 2 form. 1 for login and other for display the data.&lt;br /&gt;&lt;br /&gt;here, the code...&lt;br /&gt;#1) login form&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnpNqBMNJGjd2-7dxK9R01cLPO0ZM3VEE2OKI5IuyO7T93mHNODT5Jg-Y5eiDxet8OWVR43UTKXwNABA0Atgig_-LMdioP7uhZBymcxTIxDw9okYkBlV51nDqscR5F2275l6mlvjUtKQkN/s1600-h/login_db.JPG&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnpNqBMNJGjd2-7dxK9R01cLPO0ZM3VEE2OKI5IuyO7T93mHNODT5Jg-Y5eiDxet8OWVR43UTKXwNABA0Atgig_-LMdioP7uhZBymcxTIxDw9okYkBlV51nDqscR5F2275l6mlvjUtKQkN/s320/login_db.JPG&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5130770475231560994&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Private Sub Command1_Click()&lt;br /&gt;Adodc1.RecordSource = &quot;select * from data_user where user_name=&#39;&quot; &amp; Text1.Text &amp; &quot;&#39;&quot;&lt;br /&gt;Adodc1.Refresh&lt;br /&gt;If Adodc1.Recordset.RecordCount &gt; 0 Then&lt;br /&gt;    Adodc1.RecordSource = &quot;select * from data_user where user_name=&#39;&quot; &amp; Text1.Text &amp; &quot;&#39; and kode_password=&#39;&quot; &amp; Text2.Text &amp; &quot;&#39;&quot;&lt;br /&gt;    Adodc1.Refresh&lt;br /&gt;    If Adodc1.Recordset.RecordCount &gt; 0 Then&lt;br /&gt;        &#39;benar&lt;br /&gt;        Unload Me&lt;br /&gt;        Load Form2&lt;br /&gt;        Form2.Show&lt;br /&gt;    Else&lt;br /&gt;        MsgBox &quot;Password salah!&quot;, vbInformation, &quot;salah&quot;&lt;br /&gt;        Text2.Text = &quot;&quot;&lt;br /&gt;        Text2.SetFocus&lt;br /&gt;    End If&lt;br /&gt;Else&lt;br /&gt;    MsgBox &quot;user name salah!&quot;, vbInformation, &quot;salah&quot;&lt;br /&gt;    Text1.Text = &quot;&quot;&lt;br /&gt;    Text2.Text = &quot;&quot;&lt;br /&gt;    Text1.SetFocus&lt;br /&gt;End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Command2_Click()&lt;br /&gt;End&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Form_Load()&lt;br /&gt;sumber = App.Path &amp; &quot;\login.mdb&quot;&lt;br /&gt;Adodc1.ConnectionString = &quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=&quot; &amp; sumber &amp; &quot;;Persist Security Info=False&quot;&lt;br /&gt;Adodc1.RecordSource = &quot;select * from data_user&quot;&lt;br /&gt;Adodc1.Refresh&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#2) data form&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkLoSbgEXwOJeDCArcU4g4JrPz-XouVOhEXIy0gmiBz_vcBqDMLsMYJB0QIy9BgPt7uuFBtpZfgRoGUiYAfNP8uHG_Hxt4QjQ758PLFL0-XFdBz9WWLWQTyCpPJMW5jEu2g-WC73-NifpG/s1600-h/datanya.JPG&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkLoSbgEXwOJeDCArcU4g4JrPz-XouVOhEXIy0gmiBz_vcBqDMLsMYJB0QIy9BgPt7uuFBtpZfgRoGUiYAfNP8uHG_Hxt4QjQ758PLFL0-XFdBz9WWLWQTyCpPJMW5jEu2g-WC73-NifpG/s320/datanya.JPG&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5130770672800056626&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Private Sub Command1_Click()&lt;br /&gt;End&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Form_Load()&lt;br /&gt;sumber = App.Path &amp; &quot;\login.mdb&quot;&lt;br /&gt;Adodc1.ConnectionString = &quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=&quot; &amp; sumber &amp; &quot;;Persist Security Info=False&quot;&lt;br /&gt;Adodc1.RecordSource = &quot;select * from data_user&quot;&lt;br /&gt;Adodc1.Refresh&lt;br /&gt;Set DataGrid1.DataSource = Adodc1&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;.....&lt;br /&gt;click &lt;a href=&quot;http://www.esnips.com/doc/a0416658-4956-469f-b839-e907ec3692e3/login_database&quot;&gt;here&lt;/a&gt; to download...</description><link>http://adivb.blogspot.com/2007/11/login-with-database.html</link><author>noreply@blogger.com (adi_vb)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnpNqBMNJGjd2-7dxK9R01cLPO0ZM3VEE2OKI5IuyO7T93mHNODT5Jg-Y5eiDxet8OWVR43UTKXwNABA0Atgig_-LMdioP7uhZBymcxTIxDw9okYkBlV51nDqscR5F2275l6mlvjUtKQkN/s72-c/login_db.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3598351875444713762.post-1306779681464386497</guid><pubDate>Fri, 09 Nov 2007 09:17:00 +0000</pubDate><atom:updated>2008-12-09T01:51:00.952-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">login vb</category><title>Login for Access Application</title><description>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT9Aa0xGLcm1XPEqGZdA9Av0PoydPhGU2CTwiDTXw61SSVitICarrmGvw7Uor7El56R9Pf0KVYSWAYq7ElYpnmbnFho3IremUxoOtRjHezFiLL2IfYALnsGRWOIFYisxGtFU1j9fhRr6TZ/s1600-h/login.JPG&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT9Aa0xGLcm1XPEqGZdA9Av0PoydPhGU2CTwiDTXw61SSVitICarrmGvw7Uor7El56R9Pf0KVYSWAYq7ElYpnmbnFho3IremUxoOtRjHezFiLL2IfYALnsGRWOIFYisxGtFU1j9fhRr6TZ/s320/login.JPG&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5130767464459486482&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;OK, its very easy make a login form for any application with vb (of course).&lt;br /&gt;Here i make count if any mistakes of entry both user name or password.&lt;br /&gt;User only 3 times to try. If 3 times mistakes, so the form will terminated!&lt;br /&gt;Of course, it will show a message if there&#39;s a mistakes...&lt;br /&gt; &lt;br /&gt;here, the code...&lt;br /&gt;&lt;br /&gt;Dim salah As Byte&lt;br /&gt;&lt;br /&gt;Private Sub Command1_Click()&lt;br /&gt;If Text1.Text = &quot;adi&quot; And Text2.Text = &quot;vb&quot; Then&lt;br /&gt;    MsgBox &quot;Login sukses!&quot;, vbInformation, &quot;oke&quot;&lt;br /&gt;Else&lt;br /&gt;    MsgBox &quot;Login gagal!&quot;, vbCritical, &quot;no&quot;&lt;br /&gt;    salah = salah + 1&lt;br /&gt;    If salah = 3 Then&lt;br /&gt;        MsgBox &quot;Anda sudah salah 3x!&quot; &amp; Chr(10) &amp; &quot;Aplikasi akan mati!&quot;, vbInformation, &quot;look&quot;&lt;br /&gt;        End&lt;br /&gt;    End If&lt;br /&gt;    Text1.Text = &quot;&quot;&lt;br /&gt;    Text2.Text = &quot;&quot;&lt;br /&gt;    Text1.SetFocus&lt;br /&gt;End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Command2_Click()&lt;br /&gt;End&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;click &lt;a href=&quot;http://www.esnips.com/doc/e51e31b6-0175-4178-8315-a959dc05c276/login_vb&quot;&gt;here&lt;/a&gt; to download...</description><link>http://adivb.blogspot.com/2007/11/login-for-access-application.html</link><author>noreply@blogger.com (adi_vb)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT9Aa0xGLcm1XPEqGZdA9Av0PoydPhGU2CTwiDTXw61SSVitICarrmGvw7Uor7El56R9Pf0KVYSWAYq7ElYpnmbnFho3IremUxoOtRjHezFiLL2IfYALnsGRWOIFYisxGtFU1j9fhRr6TZ/s72-c/login.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3598351875444713762.post-7498337909256992671</guid><pubDate>Fri, 09 Nov 2007 09:01:00 +0000</pubDate><atom:updated>2007-11-09T01:11:49.529-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">SQL statement</category><title>Syntax SQL for querying database</title><description>SQL (Structured Query Language) is a small-language that we can use to manipulate a database. In real life, SQL equivalent with lingua-france (language of trade).&lt;br /&gt;Almost database application recognize this language.&lt;br /&gt;So, if we good in this language, it very useful for our application that related with database. Of cource, most application related with database.&lt;br /&gt;&lt;br /&gt;Suppost we have table: &quot;data_pegawai&quot;&lt;br /&gt;here the record...&lt;br /&gt;--------------------------------------------&lt;br /&gt;nip     nama     alamat     usia    gender&lt;br /&gt;--------------------------------------------&lt;br /&gt;001     joko     depok      50      L&lt;br /&gt;002     soni     bogor      35      L&lt;br /&gt;003     dewi     jakarta    20      P&lt;br /&gt;004     rudi     depok      30      L&lt;br /&gt;--------------------------------------------&lt;br /&gt;&lt;br /&gt;here...some SQL syntax...&lt;br /&gt;&lt;br /&gt;if we want to display all record...&lt;br /&gt;&quot;select * from data_pegawai&quot;&lt;br /&gt;if we want to display only nip and nama...&lt;br /&gt;&quot;select nip,nama form data_pegawai&quot;&lt;br /&gt;if we want to display person who only usia &gt; 30...&lt;br /&gt;&quot;select * from data_pegawai where usia &gt; 30&quot;&lt;br /&gt;if we want to display only alamat in depok...&lt;br /&gt;&quot;select * from data_pegawai where alamat=&#39;depok&#39;&quot;&lt;br /&gt;if we want to know how many person in each alamat...&lt;br /&gt;&quot;select alamat,count(alamat) as jumlah from data_pegawai group by alamat&quot;&lt;br /&gt;&lt;br /&gt;...that&#39;s an example....i will continue later...</description><link>http://adivb.blogspot.com/2007/11/syntax-sql-for-querying-database.html</link><author>noreply@blogger.com (adi_vb)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3598351875444713762.post-4253949975351798129</guid><pubDate>Fri, 09 Nov 2007 08:27:00 +0000</pubDate><atom:updated>2008-12-09T01:51:01.119-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">datediff vb</category><title>count date different (selisih tanggal)</title><description>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEili09jC7duAw8ClS30bBRC2w4RVKLJP1rmzptBJDXD5AHLdL1f7KELp1w5y7rG9p4hTTg7P-km-Jv-KHfCirDg6Jji2ncBQK9rfm3-aMIewkEA-PEmAi4vOLBJb94Cv1VwAM9J3gQLCC8t/s1600-h/hitung_tgl.JPG&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEili09jC7duAw8ClS30bBRC2w4RVKLJP1rmzptBJDXD5AHLdL1f7KELp1w5y7rG9p4hTTg7P-km-Jv-KHfCirDg6Jji2ncBQK9rfm3-aMIewkEA-PEmAi4vOLBJb94Cv1VwAM9J3gQLCC8t/s320/hitung_tgl.JPG&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5130756838710396162&quot; /&gt;&lt;/a&gt;&lt;br /&gt;with vb, its very easy to calculate the different between two date.&lt;br /&gt;we can count the different based on day or month.&lt;br /&gt;we need dtpicker object. it object is a member of microsoft windows common control 2-6.0&lt;br /&gt;here is the source code...&lt;br /&gt;&lt;br /&gt;Private Sub Command1_Click()&lt;br /&gt;If Option2.Value = True Then&lt;br /&gt;Text1.Text = DateDiff(&quot;m&quot;, tgl1.Value, tgl2.Value)&lt;br /&gt;Label4.Caption = &quot;Bulan&quot;&lt;br /&gt;Else&lt;br /&gt;Text1.Text = DateDiff(&quot;d&quot;, tgl1.Value, tgl2.Value)&lt;br /&gt;Label4.Caption = &quot;Hari&quot;&lt;br /&gt;End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Command2_Click()&lt;br /&gt;End&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Form_Load()&lt;br /&gt;Option3.Value = True&lt;br /&gt;tgl1.Value = Now&lt;br /&gt;tgl2.Value = Now&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;click&lt;a href=&quot;http://www.esnips.com/doc/804fe2af-e955-4c78-8c72-284b630876cb/hitung_tanggal&quot;&gt; here&lt;/a&gt; to download...</description><link>http://adivb.blogspot.com/2007/11/count-date-different-selisih-tanggal.html</link><author>noreply@blogger.com (adi_vb)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEili09jC7duAw8ClS30bBRC2w4RVKLJP1rmzptBJDXD5AHLdL1f7KELp1w5y7rG9p4hTTg7P-km-Jv-KHfCirDg6Jji2ncBQK9rfm3-aMIewkEA-PEmAi4vOLBJb94Cv1VwAM9J3gQLCC8t/s72-c/hitung_tgl.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3598351875444713762.post-8312344097726830013</guid><pubDate>Fri, 09 Nov 2007 07:52:00 +0000</pubDate><atom:updated>2008-12-09T01:51:01.340-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">billing internet</category><category domain="http://www.blogger.com/atom/ns#">billing rental</category><title>billing rental/warnet single pc</title><description>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEff8tJ5sdl9tPYz6OpoLkc8tbo_bmHYActJ8eJg0m3o9EU1XaNtDYTtVqdGfw_dWMLmlqwBMxYAolcLnII83Wl9AuZRsVxrsFy4aJPp809p0Yc2EX8ESZ_bw4H0hIPYXzz_-23B6Reoxt/s1600-h/billing.JPG&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEff8tJ5sdl9tPYz6OpoLkc8tbo_bmHYActJ8eJg0m3o9EU1XaNtDYTtVqdGfw_dWMLmlqwBMxYAolcLnII83Wl9AuZRsVxrsFy4aJPp809p0Yc2EX8ESZ_bw4H0hIPYXzz_-23B6Reoxt/s320/billing.JPG&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5130749627460306146&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUYiaXIbowzs5SJl2BU86EhodVRHuzVvOi8ijRlnWQy_09OHa7T7etO_IuqXgY7kcqiuqW8EqcdYciJdYpmjC7CxtkApCtoduKEcqUguZNgjwTCEELP8gutuWK4Q_IQwmLsdxyVM7hC4jH/s1600-h/password.JPG&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUYiaXIbowzs5SJl2BU86EhodVRHuzVvOi8ijRlnWQy_09OHa7T7etO_IuqXgY7kcqiuqW8EqcdYciJdYpmjC7CxtkApCtoduKEcqUguZNgjwTCEELP8gutuWK4Q_IQwmLsdxyVM7hC4jH/s320/password.JPG&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5130749983942591730&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;we can make a billing for pc rental or internet rental (warnet).&lt;br /&gt;we can use object timer in vb.&lt;br /&gt;maybe we need to give them a password form; to end or stop application.&lt;br /&gt;in this application we need 2 forms; 1 for billing and 1 for password.&lt;br /&gt;here is some its source code...&lt;br /&gt;&lt;br /&gt;&#39;this is code for billing form...&lt;br /&gt;&lt;br /&gt;Dim mulai As Single&lt;br /&gt;Dim keluar As Single&lt;br /&gt;Dim biaya As Long&lt;br /&gt;Dim hitung As Integer&lt;br /&gt;&lt;br /&gt;Private Sub Command1_Click()&lt;br /&gt;     biaya = 500&lt;br /&gt;     Text3.Text = &quot;500&quot;&lt;br /&gt;     mulai = Time&lt;br /&gt;     keluar = Time&lt;br /&gt;     Text1.Text = Format(Time, &quot;hh:mm:ss&quot;)&lt;br /&gt;     Timer1.Enabled = True&lt;br /&gt;     Command1.Enabled = False&lt;br /&gt;     Command2.Enabled = True&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Command2_Click()&lt;br /&gt;     Load password&lt;br /&gt;     password.Show&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Form_Resize()&lt;br /&gt;     If Me.WindowState = 1 Then&lt;br /&gt;           Me.Caption = Text2.Text&lt;br /&gt;     Else&lt;br /&gt;           Me.Caption = &quot;Billing PC-10&quot;&lt;br /&gt;     End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Form_Unload(Cancel As Integer)&lt;br /&gt;     Load password&lt;br /&gt;     password.Show&lt;br /&gt;     password.Caption = &quot;Close&quot;&lt;br /&gt;     Cancel = 1&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Timer1_Timer()&lt;br /&gt;     hitung = hitung + 1&lt;br /&gt;     keluar = keluar + 0.00001157448&lt;br /&gt;     Text2.Text = Format(keluar - mulai, &quot;hh:mm:ss&quot;)&lt;br /&gt;     If hitung Mod 480 = 0 Then&lt;br /&gt;           biaya = biaya + 500&lt;br /&gt;           Text3.Text = Format(biaya, &quot;###,###,###&quot;)&lt;br /&gt;           hitung = 0&lt;br /&gt;     End If&lt;br /&gt;     If Me.WindowState = 1 Then&lt;br /&gt;           Me.Caption = Text2.Text&lt;br /&gt;     End If&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&#39;this code for password form...&lt;br /&gt;Private Sub Command1_Click()&lt;br /&gt;     If Me.Caption = &quot;Close&quot; Then&lt;br /&gt;          If Text1.Text = &quot;aadc&quot; Then&lt;br /&gt;                 End&lt;br /&gt;          End If&lt;br /&gt;     Else&lt;br /&gt;          If Text1.Text = &quot;aadc&quot; Then&lt;br /&gt;                 Form1.Timer1.Enabled = False&lt;br /&gt;                 Form1.Command1.Enabled = True&lt;br /&gt;                 Form1.Command2.Enabled = False&lt;br /&gt;          End If&lt;br /&gt;     End If&lt;br /&gt;     Unload Me&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Text1_KeyPress(KeyAscii As Integer)&lt;br /&gt;     If KeyAscii = 13 Then&lt;br /&gt;     Command1_Click&lt;br /&gt;     End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;click&lt;a href=&quot;http://www.esnips.com/doc/92f28080-8cd8-4166-9ffc-45709a7db160/bil_man&quot;&gt; here&lt;/a&gt; to download...</description><link>http://adivb.blogspot.com/2007/11/billing-rentalwarnet-single-pc.html</link><author>noreply@blogger.com (adi_vb)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEff8tJ5sdl9tPYz6OpoLkc8tbo_bmHYActJ8eJg0m3o9EU1XaNtDYTtVqdGfw_dWMLmlqwBMxYAolcLnII83Wl9AuZRsVxrsFy4aJPp809p0Yc2EX8ESZ_bw4H0hIPYXzz_-23B6Reoxt/s72-c/billing.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3598351875444713762.post-9018121358071299948</guid><pubDate>Fri, 09 Nov 2007 06:31:00 +0000</pubDate><atom:updated>2008-12-09T01:51:01.481-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">stop watch vb</category><title>stop watch by vb</title><description>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuz0s5a4opII_aviHiczfPYT8GMUBexMO8IQznxm3rmdIsZKS4ATRb_he4U_6XxIuOLeasCwVFA7C1U7dWw02RugBtwB0tlZZnQ18uT4CBprTJo-tbYZWuLzTy5eIwOaj98vrdYxTi1Y7k/s1600-h/stop_watch.JPG&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuz0s5a4opII_aviHiczfPYT8GMUBexMO8IQznxm3rmdIsZKS4ATRb_he4U_6XxIuOLeasCwVFA7C1U7dWw02RugBtwB0tlZZnQ18uT4CBprTJo-tbYZWuLzTy5eIwOaj98vrdYxTi1Y7k/s320/stop_watch.JPG&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5130727147601478866&quot; /&gt;&lt;/a&gt;&lt;br /&gt;here is i make a small application from vb.&lt;br /&gt;i make a stop watch...&lt;br /&gt;we can use object timer.&lt;br /&gt;there are a few methods or properties that we must set if we want to use a timer.&lt;br /&gt;they are: interval (to determine time interval of timer counting) and enabled (to run/stop timer).&lt;br /&gt;here is some simple code to utilize timer object...&lt;br /&gt;&#39;vb code&lt;br /&gt;private sub command1_click()&lt;br /&gt;     &#39;set interval&lt;br /&gt;     timer1.interval=1000      &#39;1000=1 second&lt;br /&gt;     &#39;start timer&lt;br /&gt;     timer1.enabled=true&lt;br /&gt;end sub&lt;br /&gt;&lt;br /&gt;private sub command2_click()&lt;br /&gt;     &#39;stop timer&lt;br /&gt;     timer1.enabled=false&lt;br /&gt;end sub&lt;br /&gt;&lt;br /&gt;click&lt;a href=&quot;http://www.esnips.com/doc/8ecdac66-1409-4584-8e28-e23471e75738/stop_watch&quot;&gt; here&lt;/a&gt; to download full application...</description><link>http://adivb.blogspot.com/2007/11/stop-watch-by-vb.html</link><author>noreply@blogger.com (adi_vb)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuz0s5a4opII_aviHiczfPYT8GMUBexMO8IQznxm3rmdIsZKS4ATRb_he4U_6XxIuOLeasCwVFA7C1U7dWw02RugBtwB0tlZZnQ18uT4CBprTJo-tbYZWuLzTy5eIwOaj98vrdYxTi1Y7k/s72-c/stop_watch.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3598351875444713762.post-6920033360360971992</guid><pubDate>Fri, 09 Nov 2007 02:55:00 +0000</pubDate><atom:updated>2007-11-08T21:59:39.508-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">adodc connectionstring</category><title>adodc connectionstring for any database</title><description>visual basic 6 has many capabilities to connect with many database application.&lt;br /&gt;both desktop database and client-server database.&lt;br /&gt;such as: ms access, foxpro, dbase, sql server, etc.&lt;br /&gt;with these capabilities, make vb mostly used by many programmer related with database application.&lt;br /&gt;to connect with database, we need object connector, adodc.&lt;br /&gt;in adodc, there are 2 methods that we must set to make adodc connect with database.&lt;br /&gt;they are: connectionstring and recordsource.&lt;br /&gt;we use connectionstring to determine what database application and the name of our database. while  recordsource, we use it to select a table.&lt;br /&gt;here some &lt;a href=&quot;http://adivb.blogspot.com/2007/10/kind-of-vb-ado-connection-string-for.html&quot;&gt;adodc connectionstring&lt;/a&gt;....(i&#39;ve repost it from pondokindah.wordpress.com. thanks)&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://adivb.blogspot.com/2007/10/kind-of-vb-ado-connection-string-for.html&quot;&gt;&lt;br /&gt;&lt;/a&gt;</description><link>http://adivb.blogspot.com/2007/11/here.html</link><author>noreply@blogger.com (adi_vb)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3598351875444713762.post-4309909978673038779</guid><pubDate>Sat, 27 Oct 2007 09:30:00 +0000</pubDate><atom:updated>2009-09-27T20:53:25.009-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">adodc connectionstring</category><title>kind of vb ado connection string for any databases</title><description>hi....you guys...&lt;br /&gt;i&#39;ve got these kind of ado connectionstring from http://pondokindah.wordpress.com...&lt;br /&gt;here...all connectionstring...&lt;br /&gt;-------------&lt;br /&gt;1. SQL Server&lt;br /&gt;ODBC Standard Security: “Driver={SQL Server};Server=Aron1;Database=pubs;Uid=sa;Pwd=asdasd;” Trusted connection: “Driver={SQL Server};Server=Aron1;Database=pubs; Trusted_Connection=yes;” Prompt for username and password: oConn.Properties(”Prompt”) = adPromptAlwaysoConn.Open “Driver={SQL Server};Server=Aron1;DataBase=pubs;”&lt;br /&gt;OLE DB, OleDbConnection (.NET) Standard Security: “Provider=sqloledb;Data Source=Aron1;Initial Catalog=pubs;User Id=sa;Password=asdasd;” Trusted Connection: “Provider=sqloledb;Data Source=Aron1;Initial Catalog=pubs;Integrated Security=SSPI;” (use serverName\instanceName as Data Source to use an specifik SQLServer instance, only SQLServer2000) Prompt for username and password: oConn.Provider = “sqloledb”oConn.Properties(”Prompt”) = adPromptAlwaysoConn.Open “Data Source=Aron1;Initial Catalog=pubs;” Connect via an IP address: “Provider=sqloledb;Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=pubs;User ID=sa;Password=asdasd;” (DBMSSOCN=TCP/IP instead of Named Pipes, at the end of the Data Source is the port to use (1433 is the default))&lt;br /&gt;SqlConnection (.NET) Standard Security: “Data Source=Aron1;Initial Catalog=pubs;User Id=sa;Password=asdasd;” - or - “Server=Aron1;Database=pubs;User ID=sa;Password=asdasd;Trusted_Connection=False” (both connection strings produces the same result) Trusted Connection: “Data Source=Aron1;Initial Catalog=pubs;Integrated Security=SSPI;” - or -”Server=Aron1;Database=pubs;Trusted_Connection=True;” (both connection strings produces the same result) (use serverName\instanceName as Data Source to use an specifik SQLServer instance, only SQLServer2000) Connect via an IP address: “Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=pubs;User ID=sa;Password=asdasd;” (DBMSSOCN=TCP/IP instead of Named Pipes, at the end of the Data Source is the port to use (1433 is the default)) Declare the SqlConnection: C#:using System.Data.SqlClient;SqlConnection oSQLConn = new SqlConnection();oSQLConn.ConnectionString=”my connection string”;oSQLConn.Open(); VB.NET: Imports System.Data.SqlClientDim oSQLConn As SqlConnection = New SqlConnection()oSQLConn.ConnectionString=”my connection string”oSQLConn.Open()&lt;br /&gt;Data Shape MS Data Shape”Provider=MSDataShape;Data Provider=SQLOLEDB;Data Source=Aron1;Initial Catalog=pubs;User ID=sa;Password=asdasd;”&lt;br /&gt;&lt;br /&gt;2. SQL Server 2005&lt;br /&gt;SQL Native Client ODBC Driver Standard security: “Driver={SQL Native Client};Server=Aron1;Database=pubs;UID=sa;PWD=asdasd;” Trusted connection: “Driver={SQL Native Client};Server=Aron1;Database=pubs;Trusted_Connection=yes;” EquivalentsIntegrated Security=SSPI equals Trusted_Connection=yes Prompt for username and password: oConn.Properties(”Prompt”) = adPromptAlwaysoConn.Open “Driver={SQL Native Client};Server=Aron1;DataBase=pubs;” Enabling MARS (multiple active result sets): “Driver={SQL Native Client};Server=Aron1;Database=pubs; Trusted_Connection=yes;MARS_Connection=yes” EquivalentsMultipleActiveResultSets=true equals MARS_Connection=yes Encrypt data sent over network: “Driver={SQL Native Client};Server=Aron1;Database=pubs; Trusted_Connection=yes;Encrypt=yes” Attach a database file on connect to a local SQL Server Express instance: “Driver={SQL Native Client};Server=.\SQLExpress; AttachDbFilename=c:\asd\qwe\mydbfile.mdf; Database=dbname;Trusted_Connection=Yes;” - or - “Driver={SQL Native Client};Server=.\SQLExpress; AttachDbFilename=DataDirectorymydbfile.mdf; Database=dbname;Trusted_Connection=Yes;” (use DataDirectory when your database file resides in the data directory) Why is the “Database” parameter needed? Answer: If the database was previously attached, SQL Server does not reattach it (it uses the attached database as the default for the connection). (the package contains booth the ODBC driver and the OLE DB provider) Using SQL Server 2005 Express? Don’t miss the server name syntax: SERVERNAME\SQLEXPRESS (Substitute “SERVERNAME” with the name of the computer)&lt;br /&gt;SQL Native Client OLE DB Provider Standard security: “Provider=SQLNCLI;Server=Aron1;Database=pubs; UID=sa;PWD=asdasd;” Trusted connection: “Provider=SQLNCLI;Server=Aron1;Database=pubs; Trusted_Connection=yes;” Equivalents Integrated Security=SSPI equals Trusted_Connection=yes Prompt for username and password: oConn.Properties(”Prompt”) = adPromptAlwaysoConn.Open “Provider=SQLNCLI;Server=Aron1;DataBase=pubs;” Enabling MARS (multiple active result sets): “Provider=SQLNCLI;Server=Aron1;Database=pubs; Trusted_Connection=yes;MarsConn=yes” Equivalents MarsConn=yes equals MultipleActiveResultSets=true equals MARS_Connection=yes Encrypt data sent over network: “Provider=SQLNCLI;Server=Aron1;Database=pubs; Trusted_Connection=yes;Encrypt=yes” Attach a database file on connect to a local SQL Server Express instance: “Provider=SQLNCLI;Server=.\SQLExpress; AttachDbFilename=c:\asd\qwe\mydbfile.mdf; Database=dbname;Trusted_Connection=Yes;” - or - “Provider=SQLNCLI;Server=.\SQLExpress; AttachDbFilename=DataDirectorymydbfile.mdf; Database=dbname;Trusted_Connection=Yes;” (use DataDirectory when your database file resides in the data directory) Why is the “Database” parameter needed? Answer: If the database was previously attached, SQL Server does not reattach it (it uses the attached database as the default for the connection). (the package contains booth the ODBC driver and the OLE DB provider) Using SQL Server 2005 Express? Don’t miss the server name syntax: SERVERNAME\SQLEXPRESS (Substitute “SERVERNAME” with the name of the computer)&lt;br /&gt;SqlConnection (.NET) Standard Security: “Data Source=Aron1;Initial Catalog=pubs;User Id=sa;Password=asdasd;” - or - “Server=Aron1;Database=pubs;User ID=sa;Password=asdasd;Trusted_Connection=False” (both connection strings produces the same result) Trusted Connection: “Data Source=Aron1;Initial Catalog=pubs;Integrated Security=SSPI;” - or - “Server=Aron1;Database=pubs;Trusted_Connection=True;” (both connection strings produces the same result) (use serverName\instanceName as Data Source to use an specifik SQLServer instance) Connect via an IP address: “Data Source=190.190.200.100,1433; Network Library=DBMSSOCN;Initial Catalog=pubs;User ID=sa;Password=asdasd;” (DBMSSOCN=TCP/IP instead of Named Pipes, at the end of the Data Source is the port to use (1433 is the default)) Enabling MARS (multiple active result sets): “Server=Aron1;Database=pubs; Trusted_Connection=True;MultipleActiveResultSets=true” Note! Use ADO.NET 2.0 for MARS functionality. MARS is not supported in ADO.NET 1.0 nor ADO.NET 1.1 Streamline your Data Connections by Moving to MARS, by Laurence Moroney, DevX.com &gt;&gt; Attach a database file on connect to a local SQL Server Express instance: “Server=.\SQLExpress; AttachDbFilename=c:\asd\qwe\mydbfile.mdf; Database=dbname; Trusted_Connection=Yes;” - or - “Server=.\SQLExpress; AttachDbFilename=DataDirectorymydbfile.mdf; Database=dbname; Trusted_Connection=Yes;” (use DataDirectory when your database file resides in the data directory) Why is the “Database” parameter needed? Answer: If the database was previously attached, SQL Server does not reattach it ( it uses the attached database as the default for the connection). Using “User Instance” on a local SQL Server Express instance: “Data Source=.\SQLExpress;integrated security=true; attachdbfilename=DataDirectory\mydb.mdf;user instance=true;” The “User Instance” functionality creates a new SQL Server instance on the fly during connect. This works only on a local SQL Server 2005 instance and only when connecting using windows authentication over local named pipes. The purpose is to be able to create a full rights SQL Server instance to a user with limited administrative rights on the computer. To enable the functionality: sp_configure ‘user instances enabled’,&#39;1′ (0 to disable) Using SQL Server 2005 Express? Don’t miss the server name syntax: SERVERNAME\SQLEXPRESS (Substitute “SERVERNAME” with the name of the computer)&lt;br /&gt;Context Connection - connecting to “self” from within your CLR stored prodedure/function C#: using(SqlConnection connection = new SqlConnection(”context connection=true”)) { connection.Open(); // Use the connection } Visual Basic: Using connection as new SqlConnection(”context connection=true”) connection.Open() ‘ Use the connection End Using The context connection lets you execute Transact-SQL statements in the same context (connection) that your code was invoked in the first place.&lt;br /&gt;&lt;br /&gt;3. Access&lt;br /&gt;ODBC Standard Security: “Driver={Microsoft Access Driver (*.mdb)}; Dbq=C:\mydatabase.mdb;Uid=Admin;Pwd=;” Workgroup: “Driver={Microsoft Access Driver (*.mdb)}; Dbq=C:\mydatabase.mdb;SystemDB=C:\mydatabase.mdw;” Exclusive: “Driver={Microsoft Access Driver (*.mdb)}; Dbq=C:\mydatabase.mdb;Exclusive=1;Uid=admin;Pwd=”&lt;br /&gt;OLE DB, OleDbConnection (.NET) Standard security: “Provider=Microsoft.Jet.OLEDB.4.0; Data Source=\somepath\mydb.mdb;User Id=admin;Password=;” Workgroup (system database): “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;Jet OLEDB:System Database=system.mdw;” With password: “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;Jet OLEDB:Database Password=MyDbPassword;”&lt;br /&gt;&lt;br /&gt;4. Oracle&lt;br /&gt;ODBC New version: “Driver={Microsoft ODBC for Oracle};Server=OracleServer.world; Uid=Username;Pwd=asdasd;” Old version: “Driver={Microsoft ODBC Driver for Oracle}; ConnectString=OracleServer.world; Uid=myUsername;Pwd=myPassword;”&lt;br /&gt;OLE DB, OleDbConnection (.NET) Standard security: “Provider=msdaora;Data Source=MyOracleDB;User Id=UserName;Password=asdasd;” This one’s from Microsoft, the following are from Oracle Standard Security: “Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;User Id=Username;Password=asdasd;” Trusted Connection: “Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;OSAuthent=1;”&lt;br /&gt;OracleConnection (.NET) Standard: “Data Source=MyOracleDB;Integrated Security=yes;” This one works only with Oracle 8i release 3 or later Specifying username and password: “Data Source=MyOracleDB;User Id=username;Password=passwd;Integrated Security=no;” This one works only with Oracle 8i release 3 or later&lt;br /&gt;Declare the OracleConnection: C#: using System.Data.OracleClient; OracleConnection oOracleConn = new OracleConnection(); oOracleConn.ConnectionString = “my connection string”; oOracleConn.Open(); VB.NET: Imports System.Data.OracleClient Dim oOracleConn As OracleConnection = New OracleConnection() OracleConn.ConnectionString = “my connection string” oOracleConn.Open() Missing the System.Data.OracleClient namespace? Download .NET Managed Provider for Oracle &gt;&gt;Great article! “Features of Oracle Data Provider for .NET” by Rama Mohan G. at C# Corner&lt;br /&gt;Core Labs OraDirect (.NET) Standard: “User ID=scott; Password=tiger; Host=ora; Pooling=true; Min Pool Size=0;Max Pool Size=100; Connection Lifetime=0″ Read more at Core Lab and the product page.&lt;br /&gt;Data Shape MS Data Shape: “Provider=MSDataShape.1;Persist Security Info=False;Data Provider=MSDAORA;Data Source=orac;user id=username;password=mypw”&lt;br /&gt;&lt;br /&gt;5. MySQL&lt;br /&gt;MyODBC MyODBC 2.50 Local database: “Driver={mySQL};Server=localhost; Option=16834;Database=mydatabase;” MyODBC 2.50 Remote database: “Driver={mySQL};Server=data.domain.com; Port=3306;Option=131072;Stmt=; Database=my-database;Uid=username;Pwd=password;” MyODBC 3.51 Local database: “DRIVER={MySQL ODBC 3.51 Driver}; SERVER=localhost;DATABASE=myDatabase; USER=myUsername; PASSWORD=myPassword;OPTION=3;” MyODBC 3.51 Remote database: “DRIVER={MySQL ODBC 3.51 Driver}; SERVER=data.domain.com; PORT=3306;DATABASE=myDatabase; USER=myUsername;PASSWORD=myPassword;OPTION=3;”&lt;br /&gt;OLE DB, OleDbConnection (.NET) Standard: “Provider=MySQLProv;Data Source=mydb; User Id=UserName;Password=asdasd;” Connector/Net 1.0 (.NET) Standard: “Server=Server;Database=Test;Uid=UserName;Pwd=asdasd;” Download the driver at MySQL Developer Zone. Specifying port: “Server=Server;Port=1234;Database=Test; Uid=UserName;Pwd=asdasd;” Default port is 3306. Enter value -1 to use a named pipe connection. Declare the MySqlClient connection: C#: using MySql.Data.MySqlClient; MySqlConnection oMySqlConn = new MySqlConnection(); oMySqlConn.ConnectionString = “Server=Server;Database=Test;Uid=UserName;Pwd=asdasd;”; oMySqlConn.Open(); VB.NET: Imports MySql.Data.MySqlClient Dim oMySqlConn As MySqlConnection = New MySqlConnection() oMySqlConn.ConnectionString = “Server=Server;Database=Test;Uid=UserName;Pwd=asdasd;” oMySqlConn.Open()&lt;br /&gt;MySqlConnection (.NET) eInfoDesigns.dbProvider: “Data Source=server;Database=mydb;User ID=username;Password=pwd;Command Logging=false” This one is used with eInfoDesigns dbProvider, an add-on to .NET Declare the MySqlConnection: C#: using eInfoDesigns.dbProvider.MySqlClient; MySqlConnection oMySqlConn = new MySqlConnection(); oMySqlConn.ConnectionString = “my connection string”; oMySqlConn.Open(); VB.NET: Imports eInfoDesigns.dbProvider.MySqlClient Dim oMySqlConn As MySqlConnection = New MySqlConnection() oMySqlConn.ConnectionString = “my connection string” oMySqlConn.Open()&lt;br /&gt;SevenObjects MySqlClient (.NET) Standard: “Host=server; UserName=myusername; Password=mypassword;Database=mydb;” This is a freeware ADO.Net data provider from SevenObjects&lt;br /&gt;Core Labs MySQLDirect (.NET) Standard: “User ID=root; Password=pwd; Host=localhost; Port=3306; Database=test; Direct=true; Protocol=TCP; Compress=false; Pooling=true; Min Pool Size=0; Max Pool Size=100; Connection Lifetime=0″&lt;br /&gt;&lt;br /&gt;6.Interbase&lt;br /&gt;ODBC, Easysoft Local computer: “Driver={Easysoft IB6 ODBC}; Server=localhost;Database=localhost:C:\mydatabase.gdb; Uid=username;Pwd=password” Remote Computer: “Driver={Easysoft IB6 ODBC}; Server=ComputerName; Database=ComputerName:C:\mydatabase.gdb; Uid=username;Pwd=password”&lt;br /&gt;ODBC, Intersolv Local computer: “Driver={INTERSOLV InterBase ODBC Driver (*.gdb)};Server=localhost;Database=localhost:C:\mydatabase.gdb; Uid=username;Pwd=password” Remote Computer: “Driver={INTERSOLV InterBase ODBC Driver (*.gdb)}; Server=ComputerName; Database=ComputerName:C:\mydatabase.gdb; Uid=username;Pwd=password” This driver are provided by DataDirect Technologies &gt;&gt; (formerly Intersolv)&lt;br /&gt;OLE DB, SIBPROvider Standard: “provider=sibprovider;location=localhost:;data source=c:\databases\gdbs\mygdb.gdb;user id=SYSDBA;password=masterkey” Specifying character set: “provider=sibprovider;location=localhost:;data source=c:\databases\gdbs\mygdb.gdb;user id=SYSDBA;password=masterkey;character set=ISO8859_1″ Specifying role: “provider=sibprovider;location=localhost:;data source=c:\databases\gdbs\mygdb.gdb;user id=SYSDBA;password=masterkey;role=DIGITADORES”&lt;br /&gt;&lt;br /&gt;7.IBM DB2&lt;br /&gt;OLE DB, OleDbConnection (.NET) from ms TCP/IP: “Provider=DB2OLEDB;Network Transport Library=TCPIP;Network Address=XXX.XXX.XXX.XXX;Initial Catalog=MyCtlg;Package Collection=MyPkgCol;Default Schema=Schema; User ID=MyUser;Password=MyPW” APPC: “Provider=DB2OLEDB;APPC Local LU Alias=MyAlias;APPC Remote LU Alias=MyRemote;Initial Catalog=MyCtlg;Package Collection=MyPkgCol;Default Schema=Schema; User ID=MyUser;Password=MyPW”&lt;br /&gt;IBM’s OLE DB Provider (shipped with IBM DB2 UDB v7 or above) TCP/IP: Provider=IBMDADB2;Database=sample;HOSTNAME=db2host; PROTOCOL=TCPIP; PORT=50000;uid=myUserName;pwd=myPwd;&lt;br /&gt;ODBC Standard: “driver={IBM DB2 ODBC DRIVER};Database=myDbName;hostname=myServerName; port=myPortNum;protocol=TCPIP; uid=myUserName; pwd=myPwd”&lt;br /&gt;&lt;br /&gt;8.Sybase&lt;br /&gt;ODBC Standard Sybase System 12 Enterprise Open Client: “Driver={SYBASE ASE ODBC Driver};Srvr=Aron1;Uid=username;Pwd=password” Standard Sybase System 12.5 Enterprise Open Client: “Driver={SYBASE ASE ODBC Driver};NA=HOSTNAME,PORT_NUMBER; UID=username;PWD=password” Standard Sybase System 11: “Driver={SYBASE SYSTEM 11};Srvr=Aron1;Uid=username;Pwd=password;Database=mydb” For more information check out the Adaptive Server Enterprise Document Sets Intersolv 3.10: “Driver={INTERSOLV 3.10 32-BIT Sybase};Srvr=Aron1;Uid=username;Pwd=password;” Sybase SQL Anywhere (former Watcom SQL ODBC driver): “ODBC; Driver=Sybase SQL Anywhere 5.0; DefaultDir=c:\dbfolder\;Dbf=c:\mydatabase.db; Uid=username;Pwd=password;Dsn=”&quot;”&quot;” Note! The two double quota (”&quot;) following the DSN parameter at the end are escaped quotas (VB syntax), you may have to change this to your language specific escape syntax (\”) or maybe single quota (’). The empty DSN parameter is indeed critical as not including it will result in error 7778. OLE DB Adaptive Server Anywhere (ASA): “Provider=ASAProv;Data source=myASA” Read more in the ASA User Guide (part 1, chapter 2) &gt;&gt; Adaptive Server Enterprise (ASE) with Data Source .IDS file: “Provider=Sybase ASE OLE DB Provider; Data source=myASE” Note that you must create a Data Source .IDS file using the Sybase Data Advministrator. These .IDS files resemble ODBC DSNs.&lt;br /&gt;Adaptive Server Enterprise (ASE): “Provider=Sybase.ASEOLEDBProvider;Srvr=myASEserver,5000; Catalog=myDBname;User Id=username;Password=password” - some reports on problem using the above one, try the following as an alternative - “Provider=Sybase.ASEOLEDBProvider; Server Name=myASEserver,5000;Initial Catalog=myDBname; User Id=username;Password=password” This one works only from Open Client 12.5 where the server port number feature works, allowing fully qualified connection strings to be used without defining any .IDS Data Source files.&lt;br /&gt;AseConnection (.NET) Standard: “Data Source=’myASEserver’;Port=5000;Database=’myDBname’; UID=’username’;PWD=’password’;” Declare the AseConnection: C#: using Sybase.Data.AseClient; AseConnection oCon = new AseConnection(); oCon.ConnectionString=”my connection string”; oCon.Open(); VB.NET: Imports System.Data.AseClientDim oCon As AseConnection = New AseConnection()oCon.ConnectionString=”my connection string”oCon.Open()&lt;br /&gt;&lt;br /&gt;9.Informix&lt;br /&gt;ODBC Informix 3.30: “Dsn=”;Driver={INFORMIX 3.30 32 BIT};Host=hostname; Server=myserver;Service=service-name;Protocol=olsoctcp; Database=mydb;UID=username;PWD=myPwd Informix-CLI 2.5: “Driver={Informix-CLI 2.5 (32 Bit)};Server=myserver; Database=mydb;Uid=username;Pwd=myPwd”&lt;br /&gt;OLE DB IBM Informix OLE DB Provider: “Provider=Ifxoledbc.2;password=myPw;User ID=myUser;Data Source=dbName@serverName; Persist Security Info=true”&lt;br /&gt;&lt;br /&gt;10. Ingres&lt;br /&gt;ODBC DSN-less: “Provider=MSDASQL.1;DRIVER=Ingres;SRVR=xxxxx; DB=xxxxx;Persist Security Info=False;uid=xxxx; pwd=xxxxx;SELECTLOOPS=N; Extended Properties=”&quot;SERVER=xxxxx; DATABASE=xxxxx;SERVERTYPE=INGRES”&quot;” Important note! The two double quota (”&quot;) in the string are escaped quotas (VB syntax), you may have to change this to your language specific escape syntax (ex. \”) or maybe single quota (’).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;11. Mimer SQL&lt;br /&gt;ODBC Standard Security: “Driver={MIMER};Database=mydb;Uid=myuser;Pwd=mypw;” Prompt for username and password: “Driver={MIMER};Database=mydb;”&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;12. Lightbase&lt;br /&gt;Standard Standard: “user=USERLOGIN;password=PASSWORD;UDB=USERBASE; server=SERVERNAME”&lt;br /&gt;&lt;br /&gt;13.PostgreSQL&lt;br /&gt;Core Labs PostgreSQLDirect (.NET) Standard: “User ID=root; Password=pwd; Host=localhost; Port=5432; Database=testdb;Pooling=true; Min Pool Size=0; Max Pool Size=100; Connection Lifetime=0″ Read more at Core Lab and the product page.&lt;br /&gt;PostgreSQL driver Standard: “DRIVER={PostgreSQL};SERVER=ipaddress;port=5432; DATABASE=dbname;UID=username;PWD=password;”&lt;br /&gt;Npgsql by pgFoundry (.NET) SSL activated: “Server=127.0.0.1;Port=5432;Userid=myuserid; password=mypw;Protocol=3;SSL=true; Pooling=true;MinPoolSize=3;MaxPoolSize=20; Encoding=UNICODE;Timeout=20;SslMode=Require” Without SSL: “Server=127.0.0.1;Port=5432;Userid=myuserid; password=mypw; Protocol=3;SSL=false; Pooling=true;MinPoolSize=1;MaxPoolSize=20; Encoding=UNICODE;Timeout=15;SslMode=Disable”&lt;br /&gt;&lt;br /&gt;14. Paradox&lt;br /&gt;ODBC 5.X: Driver={Microsoft Paradox Driver (*.db )};DriverID=538;Fil=Paradox 5.X;DefaultDir=c:\pathToDb\;Dbq=c:\pathToDb\; CollatingSequence=ASCII” 7.X: “Provider=MSDASQL.1;Persist Security Info=False;Mode=Read;Extended Properties=’DSN=Paradox;DBQ=C:\myDb; DefaultDir=C:\myDb;DriverId=538;FIL=Paradox 7.X; MaxBufferSize=2048;PageTimeout=600;’;Initial Catalog=C:\myDb”&lt;br /&gt;OleDbConnection (.NET) Standard “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\myDb; Extended Properties=Paradox 5.x;”&lt;br /&gt;&lt;br /&gt;15. DSN&lt;br /&gt;ODBC DSN: “DSN=myDsn;Uid=username;Pwd=;” File DSN: “FILEDSN=c:\myData.dsn;Uid=username;Pwd=;”&lt;br /&gt;&lt;br /&gt;16. Firebird&lt;br /&gt;ODBC - IBPhoenix Open Source Standard: “DRIVER=Firebird/InterBase(r) driver;UID=SYSDBA; PWD=masterkey; DBNAME=D:\FIREBIRD\examples\TEST.FDB” IBPhoenix ODBC; More info, download etc &gt;&gt;&lt;br /&gt;.NET - Firebird .Net Data Provider Standard: “User=SYSDBA;Password=masterkey; Database=SampleDatabase.fdb; DataSource=localhost; Port=3050;Dialect=3;Charset=NONE;Role=; Connection lifetime=15;Pooling=true;MinPoolSize=0; MaxPoolSize=50;Packet Size=8192;ServerType=0″&lt;br /&gt;&lt;br /&gt;17. Excel&lt;br /&gt;ODBC Standard: “Driver={Microsoft Excel Driver (*.xls)};DriverId=790; Dbq=C:\MyExcel.xls;DefaultDir=c:\mypath;” TIP! SQL syntax: “SELECT * FROM [sheet1$]” - i.e. worksheet name followed by a “$” and wrapped in “[” “]” brackets.&lt;br /&gt;OLE DB Standard: “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyExcel.xls;Extended Properties=”&quot;Excel 8.0;HDR=Yes;IMEX=1″”&quot; “HDR=Yes;” indicates that the first row contains columnnames, not data “IMEX=1;” tells the driver to always read “intermixed” data columns as text. Note that this option might affect excel sheet write access negative. TIP! SQL syntax: “SELECT * FROM [sheet1$]” - i.e. worksheet name followed by a “$” and wrapped in “[” “]” brackets. TIP! Check out the [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Excel] located registry REG_DWORD “TypeGuessRows”. That’s the key to n ot letting Excel use only the first 8 rows to guess the columns data type. Set this value to 0 to scan all rows. This might hurt performance. Important note! The two double quota (”&quot;) in the string are escaped quotas (VB syntax), you may have to change this to your language specific escape syntax (ex. \”) or maybe single quota (’).&lt;br /&gt;&lt;br /&gt;18. Text&lt;br /&gt;ODBC Standard: “Driver={Microsoft Text Driver (*.txt; *.csv)}; Dbq=c:\txtFilesFolder\;Extensions=asc,csv,tab,txt;”&lt;br /&gt;OLE DB Standard: “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\txtFilesFolder\;Extended Properties=”&quot;text;HDR=Yes;FMT=Delimited”&quot;” “HDR=Yes;” indicates that the first row contains columnnames, not data Important note! The two double quota (”&quot;) in the string are escaped quotas (VB syntax), you may have to change this to your language specific escape syntax (ex. \”) or maybe single quota (’).&lt;br /&gt;&lt;br /&gt;19. DBF / FoxPro&lt;br /&gt;ODBC standard: “Driver={Microsoft dBASE Driver (*.dbf)};DriverID=277;Dbq=c:\mydbpath;”&lt;br /&gt;OLE DB, OleDbConnection (.NET) standard: “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\folder; Extended Properties=dBASE IV;User ID=Admin;Password=”&lt;br /&gt;&lt;br /&gt;20. AS/400 (iSeries)&lt;br /&gt;OLE DB, OleDbConnection (.NET) IBM Client Access OLE DB provider: “PROVIDER=IBMDA400; DATA SOURCE=MY_SYSTEM_NAME; USER ID=myUserName;PASSWORD=myPwd” Where MY_SYSTEM_NAME is the name given to the system connection in OperationsNavigator IBM Client Access OLE DB provider: “PROVIDER=IBMDA400; DATA SOURCE=MY_SYSTEM_NAME;USER ID=myUserName;PASSWORD=myPwd;DEFAULT COLLECTION=MY_LIBRARY;” Where MY_SYSTEM_NAME is the name given to the System Connection, and MY_LIBRARY is the name given to the library in iSeries Navigator.&lt;br /&gt;ODBC IBM Client Access ODBC driver: “Driver={Client Access ODBC Driver (32-bit)};System=my_system_name; Uid=myUserName;Pwd=myPwd”&lt;br /&gt;&lt;br /&gt;21. Exchange&lt;br /&gt;OLE DB Exchange OLE DB provider: “ExOLEDB.DataSource” Specify store in the connection open command like this: conn.open http://servername/mypublicstore&lt;br /&gt;&lt;br /&gt;22. Visual FoxPro&lt;br /&gt;OLE DB, OleDbConnection (.NET) Database container (.DBC): “Provider=vfpoledb.1;Data Source=C:\MyDbFolder\MyDbContainer.dbc; Collating Sequence=machine” Free table directory: “Provider=vfpoledb.1;Data Source=C:\MyDataDirectory\;Collating Sequence=general” Force the provider to use an ODBC DSN: “Provider=vfpoledb.1;DSN=MyDSN” Read more (Microsoft msdn) &gt;&gt;&lt;br /&gt;ODBC Database container (.DBC): “Driver={Microsoft Visual FoxPro Driver};SourceType=DBC; SourceDB=c:\myvfpdb.dbc;Exclusive=No; NULL=NO; Collate=Machine;BACKGROUNDFETCH=NO;DELETED=NO” Free Table directory: “Driver={Microsoft Visual FoxPro Driver}; SourceType=DBF;SourceDB=c:\myvfpdbfolder;Exclusive=No; Collate=Machine; NULL=NO; DELETED=NO;BACKGROUNDFETCH=NO” “Collate=Machine” is the default setting, for other settings check the list of supported collating sequences &gt;&gt; Microsoft Visual Foxpro site: http://msdn.microsoft.com/vfoxpro&lt;br /&gt;&lt;br /&gt;23 Pervasive&lt;br /&gt;ODBC Standard: “Driver={Pervasive ODBC Client Interface};ServerName=srvname;dbq=@dbname” Pervasive ODBC info &gt;&gt;&lt;br /&gt;OLE DB Standard: “Provider=PervasiveOLEDB;Data Source=C:\path”&lt;br /&gt;&lt;br /&gt;24. UDL&lt;br /&gt;UDL UDL: “File Name=c:\myDataLink.udl;”&lt;br /&gt;------------------------</description><link>http://adivb.blogspot.com/2007/10/kind-of-vb-ado-connection-string-for.html</link><author>noreply@blogger.com (adi_vb)</author><thr:total>0</thr:total></item></channel></rss>