<?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 SQL Server on NetBeans using JDBC, Part I: Create a connection</title> <atom:link href="http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/feed/" rel="self" type="application/rss+xml" /><link>http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-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: Jason</title><link>http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-3/#comment-10074</link> <dc:creator>Jason</dc:creator> <pubDate>Tue, 20 Dec 2011 02:29:50 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-10074</guid> <description>Hi~
Thanks for the tutorial, I got a problem in jdbc connection, the program stuck in
Connection con = DriverManager.getConnection(connectionUrl);
and no error is shown. However, If I changed the login username into a wrong one, error will be shown. what happened? I am using window 7 with sql server 2008.
Can you help me please? Thanks a lot.</description> <content:encoded><![CDATA[<p>Hi~<br
/> Thanks for the tutorial, I got a problem in jdbc connection, the program stuck in</p><p>Connection con = DriverManager.getConnection(connectionUrl);</p><p>and no error is shown. However, If I changed the login username into a wrong one, error will be shown. what happened? I am using window 7 with sql server 2008.</p><p>Can you help me please? Thanks a lot.</p> ]]></content:encoded> </item> <item><title>By: Yahya</title><link>http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-3/#comment-10057</link> <dc:creator>Yahya</dc:creator> <pubDate>Tue, 13 Dec 2011 18:56:56 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-10057</guid> <description>Thanks a lot! I just solved my problem thanks to &quot;Part III: Troubleshooting&quot; :D</description> <content:encoded><![CDATA[<p>Thanks a lot! I just solved my problem thanks to &#8220;Part III: Troubleshooting&#8221; <img
src='http://cdn.linglom.com/linglom/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Yahya</title><link>http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-3/#comment-10056</link> <dc:creator>Yahya</dc:creator> <pubDate>Tue, 13 Dec 2011 18:23:43 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-10056</guid> <description>linglom,
Here is my connection:
Class.forName(&quot;com.microsoft.sqlserver.jdbc.SQLServerDriver&quot;);
String connectionUrl = &quot;jdbc:sqlserver://TOSHIBA;databaseName=ogrenci;&quot;;
Connection con = DriverManager.getConnection(connectionUrl);
jButton1.setText(&quot;tamam&quot;);
} 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());
}
And here is the error:
SQL Exception: com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user &#039;&#039;.
My database has no user and password... I didn&#039;t understand what&#039;s the problem with this codes...
When i use this Url:
String connectionUrl = &quot;jdbc:sqlserver://TOSHIBA;databaseName=ogrenci;integratedSecurity=true;&quot;;
Then NetBeans gives me this error:
com.microsoft.sqlserver.jdbc.AuthenticationJNI
WARNING: Failed to load the sqljdbc_auth.dll
SQL Exception: com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication.
Could please help me urgently? :( Thanks in advance...</description> <content:encoded><![CDATA[<p>linglom,</p><p>Here is my connection:<br
/> Class.forName(&#8220;com.microsoft.sqlserver.jdbc.SQLServerDriver&#8221;);<br
/> String connectionUrl = &#8220;jdbc:sqlserver://TOSHIBA;databaseName=ogrenci;&#8221;;<br
/> Connection con = DriverManager.getConnection(connectionUrl);<br
/> jButton1.setText(&#8220;tamam&#8221;);<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;+ cE.toString());<br
/> }</p><p>And here is the error:<br
/> SQL Exception: com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user &#8221;.</p><p>My database has no user and password&#8230; I didn&#8217;t understand what&#8217;s the problem with this codes&#8230;</p><p>When i use this Url:<br
/> String connectionUrl = &#8220;jdbc:sqlserver://TOSHIBA;databaseName=ogrenci;integratedSecurity=true;&#8221;;</p><p>Then NetBeans gives me this error:<br
/> com.microsoft.sqlserver.jdbc.AuthenticationJNI<br
/> WARNING: Failed to load the sqljdbc_auth.dll<br
/> SQL Exception: com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication.</p><p>Could please help me urgently? <img
src='http://cdn.linglom.com/linglom/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> Thanks in advance&#8230;</p> ]]></content:encoded> </item> <item><title>By: Harish</title><link>http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-3/#comment-10045</link> <dc:creator>Harish</dc:creator> <pubDate>Sat, 10 Dec 2011 06:53:22 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-10045</guid> <description>hay it is successfully worked.but i  got an error in accessdatabase programe that is the mai class will get an error. will please check it ones.
import java.sql.*;
public class AccessDatabases {
public static void main(String[] args) {
try {
Class.forName(&quot;com.mysql.jdbc.Driver&quot;).newInstance();
Connection con = DriverManager.getConnection(
&quot;jdbc:mysql://localhost:3306/test&quot;, &quot;root&quot;, &quot;root&quot;);
Statement st = con.createStatement();
DatabaseMetaData meta = con.getMetaData();
ResultSet rs = meta.getTables(null, null, &quot;%&quot;, null);
String tableNames = &quot;&quot;;
while (rs.next()) {
tableNames = rs.getString(3);
System.out.println(tableNames);
}
} catch (Exception e) {
}
}
}</description> <content:encoded><![CDATA[<p>hay it is successfully worked.but i  got an error in accessdatabase programe that is the mai class will get an error. will please check it ones.<br
/> import java.sql.*;</p><p>public class AccessDatabases {<br
/> public static void main(String[] args) {<br
/> try {<br
/> Class.forName(&#8220;com.mysql.jdbc.Driver&#8221;).newInstance();<br
/> Connection con = DriverManager.getConnection(<br
/> &#8220;jdbc:mysql://localhost:3306/test&#8221;, &#8220;root&#8221;, &#8220;root&#8221;);<br
/> Statement st = con.createStatement();<br
/> DatabaseMetaData meta = con.getMetaData();<br
/> ResultSet rs = meta.getTables(null, null, &#8220;%&#8221;, null);<br
/> String tableNames = &#8220;&#8221;;<br
/> while (rs.next()) {<br
/> tableNames = rs.getString(3);<br
/> System.out.println(tableNames);<br
/> }<br
/> } catch (Exception e) {<br
/> }<br
/> }<br
/> }</p> ]]></content:encoded> </item> <item><title>By: Suyash</title><link>http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-3/#comment-9918</link> <dc:creator>Suyash</dc:creator> <pubDate>Fri, 28 Oct 2011 06:29:07 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-9918</guid> <description>hi,
system config....
windows 7 home prim.. 64bit
jdk 1.7.0
netbean 7.0.1
sql server 2008
now am not able to connect netbean with sql server 2008
plz do help me .....
thank u</description> <content:encoded><![CDATA[<p>hi,<br
/> system config&#8230;.<br
/> windows 7 home prim.. 64bit<br
/> jdk 1.7.0<br
/> netbean 7.0.1<br
/> sql server 2008</p><p>now am not able to connect netbean with sql server 2008</p><p>plz do help me &#8230;..</p><p>thank u</p> ]]></content:encoded> </item> <item><title>By: Nitin</title><link>http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-3/#comment-9243</link> <dc:creator>Nitin</dc:creator> <pubDate>Mon, 22 Aug 2011 14:07:25 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-9243</guid> <description>Hi, Thanks for this tutorial, it is really helpful,
I have some issues on how to retrieve the data from the DB,
here are my specs:
Netbeans 5.5
MS SQL 2005+MS JDBC v4 driver.(successful connection with DB 4m Netbeans)
I have a table with following three fields:
fileType&#124;&#124;fileExtension&#124;&#124;fileHeader,
having values say,
JPEG_Image&#124;&#124;JPG&#124;&#124;FFD8,
now what i want is a query which will actually take the Jfilechooser&#039;s input as the Header (read from file in hex) and then it SHOULD search in the 3 fields for the match of Header in the database, and then if found it should display it in messagebox or Jframe...
how do i use a variable, to:
1&gt;store the value from the JFileChooser-header value to store in this variable
2&gt;how do i construct a query so it will run and display the corresponding records as well.
I have the working code with me, however it is in plain java, no gui.
Can you please help.
Awaiting your reply</description> <content:encoded><![CDATA[<p>Hi, Thanks for this tutorial, it is really helpful,</p><p>I have some issues on how to retrieve the data from the DB,<br
/> here are my specs:<br
/> Netbeans 5.5<br
/> MS SQL 2005+MS JDBC v4 driver.(successful connection with DB 4m Netbeans)</p><p>I have a table with following three fields:<br
/> fileType||fileExtension||fileHeader,<br
/> having values say,<br
/> JPEG_Image||JPG||FFD8,</p><p>now what i want is a query which will actually take the Jfilechooser&#8217;s input as the Header (read from file in hex) and then it SHOULD search in the 3 fields for the match of Header in the database, and then if found it should display it in messagebox or Jframe&#8230;</p><p>how do i use a variable, to:<br
/> 1&gt;store the value from the JFileChooser-header value to store in this variable<br
/> 2&gt;how do i construct a query so it will run and display the corresponding records as well.</p><p>I have the working code with me, however it is in plain java, no gui.</p><p>Can you please help.</p><p>Awaiting your reply</p> ]]></content:encoded> </item> <item><title>By: cencio</title><link>http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-3/#comment-8949</link> <dc:creator>cencio</dc:creator> <pubDate>Thu, 26 May 2011 10:18:31 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-8949</guid> <description>very nice. thanks so much...</description> <content:encoded><![CDATA[<p>very nice. thanks so much&#8230;</p> ]]></content:encoded> </item> <item><title>By: asda110</title><link>http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-3/#comment-8928</link> <dc:creator>asda110</dc:creator> <pubDate>Thu, 12 May 2011 09:42:16 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-8928</guid> <description>Thank you! I really couldn&#039;t find much information about making the connection but you really helped :)</description> <content:encoded><![CDATA[<p>Thank you! I really couldn&#8217;t find much information about making the connection but you really helped <img
src='http://cdn.linglom.com/linglom/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Zaher</title><link>http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-3/#comment-8286</link> <dc:creator>Zaher</dc:creator> <pubDate>Sat, 25 Dec 2010 19:02:15 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-8286</guid> <description>btw im using Microsoft SQL Server Management Studio 2008,my authentication mode is MIXED MODE and i did telnet localhost 1433 and it works fine!</description> <content:encoded><![CDATA[<p>btw im using Microsoft SQL Server Management Studio 2008,my authentication mode is MIXED MODE and i did telnet localhost 1433 and it works fine!</p> ]]></content:encoded> </item> <item><title>By: Zaher</title><link>http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-3/#comment-8285</link> <dc:creator>Zaher</dc:creator> <pubDate>Sat, 25 Dec 2010 18:38:10 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/03/04/accessing-sql-server-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-8285</guid> <description>hi
i used your code to connect but it gave me the following error:
&quot;SQL Exception: com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user &#039;Z\Zaher el-Rody&#039;.&quot;
although i wrote:
String connectionUrl = &quot;jdbc:sqlserver://localhost:1433;&quot; +
&quot;databaseName=Agence_Voyage;user=Z\\Zaher el-Rody;password=;&quot;;</description> <content:encoded><![CDATA[<p>hi<br
/> i used your code to connect but it gave me the following error:<br
/> &#8220;SQL Exception: com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user &#8216;Z\Zaher el-Rody&#8217;.&#8221;<br
/> although i wrote:<br
/> String connectionUrl = &#8220;jdbc:sqlserver://localhost:1433;&#8221; +<br
/> &#8220;databaseName=Agence_Voyage;user=Z\\Zaher el-Rody;password=;&#8221;;</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 8/21 queries in 0.022 seconds using disk: basic
Content Delivery Network via cdn.linglom.com/linglom

Served from: www.linglom.com @ 2012-02-10 11:11:55 -->
