I\'m fairly new to database management. I\'m just trying to connect to the database and retrieve and display a table in the command prompt. The database is not on my computer. I
It means that sqljdbc4.jar is missing from your CLASSPATH while running the code. If you are running this from command line then add the path to sqljdbc4.jar in -cp switch of java command.
If you are running from eclipse, then add sqljdbc4.jar in your build path.