<?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/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Accessing MS Access 2007 on NetBeans 6.5 using JDBC, Part 3: Create a Connection</title> <atom:link href="http://www.linglom.com/2009/08/31/accessing-ms-access-2007-on-netbeans-6-5-using-jdbc-part-3-create-a-connection/feed/" rel="self" type="application/rss+xml" /><link>http://www.linglom.com/2009/08/31/accessing-ms-access-2007-on-netbeans-6-5-using-jdbc-part-3-create-a-connection/</link> <description>Source of IT knowledge</description> <lastBuildDate>Thu, 09 Feb 2012 17:22:01 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: enis</title><link>http://www.linglom.com/2009/08/31/accessing-ms-access-2007-on-netbeans-6-5-using-jdbc-part-3-create-a-connection/comment-page-1/#comment-9996</link> <dc:creator>enis</dc:creator> <pubDate>Sat, 26 Nov 2011 14:33:52 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/?p=1029#comment-9996</guid> <description>Hi sir i followed the step to connect but i get this error below when i run the file.Can you please guide me how to solve this..
[Microsoft][Pilote ODBC Microsoft Access]Erreur g?n?rale Impossible d&#039;ouvrir la cl? de Registre ??Temporary (volatile) Ace DSN for process 0x1470 Thread 0x1720 DBC 0x4566fc4
thx</description> <content:encoded><![CDATA[<p>Hi sir i followed the step to connect but i get this error below when i run the file.Can you please guide me how to solve this..<br
/> [Microsoft][Pilote ODBC Microsoft Access]Erreur g?n?rale Impossible d&#8217;ouvrir la cl? de Registre ??Temporary (volatile) Ace DSN for process 0&#215;1470 Thread 0&#215;1720 DBC 0x4566fc4<br
/> thx</p> ]]></content:encoded> </item> <item><title>By: PrithviRaj</title><link>http://www.linglom.com/2009/08/31/accessing-ms-access-2007-on-netbeans-6-5-using-jdbc-part-3-create-a-connection/comment-page-1/#comment-8938</link> <dc:creator>PrithviRaj</dc:creator> <pubDate>Fri, 20 May 2011 17:23:02 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/?p=1029#comment-8938</guid> <description>Hi
I think your JDBC-ODBC from control Panel (Administrative tools) is not rightly arranged.
at first check this</description> <content:encoded><![CDATA[<p>Hi<br
/> I think your JDBC-ODBC from control Panel (Administrative tools) is not rightly arranged.<br
/> at first check this</p> ]]></content:encoded> </item> <item><title>By: mm</title><link>http://www.linglom.com/2009/08/31/accessing-ms-access-2007-on-netbeans-6-5-using-jdbc-part-3-create-a-connection/comment-page-1/#comment-8937</link> <dc:creator>mm</dc:creator> <pubDate>Fri, 20 May 2011 15:26:29 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/?p=1029#comment-8937</guid> <description>can you help me please
error:
SQL Exception: java.sql.SQLException: [Microsoft][?????? ????? ODBC Microsoft Access] ???? ??????? &#039;(??? ?????)&#039;? ????? ??? ????????? ??????.
program  is:
try {
Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);
String url = &quot;jdbc:odbc:Driver={Microsoft Access Driver &quot; +
&quot;(*.mdb, *.accdb)};DBQ=C:\\Database\\Northwind 2007.accdb&quot;;
Connection con = DriverManager.getConnection(url);
System.out.println(&quot;Connected!&quot;);
con.close();
} catch (SQLException e) {
System.out.println(&quot;SQL Exception: &quot;+ e.toString());
} catch (ClassNotFoundException cE) {
System.out.println(&quot;Class Not Found Exception: &quot;+
cE.toString());
}
thank you</description> <content:encoded><![CDATA[<p>can you help me please<br
/> error:<br
/> SQL Exception: java.sql.SQLException: [Microsoft][?????? ????? ODBC Microsoft Access] ???? ??????? &#8216;(??? ?????)&#8217;? ????? ??? ????????? ??????.<br
/> program  is:<br
/> try {<br
/> Class.forName(&#8220;sun.jdbc.odbc.JdbcOdbcDriver&#8221;);<br
/> String url = &#8220;jdbc:odbc:Driver={Microsoft Access Driver &#8221; +<br
/> &#8220;(*.mdb, *.accdb)};DBQ=C:\\Database\\Northwind 2007.accdb&#8221;;<br
/> Connection con = DriverManager.getConnection(url);<br
/> System.out.println(&#8220;Connected!&#8221;);<br
/> con.close();<br
/> } catch (SQLException e) {<br
/> System.out.println(&#8220;SQL Exception: &#8220;+ e.toString());<br
/> } catch (ClassNotFoundException cE) {<br
/> System.out.println(&#8220;Class Not Found Exception: &#8220;+<br
/> cE.toString());<br
/> }<br
/> thank you</p> ]]></content:encoded> </item> <item><title>By: Rose</title><link>http://www.linglom.com/2009/08/31/accessing-ms-access-2007-on-netbeans-6-5-using-jdbc-part-3-create-a-connection/comment-page-1/#comment-8925</link> <dc:creator>Rose</dc:creator> <pubDate>Mon, 09 May 2011 17:53:29 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/?p=1029#comment-8925</guid> <description>Hey, thanks. It worked!! :)
Can u help me with one more thing?
import java.sql.*;
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
try{
Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);
Connection con = DriverManager.getConnection(&quot;jdbc:odbc:bful&quot;);
Statement st=con.createStatement();
String name=&quot;roseindia&quot;;
int age= 17;
int i=st.executeUpdate(&quot;insert into user1 (name1,age)
values(&#039;&quot;+name+&quot;&#039;,&#039;&quot;+age+&quot;&#039;)&quot;);
System.out.println(&quot;Row is added&quot;);
}
catch(Exception e){
System.out.println(e);
}
}
}
OUTPUT:
run:
Row is added
BUILD SUCCESSFUL (total time: 2 seconds)
The problem is am not getting the &quot;added&quot; row in the access database even though the build is &quot;successful&quot;. How do i get to see the row in the databse?
Help plz!
And am using MS Access 2007. Do i have to enable External Data or something in Access? if so, how?</description> <content:encoded><![CDATA[<p>Hey, thanks. It worked!! <img
src='http://cdn.linglom.com/linglom/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br
/> Can u help me with one more thing?</p><p>import java.sql.*;<br
/> public class Main {</p><p>/**<br
/> * @param args the command line arguments<br
/> */<br
/> public static void main(String[] args) {<br
/> try{<br
/> Class.forName(&#8220;sun.jdbc.odbc.JdbcOdbcDriver&#8221;);<br
/> Connection con = DriverManager.getConnection(&#8220;jdbc:odbc:bful&#8221;);<br
/> Statement st=con.createStatement();<br
/> String name=&#8221;roseindia&#8221;;<br
/> int age= 17;<br
/> int i=st.executeUpdate(&#8220;insert into user1 (name1,age)<br
/> values(&#8216;&#8221;+name+&#8221;&#8216;,&#8217;&#8221;+age+&#8221;&#8216;)&#8221;);<br
/> System.out.println(&#8220;Row is added&#8221;);<br
/> }<br
/> catch(Exception e){<br
/> System.out.println(e);<br
/> }</p><p>}</p><p>}</p><p>OUTPUT:</p><p>run:<br
/> Row is added<br
/> BUILD SUCCESSFUL (total time: 2 seconds)</p><p>The problem is am not getting the &#8220;added&#8221; row in the access database even though the build is &#8220;successful&#8221;. How do i get to see the row in the databse?<br
/> Help plz!</p><p>And am using MS Access 2007. Do i have to enable External Data or something in Access? if so, how?</p> ]]></content:encoded> </item> <item><title>By: PrithviRaj</title><link>http://www.linglom.com/2009/08/31/accessing-ms-access-2007-on-netbeans-6-5-using-jdbc-part-3-create-a-connection/comment-page-1/#comment-8922</link> <dc:creator>PrithviRaj</dc:creator> <pubDate>Sun, 08 May 2011 14:31:25 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/?p=1029#comment-8922</guid> <description>Hi Rose
try url as such type
try {
Class.forName(“sun.jdbc.odbc.JdbcOdbcDriver”);
String url = “jdbc:odbc:Driver={Microsoft Access Driver ” +
“(*.mdb, *.accdb)};DBQ=C:\\Database\\Student.accdb”;
Connection con = DriverManager.getConnection(url);
System.out.println(“Connected!”);
con.close();
} catch (SQLException e) {
System.out.println(“SQL Exception: “+ e.toString());
} catch (ClassNotFoundException cE) {
System.out.println(“Class Not Found Exception: “+
cE.toString());
}
try this
hope this will be work
waiting for your reply</description> <content:encoded><![CDATA[<p>Hi Rose<br
/> try url as such type</p><p>try {<br
/> Class.forName(“sun.jdbc.odbc.JdbcOdbcDriver”);<br
/> String url = “jdbc:odbc:Driver={Microsoft Access Driver ” +<br
/> “(*.mdb, *.accdb)};DBQ=C:\\Database\\Student.accdb”;<br
/> Connection con = DriverManager.getConnection(url);<br
/> System.out.println(“Connected!”);<br
/> con.close();<br
/> } catch (SQLException e) {<br
/> System.out.println(“SQL Exception: “+ e.toString());<br
/> } catch (ClassNotFoundException cE) {<br
/> System.out.println(“Class Not Found Exception: “+<br
/> cE.toString());<br
/> }</p><p>try this<br
/> hope this will be work<br
/> waiting for your reply</p> ]]></content:encoded> </item> <item><title>By: PrithviRaj</title><link>http://www.linglom.com/2009/08/31/accessing-ms-access-2007-on-netbeans-6-5-using-jdbc-part-3-create-a-connection/comment-page-1/#comment-8921</link> <dc:creator>PrithviRaj</dc:creator> <pubDate>Sun, 08 May 2011 14:29:20 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/?p=1029#comment-8921</guid> <description>Hi Rose
try url as such type
try {
Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);
String url = &quot;jdbc:odbc:Driver={Microsoft Access Driver &quot; +
&quot;(*.mdb, *.accdb)};DBQ=C:\\Database\\Student.accdb&quot;;
Connection con = DriverManager.getConnection(url);
System.out.println(&quot;Connected!&quot;);
con.close();
try this
hope this will be work
waiting for your reply
} catch (SQLException e) {
System.out.println(&quot;SQL Exception: &quot;+ e.toString());
} catch (ClassNotFoundException cE) {
System.out.println(&quot;Class Not Found Exception: &quot;+
cE.toString());
}</description> <content:encoded><![CDATA[<p>Hi Rose<br
/> try url as such type</p><p>try {<br
/> Class.forName(&#8220;sun.jdbc.odbc.JdbcOdbcDriver&#8221;);<br
/> String url = &#8220;jdbc:odbc:Driver={Microsoft Access Driver &#8221; +<br
/> &#8220;(*.mdb, *.accdb)};DBQ=C:\\Database\\Student.accdb&#8221;;<br
/> Connection con = DriverManager.getConnection(url);<br
/> System.out.println(&#8220;Connected!&#8221;);<br
/> con.close();</p><p>try this<br
/> hope this will be work<br
/> waiting for your reply<br
/> } catch (SQLException e) {<br
/> System.out.println(&#8220;SQL Exception: &#8220;+ e.toString());<br
/> } catch (ClassNotFoundException cE) {<br
/> System.out.println(&#8220;Class Not Found Exception: &#8220;+<br
/> cE.toString());<br
/> }</p> ]]></content:encoded> </item> <item><title>By: Rose</title><link>http://www.linglom.com/2009/08/31/accessing-ms-access-2007-on-netbeans-6-5-using-jdbc-part-3-create-a-connection/comment-page-1/#comment-8920</link> <dc:creator>Rose</dc:creator> <pubDate>Sun, 08 May 2011 11:50:12 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/?p=1029#comment-8920</guid> <description>no, its not showing any result. therere 5 records in the database already.
i cant figure out what the problem is.
i also tried &quot;jdbc:odbc:db1&quot; as url. still not working though the build is successful.
Thanks anyway.</description> <content:encoded><![CDATA[<p>no, its not showing any result. therere 5 records in the database already.<br
/> i cant figure out what the problem is.<br
/> i also tried &#8220;jdbc:odbc:db1&#8243; as url. still not working though the build is successful.<br
/> Thanks anyway.</p> ]]></content:encoded> </item> <item><title>By: PrithviRaj</title><link>http://www.linglom.com/2009/08/31/accessing-ms-access-2007-on-netbeans-6-5-using-jdbc-part-3-create-a-connection/comment-page-1/#comment-8919</link> <dc:creator>PrithviRaj</dc:creator> <pubDate>Sun, 08 May 2011 11:25:43 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/?p=1029#comment-8919</guid> <description>Hi Rose,
at first you put some data on this table then run this query in java..I think It will run</description> <content:encoded><![CDATA[<p>Hi Rose,</p><p>at first you put some data on this table then run this query in java..I think It will run</p> ]]></content:encoded> </item> <item><title>By: Rose</title><link>http://www.linglom.com/2009/08/31/accessing-ms-access-2007-on-netbeans-6-5-using-jdbc-part-3-create-a-connection/comment-page-1/#comment-8918</link> <dc:creator>Rose</dc:creator> <pubDate>Sun, 08 May 2011 10:13:39 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/?p=1029#comment-8918</guid> <description>sorry, i meant i put url as :
String url = “jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=D:\\db1.accdb”
Anything wrong? Do help</description> <content:encoded><![CDATA[<p>sorry, i meant i put url as :<br
/> String url = “jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=D:\\db1.accdb”</p><p>Anything wrong? Do help</p> ]]></content:encoded> </item> <item><title>By: Rose</title><link>http://www.linglom.com/2009/08/31/accessing-ms-access-2007-on-netbeans-6-5-using-jdbc-part-3-create-a-connection/comment-page-1/#comment-8917</link> <dc:creator>Rose</dc:creator> <pubDate>Sun, 08 May 2011 10:08:42 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/?p=1029#comment-8917</guid> <description>Hi,
my code :
import java.sql.*;
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
try {
String url   = &quot;jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=D:\\db1.mdb&quot;;
Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);
Connection con = DriverManager.getConnection(url);
Statement st = con.createStatement();
ResultSet rs = st.executeQuery(&quot;Select * from db1&quot;);
while(rs.next()){
System.out.println(rs.getString(1));
}
}
catch (Exception ex) {  }
}
}
d MS Access database name is db1 and the table name is also db1. it is present in D drive.
The build is coming as &quot;successful&quot; but no resuts is being displayed. Please help. Do i have to save the access file with any particular extension? I also went to:
Control Panel&gt;Administrative Tools&gt;Data Sources(ODBC)&gt;System DSN&gt; Add&gt; Microsoft Access Driver(*.mdb, *.accdb)&gt; Data Source Name: db1&gt; Select- db1.accdb&gt; OK.
Still, no result!
Am i doing something wrong?
Thanks :)</description> <content:encoded><![CDATA[<p>Hi,</p><p>my code :</p><p>import java.sql.*;<br
/> public class Main {</p><p> /**<br
/> * @param args the command line arguments<br
/> */<br
/> public static void main(String[] args) {<br
/> try {<br
/> String url   = &#8220;jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=D:\\db1.mdb&#8221;;<br
/> Class.forName(&#8220;sun.jdbc.odbc.JdbcOdbcDriver&#8221;);<br
/> Connection con = DriverManager.getConnection(url);<br
/> Statement st = con.createStatement();<br
/> ResultSet rs = st.executeQuery(&#8220;Select * from db1&#8243;);<br
/> while(rs.next()){<br
/> System.out.println(rs.getString(1));<br
/> }</p><p> }<br
/> catch (Exception ex) {  }</p><p> }</p><p>}</p><p>d MS Access database name is db1 and the table name is also db1. it is present in D drive.<br
/> The build is coming as &#8220;successful&#8221; but no resuts is being displayed. Please help. Do i have to save the access file with any particular extension? I also went to:<br
/> Control Panel&gt;Administrative Tools&gt;Data Sources(ODBC)&gt;System DSN&gt; Add&gt; Microsoft Access Driver(*.mdb, *.accdb)&gt; Data Source Name: db1&gt; Select- db1.accdb&gt; OK.</p><p>Still, no result!<br
/> Am i doing something wrong?<br
/> Thanks <img
src='http://cdn.linglom.com/linglom/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic
Database Caching 5/21 queries in 0.011 seconds using disk: basic
Content Delivery Network via cdn.linglom.com/linglom

Served from: www.linglom.com @ 2012-02-10 11:26:50 -->
