<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Import Excel File into Oracle Db</title>
	<atom:link href="http://www.dbuggr.com/yukimash/import-excel-file-oracle-db/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dbuggr.com/yukimash/import-excel-file-oracle-db/</link>
	<description>Share Knowledge &#38; Be Rewarded</description>
	<lastBuildDate>Fri, 03 Feb 2012 23:13:48 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: BoLaFish</title>
		<link>http://www.dbuggr.com/yukimash/import-excel-file-oracle-db/comment-page-1/#comment-1178</link>
		<dc:creator>BoLaFish</dc:creator>
		<pubDate>Tue, 29 Dec 2009 23:58:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.dbuggr.com/yukimash/import-excel-file-oracle-db/#comment-1178</guid>
		<description>=================================================================
Sub OpenDb()
    Dim wrkODBC As Workspace
    Dim dbsOracle As Database
    Dim strpubmst As String
    Dim rstYourTable As Recordset
    On Error GoTo close_connection
   

    Set wrkODBC = CreateWorkspace(&quot;ODBCWorkspace&quot;, &quot;system&quot;, &quot;&quot;, dbUseODBC)
    Set dbsOracle = wrkODBC.OpenConnection(&quot;YOUR_DATABASE_SID&quot;, dbDriverComplete, True, &quot;ODBC;DSN=;UID=YOUR_USER_ID;PWD=YOUR_PASSWORD;&quot;)
   
    strpubmst = &quot;Select * from YOUR_USER.YOUR_TABLE &quot;

    &#039; Set rstYourTable = dbsOracle.OpenRecordset(strpubmst, dbOpenDynaset, dbSQLPassThrough, dbOptimistic)
    Set rstYourTable = dbsOracle.OpenRecordset(strpubmst, dbOpenDynaset)
    MsgBox &quot;sucess &quot; &amp; rstYourTable.RecordCount
    With rstYourTable
        rw = 1
        cl = 1
        .MoveFirst
        Do While Not rstYourTable.EOF
            Cells(rw, cl).Value     = !t1_code
            Cells(rw, cl + 1).Value = !t1_name
            Cells(rw, cl + 2).Value = !t1_short_name
            Cells(rw, cl + 3).Value = !t1_type
            Cells(rw, cl + 4).Value = !t1_no_prts
            rw = rw + 1
            .MoveNext
        Loop
    End With
   
close_connection:
    dbsOracle.Close
    wrkODBC.Close
   
End Sub</description>
		<content:encoded><![CDATA[<p>=================================================================<br />
Sub OpenDb()<br />
    Dim wrkODBC As Workspace<br />
    Dim dbsOracle As Database<br />
    Dim strpubmst As String<br />
    Dim rstYourTable As Recordset<br />
    On Error GoTo close_connection</p>
<p>    Set wrkODBC = CreateWorkspace(&#8221;ODBCWorkspace&#8221;, &#8220;system&#8221;, &#8220;&#8221;, dbUseODBC)<br />
    Set dbsOracle = wrkODBC.OpenConnection(&#8221;YOUR_DATABASE_SID&#8221;, dbDriverComplete, True, &#8220;ODBC;DSN=;UID=YOUR_USER_ID;PWD=YOUR_PASSWORD;&#8221;)</p>
<p>    strpubmst = &#8220;Select * from YOUR_USER.YOUR_TABLE &#8221;</p>
<p>    &#8216; Set rstYourTable = dbsOracle.OpenRecordset(strpubmst, dbOpenDynaset, dbSQLPassThrough, dbOptimistic)<br />
    Set rstYourTable = dbsOracle.OpenRecordset(strpubmst, dbOpenDynaset)<br />
    MsgBox &#8220;sucess &#8221; &amp; rstYourTable.RecordCount<br />
    With rstYourTable<br />
        rw = 1<br />
        cl = 1<br />
        .MoveFirst<br />
        Do While Not rstYourTable.EOF<br />
            Cells(rw, cl).Value     = !t1_code<br />
            Cells(rw, cl + 1).Value = !t1_name<br />
            Cells(rw, cl + 2).Value = !t1_short_name<br />
            Cells(rw, cl + 3).Value = !t1_type<br />
            Cells(rw, cl + 4).Value = !t1_no_prts<br />
            rw = rw + 1<br />
            .MoveNext<br />
        Loop<br />
    End With</p>
<p>close_connection:<br />
    dbsOracle.Close<br />
    wrkODBC.Close</p>
<p>End Sub</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
