Anyone know what error does it mean?

C:\jdk1.3.1\bin>java fetchFromDBtest
SQLException java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Serv
er]Line 1: Incorrect syntax near 'Pname'.
====================================
// Connect to the database
try{
DBConn = DriverManager.getConnection("jdbc:odbc:mcse","sa","storm");          
// Shut off auto-commit
//DBConn.setAutoCommit(false);
}catch(SQLException se){
System.out.println("SQLException" + se);
query = "SELECT * FROM Campaign WHERE Pname ";

import java.sql.*;
import java.applet.*;
import javax.swing.*;
public class fetchFromDBtest extends JFrame
public fetchFromDBtest()
QuestionDatabase();
public void QuestionDatabase()
Statement stmt; // SQL statement
String query; // SQL select
ResultSet rs; // SQL query results
boolean more = false; // "more
Connection DBConn=null;
// ODBC data source name
//String dsn = "jdbc:odbc:mcse",sa,storm;
String val=" " ;
JFrame f=new JFrame();
f.setTitle("test");
f.setBounds(100,100,400,400);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JTextArea ta=new JTextArea();
ta.setBounds(110,110,100,50);
try{
Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
}catch(ClassNotFoundException ee) {
ee.printStackTrace();
// Connect to the database
try{
DBConn = DriverManager.getConnection("jdbc:odbc:mcse","sa","storm");          
// Shut off auto-commit
//DBConn.setAutoCommit(false);
}catch(SQLException se){
System.out.println("SQLException" + se);
query = "SELECT * FROM Campaign"+" WHERE index"+"'";
try{
stmt = DBConn.createStatement();
rs = stmt.executeQuery(query);
// Check to see if any rows were read
more = rs.next();
if (!more) {
System.out.println("No rows found.");
return;
// Loop through the rows retrieved from
int loop = 0;
loop:
while (more) {
loop++;
val= rs.getString("questions");
more = rs.next();
if (!more) {
break loop;
ta.setText(val); //only the last record will be set as text
ta.setVisible(true);
f.getContentPane().add(ta);
f.setVisible(true);
rs.close();
stmt.close();
}catch (SQLException se){
System.out.println("SQLException " + se);
public static void main(String args[])
fetchFromDBtest fetch=new fetchFromDBtest();
This is my coding .. can anyone tell me where the sql query mistake i make
From is the table rite then where is the column rite,?any mistake

Similar Messages

  • Does anyone know what error code -8065 means?

    Does anyone know what error code -8065 means?

    It usually means the iPhone was hacked, with "jailbroken" being the cutsie term for that.
    http://support.apple.com/kb/TS3694#error1015
    Error 1015: This error is typically caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you are now trying to restore to an authorized, default state.

  • TS3694 Does anyone know what error message 6 means?   No detailed explanation of 6 on this page.  Got that msg when trying to update iPhone (4S) OS software.

    Does anyone know what error message 6 means?   No detailed explanation of 6 on this page.  Got that msg when trying to update iPhone (4S) OS software.

    http://support.apple.com/kb/ts3694#error6
    Errors related to third-party security software
    Error 2, 4 (or -4), 6, 1000, 9006
    Follow the steps to troubleshoot security software. Often, uninstalling third-party security software will resolve these errors.
    There may be third-party software that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your registry. An incorrectly set default packet size can cause these errors. Contact the manufacturer of the software that installed the packet size modification for assistance or follow this article by Microsoft: How to reset Internet Protocol (TCP/IP).
    Verify that access to ports 80 and 443 are allowed on your network.
    Verify that communication to albert.apple.com or phobos.apple.com isn't blocked by a firewall or other Internet security setting.
    Discard the .ipsw file, open iTunes and attempt to download the update again. See the steps under "Advanced steps > Rename, move, or delete the iOS software file (.ipsw)" below for file locations.
    Restore your device while connected to a different network.
    Restore using a different computer.

  • TS3694 Does anyone know what error code 1015 means?

    Does anyone know what error code 1015 means?

    It usually means the iPhone was hacked, with "jailbroken" being the cutsie term for that.
    http://support.apple.com/kb/TS3694#error1015
    Error 1015: This error is typically caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you are now trying to restore to an authorized, default state.

  • Anyone know what error message 4201 means?

    I try to burn a audio CD from iTunes using my internal and external drive and i get an error message both times with the CD popping out partially written. The error message i get when trying to burn to my external drive is, "The attempt to burn a disk failed. An unknown error occurred (2401)." Does anyone know what this means? Or how to fix this problem? Any suggestions would be greatly appreciated! Thanks.

    http://support.apple.com/kb/ts3694#error6
    Errors related to third-party security software
    Error 2, 4 (or -4), 6, 1000, 9006
    Follow the steps to troubleshoot security software. Often, uninstalling third-party security software will resolve these errors.
    There may be third-party software that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your registry. An incorrectly set default packet size can cause these errors. Contact the manufacturer of the software that installed the packet size modification for assistance or follow this article by Microsoft: How to reset Internet Protocol (TCP/IP).
    Verify that access to ports 80 and 443 are allowed on your network.
    Verify that communication to albert.apple.com or phobos.apple.com isn't blocked by a firewall or other Internet security setting.
    Discard the .ipsw file, open iTunes and attempt to download the update again. See the steps under "Advanced steps > Rename, move, or delete the iOS software file (.ipsw)" below for file locations.
    Restore your device while connected to a different network.
    Restore using a different computer.

  • Does anyone know what error code 2969T means?

    I replaced the LCD on an iPod 2.
    Now I have the # 2669T on every screen.
    Know what that means?

    It usually means the iPhone was hacked, with "jailbroken" being the cutsie term for that.
    http://support.apple.com/kb/TS3694#error1015
    Error 1015: This error is typically caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you are now trying to restore to an authorized, default state.

  • Does anyone know what Error: 5 mean when trying to open up InDesign CS4

    Does anyone know what Error: 5 mean when trying to open up InDesign CS4?

    Opening the program, or opening a file?

  • TS1424 Does anyone know what Error = 408 means? I can't complete the download of an album because of it! Tells me the server timed out. How do I fix it?

    Does anyone know what Error = 408 means? I can't complete the download of an album because of it! Tells me the server timed out. How do I fix it?

    IPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    Please Get the iPod Touch User Manual for iOS 5

  • HT1222 Does anyone know what error 1013 is on an I Phone? is there a fix?

    Does anyone know what error 1013 is on an I Phone? is there a fix?

    Error 1004 and 1013: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors:
    Check security software. Ensure that communication to gs.apple.com is allowed. Follow this article for assistance with security software. iTunes for Windows: Troubleshooting security software issues.
    Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. Follow iTunes: Advanced iTunes Store troubleshooting to edit the hosts file or revert to default on Windows. See section "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information".
    Try to restore from another known-good computer and network.
    If the errors persist on another computer, the device may need service.

  • Does anyone know what error 6179 is?  It's coming up over my mail icon and I can't send or receive mail.  My OS is Yosemite

    Does anyone know what error 6179 is?  It's coming up over my mail icon and I can't send or receive mail.  My OS is Yosemite

    Mail troubleshooting - Yosemite
    Mail (Yosemite): If you can’t receive messages
    Mail (Yosemite): If you can’t send messages

  • Does anyone know what oexfen does?

    Hi,
    I have a question that's curiosity driven. I was doing some security work and put a sniffer on our network and found references to Oracle OEXFEN oci calls. There are only three references to OEXFEN if you do a google or YAHOO search and they are a sniffer dump and a comment in an oci7 and an oci8 header file, ocidef.h. I've done a bunch of other checks - oracle doc search, user groups - but have not found any references to OEXFEN.
    Does anyone know what OEXFEN does? Is this a form of OEXFET or OEXN? Is it an old version of OEXFET that prefetches multiple rows and is now obsoleted? Is this pre-oracle 7?
    Thanks in advance.
    Toni

    It is a v6 OCI call if memory serves...I can't find the v6 manual either :) It is probably hanging around in v7 and early v8 headers as well. The clouds are thick over what I remember of v6 OCI, but it is probably a variation of what became OFEN or OEXFET.

  • Does anyone know what diagnostic log 0601 means?

    Does anyone know what let diagnostic log 0601 means?

    Hi mu2denny, welcome to the HP Forums. What is the model or product number? What version of Windows is installed?
    Guide to finding your product number
    Which Windows operating system am I running?
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • I have 2 airport express base stations that I am trying to use to extend my wifi. I have windows 7 and downloaded the airport utility but it wont pick up my airport express. Does anyone know what im doing wrong and how to get them to work?

    I have 2 Airport Base stations that I am trying to use to extend my WiFi but I cant get them to work. I downloade Airport Utility to windows 7 and it doesnt recognize any devices. I have them plugged in and they have a solid yellow light. Does anyone know what I need to do to get them to work. Your help would be appreciated.

    Thanks for providing the model information.
    I would recommend that you start by performing a "factory default" reset on all of your AirPort base stations. Once completed power them all down. While powered-down, temporarily connect both Express base stations to an open LAN port on the Extreme using separate Ethernet cables.
    Once connected, power up the Extreme; wait five minutes, and then, power up each of the Express base stations. Which you power-up first doesn't matter.
    Now start up the AirPort Utility on the PC. It should now "see" all three base stations. If so, go ahead and configure your extended network.
    Please post back your results.

  • Anyone know what this system stat means cell physical IO interconnect bytes

    Hi All.
    I can't find any documentation about "cell physical IO interconnect bytes" system stat - does anyone know what it signifies ?
    Thanks
    Dave
    Class Name Value
    64 cell physical IO interconnect bytes 1.160476804096E12
    1 session logical reads 1.4572587197E10
    8 free buffer requested 1.800353E8
    1 CPU used by this session 1.8441013E7
    8 hot buffers moved to head of LRU 9597137
    8 physical write total IO requests 5319164
    2 redo ordering marks 5082070
    128 background timeouts 2907194
    128 messages received 1752295
    128 messages sent 1752246

      1* select name, value from gv$sysstat where name like '%physical IO%'
    SQL> /
    NAME                                              VALUE
    cell physical IO interconnect bytes                      983887872
    cell physical IO bytes saved during optimized file creation            0
    cell physical IO bytes saved during optimized RMAN file restore        0
    cell physical IO bytes eligible for predicate offload                 0
    cell physical IO bytes saved by storage index                      0
    cell physical IO interconnect bytes returned by smart scan            0
    cell simulated physical IO bytes eligible for predicate offload        0
    cell simulated physical IO bytes returned by predicate offload            0
    8 rows selected.
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE     11.2.0.1.0     Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production

  • Does anyone know what error = -50 means?

    I hacve series passes for a few tv programmes and this last two attempts at downloading new episodes has failed with the message error = -50, any ideas???

    err = -50 when downloading from store - https://discussions.apple.com/thread/3697501 - delete incomplete downloads from downloads folder as per http://support.apple.com/kb/TS3297
    iTunes Store: "Error (-50)" when downloading purchased content - http://support.apple.com/kb/TS1583

Maybe you are looking for

  • Change output of abap logical database report

    Hello I have an abap report that is using a logical database to display some fields.My problem is that i have to change it and display more fields for output ,how can i control this? Thank you

  • Report in Navigator

    Hi, What is the purpose of "*Report*" in object Navigator ? thanks in advance

  • New RAM - is it worth it?

    I have a MacBook Pro, 2.53ghz, but am investigating upgrading from 4 to 8gb. Graphics from, say, Other World Computing, suggest that the performance increase might be modest; but I'd like to know the effect of 8gb RAM on boot times, and performance.

  • Can iphoto be confgured not to import movies from the camera?

    Hello, Does anyone knows if iphoto 8 can be configure not to try to import the movies stored on the camera? It cause the import process to be very difficult trying to select only the photos to be imported and leave the movies to be imported by imovie

  • How to get the global create tasks that a user is authorized to initiate?

    Hi, I am using SOA Suite 11g. I want to develop a custom workspace using Workflow Service API and BPM Service API. What I need to implement is, When a user login in into the custom workspace, I need to show him a list of processes that he is permitte