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 677 other followers

Calendar
May 2019
M T W T F S S
« Jan    
 12345
6789101112
13141516171819
20212223242526
2728293031  
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
  • 306,114 hits
IndiBlogger
malliktalksjava.wordpress.c...
70/100