Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8889107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:10:54+00:00 2026-06-14T22:10:54+00:00

String dburl=jdbc:sqlserver://209.18.103.198:1433;CreditDB_V2; //Connecting to Database Class.forName(com.microsoft.sqlserver.jdbc.SQLServerDriver); Connection con=java.sql.DriverManager.getConnection(dburl,700User,cred!tUser); Thread.sleep(20000); if (con!=null) { System.out.println(Database Connected

  • 0
String dburl="jdbc:sqlserver://209.18.103.198:1433;CreditDB_V2";
  //Connecting to Database
 Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
 Connection con=java.sql.DriverManager.getConnection(dburl,"700User","cred!tUser");
 Thread.sleep(20000);
 if (con!=null)
   {
    System.out.println("Database Connected Successfully");
    Statement stmt=con.createStatement();
    ResultSet rss=stmt.executeQuery("update User_LogDetail set LoginTime=(GETDATE()-   
        35), StatusId = 401 where UserId in(select userid from user_detail where UserName 
        in('sahooxml','gopal','psahoo7'))");
 Thread.sleep(30000);
  while (rss.next()) {
    Object dbtime = rss.getString(1);
    System.out.println(dbtime);
   } //end while
 con.close();
 }
 else
  {
    System.out.println("Database Failed to connect");
  }

Error Message:

Exception in thread "main" java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at Login700.LoginTest(Login700.java:26)
    at Login700.main(Login700.java:242)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T22:10:55+00:00Added an answer on June 14, 2026 at 10:10 pm

    The jar file containing “com.microsoft.sqlserver.jdbc.SQLServerDriver” class has to be in your classpath.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

static void firequery(String q) { try { query=q; Class.forName (oracle.jdbc.OracleDriver);/*driver*/ //System.out.println(call); con = DriverManager.getConnection(dbUrl,
String to pull from : http:\/\/c.ypcdn.com\/2\/c\/rtd?vrid=357c99c36bd7ed631eda2e43fc9e30f8&rid=283d465f-f63b-4b0d-90b0-be6c12ed7617&ptid=943aw4l8qj&ypid=11720135&lid=194823099&tl=6&lsrc=SP&dest=http%3A%2F%2FCleanation.com RegEx I have used before: www\..*?\.\w{2,5} However the
string []URL = {www.facebook.com,www.orkut.com,www.yahoo.com}; Int32 result = URL.Length; SetPolicyURL( URL,result ); this is my
My dao class com.myapp.dao.hibernate.XyzDaoImpl is annotated with @Repository @Repository public class UserDaoImpl extends GenericDaoJpa
string strConn = Provider=Microsoft.Ace.OLEDB.12.0;Data Source= + filename + ;Extended Properties=\Excel 12.0 Xml;HDR=Yes;IMEX=1\;; I search
When I try and connect it my mysql database with JDBC in java, it
I'm using NetBeans IDE for connecting with MySQL database and I want to use
How do you preform this type of action using jdbc? String x = (\\.
string a = sea; string b = SEA if (a == b)... How could
String baseString=POST&; String subBaseString = oauth_consumer_key=+oauth_consumer_key+&oauth_nonce=+nonce+&oauth_signature_method=+oauth_signature_method; subBaseString += &oauth_timestamp=+ oauth_timestamp+&oauth_token=+oauth_token+&oauth_version=1.0; baseString += URLEncoder.encode(baseRequest, UTF-8);

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.