Blog Archives

JDBC Type Driver connection for MS SQL Server


Below is the sample program to connect to MS SQL Sever using JDBC type 4 driver: package in.javatutorials; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; /** * @author JavaTutorials.in * */ public class MSSqlDBConnection { /** * initialize the connection object

Tagged with: , , , , ,
Posted in JDBC

Connecting SQL Server using Java


package com.javatutorials; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class SqlServerConnection {     public static Connection connection = null;     public static Connection getDbConnection() {         try {             Class.forName(“sun.jdbc.odbc.JdbcOdbcDriver”);             connection = DriverManager    

Tagged with: ,
Posted in JDBC

What is the difference between callable statements, prepare statements , createstatements?


callable statements: callable statements are used to retrieve the stored procedures from the database. ie., these statements are used when two or more sql statements are retrived over and over. prepare statement: theser are precompiled statements which are stored in

Posted in JDBC

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 678 other followers

Calendar
September 2018
M T W T F S S
« Mar    
 12
3456789
10111213141516
17181920212223
24252627282930
Mallikarjun Gunda

This is Mallikarjun Gunda, I am working as a software professional. Blogging is my Passion. This blog contains the posts on Java related technologies and programming languages. I am happy to share my knowledge through the blogs.

Blog Stats
  • 276,390 hits
IndiBlogger
malliktalksjava.wordpress.c...
70/100