NinethSense oWnZ mE!: Praveen’s drawing book

Choose a Topic:

Wed
20
Feb '08

Connect to Microsoft SQL Server from Java

Here is the way you can connect to your Microsoft SQL Server 2005 from your java application via JDBC.

First you need to download the Microsoft SQL Server 2005 JDBC Driver.
You will get sqljdbc.jar which is all you needed. As a java programmer, you know how to use this, right? ;)

You will get a user manual along with this download. Follow the instructions. Or here is a sample code for your quick reference:

 
Class.forName(“com.microsoft.sqlserver.jdbc.SQLServerDriver”);
Connection conn = DriverManager.getConnection(“jdbc:sqlserver://servername\SQLEXPRESSinstance;database=yourdatabase;user=your username”);
Statement stmt = conn.createStatement();
		
String qry = “SELECT * FROM yourtable”;
ResultSet rs = stmt.executeQuery(qry);
 
while (rs.next()) {
    // code;
}
Tue
22
May '07

Choosing the right programming language

My students used to ask me “which programming language is the best?” and “which programming language I must learn?”. But the truth is – one cannot give an accurate answer for this. If somebody answers to this question simply - like C++ or Java, I will say he is a frog living inside a well. He may be giving this answer from his experience and knowledge, which is very less.


Check my latest article at : http://ninethsense.com/content/view/51/55/
Tue
10
Oct '06

My first JSP program

I installed Apache Tomcat and put a file with the following code in its root foler

< %
	int a = 10;
	int b = 10;
	int c = a + b;
	
	out.println("Sum = " + c);

%>
Got result “Sum = 20 ” without any error :-D


So my FIRST JSP PROGRAM worked fine!!!
Mon
31
Jul '06

Hello World - Python application for Windows with Tk.

 
from Tkinter import *
root = Tk()
w=Button(root,text=“Pooooooi!”)
w.pack()
root.mainloop()
Wed
4
Jan '06

.NET on Linux ???

Yes!!!
Mono
Mono Logo
What is Mono? Mono provides the necessary software to develop and run .NET client and server applications on Linux, Solaris, Mac OS X, Windows, and Unix. Sponsored by Novell, the Mono open source project has an active and enthusiastic contributing community and is positioned to become the leading choice for development of Linux applications. Project Home Page: http://www.mono-project.com/
The CodeProject Microsoft Developer Network Official ASP.NET Forums Microsoft .NET Framework Community Microsoft Most Valuable Professional Kidoos forums Microsoft Visual Studio Developer Home Professional Information Technology Solutions Microsoft Research Home Trivandrum Microsoft Users Group Community Website