No sutaible driver error????
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Salman_Siddiqui
Posted On:   Thursday, January 26, 2006 11:21 AM

i dont know y am i getting this error??? i am posting the part of the program here...pls do hv a look n help me out...??? =========================================================== import java.sql.*; import java.io.*; /** * A general-purpose SQL interpreter program. **/ public class ExecuteSQL { public static void main(String[] args) { Connection conn = null; try { String driver = null, user = "", password = ""; if(driver != null) Class.forName ("com.microsoft.jdbc.sqlserver.SQLServerDriver"); conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://COMPUWORLD:1433/COREJAVA", user, pass   More>>

i dont know y am i getting this error???
i am posting the part of the program here...pls do hv a look n help me out...???
===========================================================
import java.sql.*;
import java.io.*;

/**
* A general-purpose SQL interpreter program.
**/
public class ExecuteSQL {
public static void main(String[] args) {
Connection conn = null;
try {
String driver = null, user = "", password = "";

if(driver != null) Class.forName
("com.microsoft.jdbc.sqlserver.SQLServerDriver");

conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://COMPUWORLD:1433/COREJAVA", user, password);
===========================================================

   <<Less

Re: No sutaible driver error????

Posted By:   ankush_purwar  
Posted On:   Thursday, January 26, 2006 01:36 PM

Probably jar contains com.microsoft.jdbc.sqlserver.SQLServerDriver not avalaible in your classpath.
About | Sitemap | Contact