Any expert JDBC developer who can solve this mystery?

I am trying to access database in SQL Server7.0 using Java.Name of the database is "DatabaseName".I have used following syntax but it is giving me errors.
private String URL = "jdbc:odbc:DatabaseName";
private String userName="user";
private String passWord="password";
Class.forName( "sun.jdbc.odbc.jdbcOdbcDriver" );
connection = DriverManager.getConnection( URL,userName,"passWord" );
where "username" and "password" are user Name and password respectively to access the database in SQL Server 7.0. And I have used the same name in "ODBC data source" as that of the database.I am trying some examples from book and these examples just work fine with MS Access( I created those databases in Access and tried the examples) but the same examples with databases in SQL Server 7.0 are not working.I made appropriate changes in DSN names and the code. Do I need a separate driver or something?

This
connection = DriverManager.getConnection(URL,userName,"passWord" );should be
connection = DriverManager.getConnection(URL,userName,passWord );You want to pass the variable password in, not a constant string.
If you have other problems post the actual error message you get so that people can see what problem you are getting.
Col

Similar Messages

  • HT201210 i have a problem with my iphone 4s when i update the system its giving me error 36 ? and the phone docent want to open! any one please know who to solve this problem

    I cant open or upate my iphone 4s because its give me message erorr 36, please any one know what dose it mean erorr 36 and who i solve this problem.

    Hi mohamed00,
    Thanks for visiting Apple Support Communities.
    I recommend following the method below if you are not able to restore your iPhone and see an "error 36:"
    Resolve specific iTunes update and restore errors
    http://support.apple.com/kb/TS3694
    Check for hardware issues
    Try to restore your iOS device two more times while connected with a cable, computer, and network you know are good. Also, confirm your security software and settings are allowing communication between your device and update servers. If you still see the alert when you update or restore, contact Apple support.
    Common errors: 1, 10-47, 1002, 1011, 1012, 1014, 1000-1020.
    Cheers,
    Jeremy

  • Zombie email message won't die! $1 bounty to anyone who can solve this.

    I have a message that absolutely will not die. I've tried everything I can think of to delete it, but it keeps coming back. I've tried moving it from one mailbox to another, killing it with the delete key, killing it by cutting it (Command-X), but it lingers on. At this point, it only shows up in the index with a subject and date, but the content of the message is gone. I've tried rebuilding the mailboxes a number of times, but it always reappears. I've tried logging into my various accounts through the web interface, but it doesn't exist on the servers anywhere, it's only local as far as I can see.
    In my last attempt to get rid of it, I scanned my ENTIRE HARD DRIVE for the string of text containing the subject line using grep, and narrowed it down to a few files in the ~/Library/Mail folder, which I deleted through the Terminal using rm. I then re-opened Mail and rebuilt the mailboxes, and the email STILL appears. It will no longer let me move the message to another mailbox, however, but I can't get the damned thing to disappear.
    I will PayPal $1 to anyone who can come up with a solution that doesn't involve recreating my Mail accounts. May the game begin!

    Hello,
    Are you using an IMAP or POP account?
    Anything you do in the Terminal, Finder or some third party Mail app enhancers will very often mess up the index, which appears to be a symptom of.
    I think you should force a reindexing by deleting the Envelope Index. With IMAP or Exchange account, forcing reindexing requires removing the account folder. See:
    http://docs.info.apple.com/article.html?path=Mail/4.0/en/14019.html
    Ask any questions needed to get comfortable with doing this.
    Ernie

  • See who can solve this problem

    Parameter name   || Typing     ||  Associated Type
    ACGL_ITEM         || Structure ||  ACGL_ITEM
    this give error ( Typing is only for Like,Type,Type Ref To )
    therefore i change it to Type
    but it telling me that the ( TABLES parameters are obsolete!)
    guys what can i do, is there a solution to solve this problem??
    Thank you.
    Edited by: guanwei su on Mar 10, 2008 7:05 AM

    The following code might be helpful:
    TYPES: types_t_acgl_item TYPE STANDARD TABLE OF acgl_item.
    DATA: gt_acgl_item TYPE types_t_acgl_item.
    PERFORM sub_perform USING gt_acgl_item.
    *&      Form  SUB_PERFORM
    *       text
    *      -->UT_ACGL_ITEM  test Table
    FORM sub_perform USING ut_acgl_item TYPE types_t_acgl_item.
    ENDFORM.                    " SUB_PERFORM
    Hope That Helps
    Anirban M.

  • URGENT! deadline today : [   £10 to anyone who can solve this!

    I hope people don't mind me offering this as a token of my gratitude, should someone be able to resolve this-
    I'm completely stuck now and feel powerless, unable to finish this edit because of this technical problem...
    Basically, when I apply Time Remapping to a nested sequence, it becomes black from about halfway through, onwards. If I disable Mercury Playback Engine, it solves this issue and the blackness is replaced by the remainder of the clip but other problems happen (edge feathering suddenly isn't possible[!?] and obviously performance)
    Not sure if it's directly related but if I apply a new Edge feather it curiously slips clips back or forward a few frames..
    Here's the video I made illustrating the issue:
    https://www.youtube.com/watch?v=HOspXIKSnNw
    Thanks so much for any help or ideas : ]
    Luke

    Ah.
    Thanks Harm.
    I think there should be a law stipulating that companies like Adobe must make it clear when a feature in their (pretty expensive) product doesn't work properly, so people like me don't stuck in a situation where they have a deadline they risk not meeting because the software doesn't work as advertised...
    I'll have a think about a workaround I guess.. maybe something in After Effects..

  • Any body who can solve this

    Let me detail my schema i.e I have four tables
    1. ic_store: have storeCode,Description columns.
    2. ic_subStore: substoreCode,Description.
    3. ic_item: itemCode,storeCode(F.K),substoreCode(F.K),Description and others.
    4. ic_itemBal: itemCode,and Balances columns.
    Now I want to give my report the look as,
    Store\SubStore Item Description
    S0001 Main Gold Store
    SB0001 Sub Gold Store.
    ITM00001 Pure Gold 24 Kt.
    and so on.
    After Description Column another column for
    item balances.
    My Query:
    First Query :taking data from ic_store i.e storeCode and description.
    Second Query :taking data from ic_subStore'columns.
    Third Query :taking data from ic_item for item and its description and also taking data from ic_itemBal for balances.
    Problem : is that I have two parameters asking for--- from item to item
    but when I choose these parameters also store those have no items still defined appears and just take spaces.I want to remove those store which have no items defined still.
    Please let me know if I have conveyed my problem properly.
    Thanx in advance.
    null

    See if this works :
    Select t3.store_code, t1.description, t3.substoreCode, t2.Description,t3.itemcode, t3.description,t4.balances
    From ic_store t1, ic_substore t2, ic_item t3,
    ic_itemBal t4
    Where t3.store_code = t1.store_code
    And t3.substoreCode = t2.substorecode
    And t3_itemcode is not null
    And t3_itemcode between(:param1,:param2);
    I think this should work.

  • Is there anybody who can solve this

    I have seen so many query related to this on this forum, But i have not seen single satisfactory answer for the same.
    This is really disappointing. Despite of so many experts are there this is remained unsolved.
    Let me try once again, This is Printing problem in D2k Reports, Where I am using 150 column report, It works fine on 98,NT but i try the same from 2000 or XP platform it doesn't comes properly. Almost 80-90 character print in one line and rest goes in next line.
    Thanks
    Shital

    Dear Sir,
    Of course i responsible to solve my problem, but if i am not able to solve than only i forward on this forum and if nobody able to solve than who is responsible??
    Any way, here i am puting some info.
    Mode : Client/Server
    reports-version : 6.0.8.26.0
    Desired output-format : Character mode
    Pagesize : In report 8.5-11(W-H), In PRT file width is 150 defined.
    The report works fine on Win98 and create problem on 2K and XP.
    Thanks
    Vishal

  • I will give $100 to the person who can solve this problem once and for all.

    I'm not even kidding, dude. We can do PayPay, I'll mail you a check, whatever you want. That is how frustrating this is, that is how badly I want it fixed, and that is how much overtime I've worked lately thanks to being shorthanded at my place of biz-nass. I'm an hombre of my word, so if you actually come up with a solution that works, the cheddar will be yours. Okay let's hit it.
    It's the skipping thing. First 10-12 seconds of a song - every song - will play fine, then iTunes skips, stutters, and basically does the god **** hokey pokey and shakes it all about. It happens most notably with songs that I double-click to play, but I'm pretty much noticing it on any song now after a transition is made. I've been using iTunes for ages and this didn't happen until the upgrade to 7.3. I have poured over these forums for nearly a week, tried every solution offered (even offered one of my own that actually worked for maybe four days before the whole thing started up again) and NOTHING. To save us all some time, here's what I've tried:
    - Downgrading. I'll admit I didn't do this correctly at first. I didn't remove everything according to the support guidelines, but I went down to version 6.05 and that did nothing to quell the skipping. I upgraded back up to 7.3 because hey, why not, and attempted the remaining trial fixes. I have since removed both iTunes and Quicktime, step my step according the the guidelines, and not only have I downgraded to my current running version of 7.2, I put both of the programs on my F drive (as opposed to the default C drive), my gigantic bonus internal drive where I typically keep nothing but my giganto music library. I thought putting the app on the same drive as the music might fix things. I thought wrong. Dead wrong. Dead diddly dum iddly wrong.
    - Quicktime settings. My settings for Quicktime have always been in safe mode with the output size at 16 bits. So when I saw this "fix" I just rolled my eyes. I used to have that dealio back in the dizzle when iTunes would just get all static-y and skip when I'd open other programs or even just minimize it, so that fix worked for that, but it's nothing compared to this. In simpler terms, that fix is like Superman, and this skipping? The kryptonite. Actually that's probably not a great metaphor, but we've got a ways to go and this is going to get mucho boring if I don't throw some chuckles out there. Ready for fix three? Giddy up!
    - Turn off cross-fade? It's never been on. I never really got the appeal of that, and also I think it resulted in some minor skipping back in the d. I also attempted similar fixes like turning off the equalizer, messing with the volume, closing last.fm, REMOVING an old album art retrieval program from back before iTunes got its **** together with album art, ANYTHING that might interfere with playback was turned off, removed, b-slapped, and sent crying home to its moms. Nada.
    - Recreating my library. This was the fix I offered someone else, because it actually did the trick for a few days. After an entire night spent reimporting 73 gigs worth of music, it played fine, but I did lose a ton of album art, playcounts, etc, so you can imagine how ****** I was when this wound up not being a permanent fix. I was beyond ******. I was livid. But I was taught in the dojos of my youth to channel my anger into productivity, and instead of sculpting a lovely bonsai tree, I set out to fix this pup once and for all.
    - That darn anti-virus! This was the final fix I tried, even though I wasn't using any of the culprit programs listed in the forums as causes of the skipping, and even those offering this as a solution confessed it was pretty hit or miss. But having tried everything else, having resorted to playing my music on MediaMonkey of all things, I figured I'd give it a shot. I used (reason for the past-tense forthcoming) AVG Anti-Virus, Lavasoft AdAware and something called Spyware Doctor that I think just came bundled with XP. I removed all of them. I had just done a virus scan recently to see if that's what was causing this, so I figured I'd be okay until I could redownload them after this fix wound up not working. And it didn't work, so there's that.
    There may be a couple of fixes I've tried that I'm forgetting now, since I'm delirious after spending practically every night for the past week trying to fix this problem, while my girlf, Heather, sits and laughs at me while watching Clark and Michael on her MacBook. In fact, she's laughing at the $100 offer as I type this, but I assure you, if you offer a solution that works, the money is as good as yours. If you come up with a workable solution, I'll have to test and make sure it isn't temporary like the recreating my library thing, but I won't leave you hanging once I'm satisfied that it's fixed for good. I know it's unorthodox, perhaps illegal in some states, but I'm desperate here, peeps. The ball is in your court, and I beg you not to give up the rock.
    Gateway E-2000 Windows XP

    I think the problem lays with Last.fm. I had the same exact problem as you. In your processes screen, end the task "lastfmhelper.exe" Last.fm still scrobbles. The tracks don't skip, although I notice there is still a bit of a lag in the first part of the song - but if you can deal with that, no skipping. I think you will have to end that task everytime you boot up your computer, or uninstall last.fm completely until they fix it; it is a bug in their software, as opposed to iTunes.

  • Who can solve this difficult problem?

    I have written a java program:
    import java.util.*;
    class Test0 {
    public static void main(String[] args) {
    LinkedList[] Cate= new LinkedList[4];
    (Cate[0]).add(0,"cat");
    (Cate[0]).add("kate");
    System.out.println(Cate[0]);
    Cate[2].add("dog");
    Cate[2].add("girl");
    for(int i=0;i<4;i++){
    Cate.add("boy");
    System.out.println(Cate[i]);
    } // end of main class
    // end of class
    But i can not run it correctly,why?

    No, I can not compile it correctly:
    import java.util.*;
    class Test0 {
    public static void main(String[] args) {
    class Point{
    public int x=2;
    public int y=5;
    LinkedList[] Cate= new LinkedList[4];
    // according your advice:
    for(int i=0;i<4;i++){
    Cate = new LinkedList();
    Point x1 = new Point();
    Point x2 = new Point();
    Cate[0].add(x1);
    Cate[0].add(x2);
    Cate[2].add("dog");
    Cate[2].add("girl");
    System.out.println( ((Point)(Cate[0].get(0)) ).x );
    System.out.println( ((Point)(Cate[0].get(0)) ).y );
    System.out.println( ((Point)(Cate[0].get(1)) ).x );
    System.out.println( ((Point)(Cate[0].get(1)) ).y );
    for(int i=0;i<4;i++){
    //Cate.add("boy");
    System.out.println(Cate[i]+" "+Cate[i].size() );
    I got this:
    [xwl@zhyj_12 Test.old]$ javac Test0.java
    Test0.java:13: incompatible types
    found : java.util.LinkedList
    required: java.util.LinkedList[]
    Cate = new LinkedList();
    ^
    1 error
    But Ragnvald told me another method yestoday,it works perfectly, And I appreciate him. His code like this:
    import java.util.*;
    class Test0 {
    public static void main(String[] args) {
    class Point{
    public int x=2;
    public int y=5;
    LinkedList[] Cate= new LinkedList[4];
    // The difference is Cate or Cate[i] !!!!
    for(int i=0;i<4;i++){
    Cate[i] = new LinkedList();
    Point x1 = new Point();
    Point x2 = new Point();
    Cate[0].add(x1);
    Cate[0].add(x2);
    Cate[2].add("dog");
    Cate[2].add("girl");
    System.out.println( ((Point)(Cate[0].get(0)) ).x );
    System.out.println( ((Point)(Cate[0].get(0)) ).y );
    System.out.println( ((Point)(Cate[0].get(1)) ).x );
    System.out.println( ((Point)(Cate[0].get(1)) ).y );
    for(int i=0;i<4;i++){
    //Cate[i].add("boy");
    System.out.println(Cate[i]+" "+Cate[i].size() );

  • Who can solve this problem?

    Repeat message
    I have 2 same servers on sun.
    I update data on first www server and I want to have updated data on second
    www server (to have save backup server). How to do this?
    Thanks for answer. Sorry for my bad English.
    Piotr

    Piotr Kowalski wrote:
    Repeat message
    I have 2 same servers on sun.
    I update data on first www server and I want to have updated data on second
    www server (to have save backup server). How to do this?
    Thanks for answer. Sorry for my bad English.rsync would work, or you could have your document root nfs mounted from one
    machine to the other.
    Kent

  • See who can  solve this problem 2

    today i going to do BDC Recording.
    however i face a problem after insert all the things it needed.
    Here the problem come, when i push on a pushbutton (PARK) the recording pop out a error.
    the error is :
    PARK is not possible in bdc recording.
    can anyone help me out?
    Thanks you so much ^^.

    Hi,
    ya i know the BDC_OKCode is '=BP'
    i had try that out but when i go to SM35 and try to process it and the result is fail ( nothing wrong with my code because when BP change to BU the whole thing run successfully )
    because ( parking is not prossible during batch input)
    Thanks
    Guanwei

  • After installing Lion os I cannot see my desktop 1 nor can I see my open windows when I go to finder, I just get the grey/black background that comes with mission control. Any ideas as to how to solve this problem?

    The top picture is what my Desktop 1 looks like. And the picture below is what my desktop looks like after clicking mission control. Ive tried changing wallpapers, changing preferences, etc. and I still can't figure out what's wrong. As you can see, on mission control you can't see any of the open windows, or anything that I have placed on my desktop. Any ideas as to how to solve this issue?

    Hello cor-el, thanks for your reply. I changed my settings for downloads to desktop and it has appeared on there. When I double click I am asked which program I want to open file. I click firefox and another box "opening install" says I have chosen to open the file which is an application and do I want to save it. This is the only real option so I press save file. I get a box saying this is an executable file which may contain viruses - do you want to run. I press ok and the final box showing C drive file name and desktop appears stating application not found.
    This happens the same whenever I try to install.
    To my untrained eye the application is not being recognised as an application and I cannot work out how to get it to do that.
    My plugin is still showing as out of date.
    Is there anything you could suggest. Thanks for your time.

  • Hello guys..!! I have got my new  iphone 4 2 days ago.The same day it got a problem of auto restart in every 1, to 2 minutes. I updated and restored it many times...but of no use... can any one help me how to solve this problem..!!

    Hello guys..!! I have got my new  iphone 4 2 days ago.The same day it got a problem of auto restart in every 1, to 2 minutes. I updated and restored it many times...but of no use... can any one help me how to solve this problem..!!

    Go to Settings/General/Reset - Erase all content and settings. the connecto to iTunes and restore as a New phone. Do not restore any backup. If the problem persists you have a hardware problem. Take it to Apple for exchange.
    This assumes that the phone is not hacked or jailbroken. If it is you will have to go elsewhere on the internet for help.

  • I want to sync tasks in Outlook with my iPhone. I have tried Toodledo (not good) and Todo. Todo works, but it cuts off most of the text. I only get the beginning of my (long) lists. Any ideas how I can solve this problem?

    I want to sync tasks in Outlook with my iPhone. I have tried Toodledo (not good) and Todo. Todo works, but it cuts off most of the text. I only get the beginning of my (long) lists. Any ideas how I can solve this problem? I starting to regret that I switched to iPhone...

    Usually if you have some kind of hardware failure there is some beeping during POST or most motherboards now have LED indicators to produce and error message based on the type of failure
    So if its bad memory, not place properly, mismatched, processor not inserted properly, mismatched voltage or voltage connector not present etc it beeps or generates the error id.
    Power supplies can be tested for failure. There are some walk throughs for testing just them with a switch, paperclip or a jumper (I'd suggest not doing this if you are not familiar with the dangers of electricity).
    Memory can be tested with memory diagnostics programs like Memtest+
    Processors can overheat if the proper precautions have not been taken usually you will get a POST beep or error code for that.
    If the motherboard has no response then do the basics first:
    Check power connectors and power supply. Once you determine that is not the case move on to other items like graphics cards in all the way or memory.

  • My dvd player will not let me change regions, it just quits when i do, now its stuck on region 1. Any thoughts how i can solve this problem or get round it in some way?

    My dvd player will not let me change regions, it says i have one more chance to change it, then it just quits when i do, now its stuck on region 1. Any thoughts how i can solve this problem or get round it in some way?

    Usually if you have some kind of hardware failure there is some beeping during POST or most motherboards now have LED indicators to produce and error message based on the type of failure
    So if its bad memory, not place properly, mismatched, processor not inserted properly, mismatched voltage or voltage connector not present etc it beeps or generates the error id.
    Power supplies can be tested for failure. There are some walk throughs for testing just them with a switch, paperclip or a jumper (I'd suggest not doing this if you are not familiar with the dangers of electricity).
    Memory can be tested with memory diagnostics programs like Memtest+
    Processors can overheat if the proper precautions have not been taken usually you will get a POST beep or error code for that.
    If the motherboard has no response then do the basics first:
    Check power connectors and power supply. Once you determine that is not the case move on to other items like graphics cards in all the way or memory.

Maybe you are looking for

  • Iweb comments issue!

    i have an iweb site and am using a third party code for comments as i do not have a MobileMe account for the built in comment system with iweb. and im having an issue... so i use the html snippet widget and all works fine until there are enough comme

  • Not able to print on Purchase order whatever we fill in item text

    not able to print on Purchase order whatever we fill in item text, from where can we link to get printed item text on purchase order

  • Scenario execution error ORA-21561

    I have scheduled a scenario in ODI to run hourly. Last night one execution was failed with Error message "ORA-21561: OID generation failed". But all other execution are running properly other than that particular one. What is the reason for this?

  • Migrating without Migration Assistant

    I installed something or some program that kept causing shutdowns of my iMac. Archive & reinstall couldn't fix it. And since I'm no pro at reading Console logs I couldn't figure out what it was. So I decided it was about time I did a full reinstall o

  • How do I restore old texts when my phone resets?

    My iphone 5s  reset when the battery went to zero & I forgot my password! Lost my pictures that were not backed up. Also lost my messages. Can I retrieve the messages or the pictures?