Persistant routes sometimes not working

This is the situation
We have a MSSQL cluster of 2 servers the SQL03A and SQL03B windows 2008 R2 enterprise on vmware 5.5
There are 2 persistant routes, they are for the backup:
10.64.67.171 255.255.255.255 10.37.4.30
10.64.67.169 255.255.255.255 10.37.4.29
Sometimes , one?s a month, the persistant route does not work and the backup wil not work.
We delete the persistant route and we make the persistant route again, than it wil work again.
What could be the problem?

You need to use root print to list the available routes. When the problem gets reproduced again, please run it to see what are the available routes.
Also, you can double check that you are creating the routes properly. Here is an article about how to create persistent routes: http://www.itsyourip.com/networking/howto-add-persistent-static-routes-in-windows/comment-page-1/
This posting is provided AS IS with no warranties or guarantees , and confers no rights.
Ahmed MALEK
My Website Link
My Linkedin Profile
My MVP Profile

Similar Messages

  • [LAVA Cross Post] CTRL+SHIFT+ Shortcuts sometimes not working in LabVIEW

    Cross-post from LAVA: http://lavag.org/topic/15619-ctrlshift-shortcuts-sometimes-not-working-in-labview/
    See the above post for more information - here's a synopsis:
    CTRL+SHIFT modifiers are not working while running LabVIEW in a Parallels 7 virtual machine. This problem affects both LV2011 and LV2012. I'm not certain that this is a LabVIEW bug - could be an issue with my virtual machine environment or it's configuration - except that CTRL+SHIFT modifiers work in other applications on the affected VMs. It's just LabVIEW that appears to ignore shortcuts with the CTRL+SHIFT modifiers.
    Any ideas? 
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

    X. wrote:
    Still well and alive in Parallels 9 and LabVIEW 2013 SP1. Of course I could upgrade to the latest versions to check whether things have gotten any better.
    Any news on that?
    @mellroth figured out the solution :-)
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • WRT1900 AC V1 - Linksys is aware that the router is not working properly. Help spread the word.

    I just had a conversation with Linksys' Customer Service via chat: Daphne L. J: Hello Fernando Paramo. My name is Daphne L..
    Daphne L. J: Welcome to Linksys Global Chat. Is this your initial contact or do you have a case number?
    You: Case number is 04971062
    Daphne L. J: Please give me 3-5 minutes to pull up and review your case.
    You: OK
    Daphne L. J: Thank you.
    You: I have a WRT1900 AC, V1. The router is not working properly. I have disconnections every few minutes.I already installed the new firmware version and I still have the same issues. I already reset the router to factory defaults and same issues. I have changed the settings back to my personal preferences: Changed the SSID, changed the wireless security settings, changed the DNS and deactivate WPS. That's it.I'm using 5 Ghz mode with my laptops (5 Ghz adapters) and 2-4 Ghz with a few devices (Chromecast, Nintendo 3DS).
    Daphne L. J: Thank you for waiting.
    Daphne L. J: Please confirm if the following information is correct:
    Name : Fernando Paramo
    Phone Number :
    E-Mail Address : 
    Model Number : WRT1900AC
    Serial Number : 13J10609406280
    Country : United States
    You: That's correct.
    Daphne L. J: Okay. Were you able to check if the devices have stable connection wired to the router?
    You: No. I do not have devices with Ethernet ports. Well, only the cable modem.
    You: But the modem is fine. No disconnections from my ISP.
    You: It is the router.
    Daphne L. J: Alright. What is the current firmware version of your router?
    You: I tried to return the router to Wal-Mart yesterday with no luck. This is a useless device. And I have been reading comments on the community forums and a lot of people are having problems.
    Daphne L. J: We are actually aware of the issue and are working on a resolution. What is the current firmware version of your router?
    You: Ver. 1.1.10.167514
    You: Latest one.
    Daphne L. J: Yes, so you reflashed the firmware, reset and then manually reconfigure it after, not using backup configuration, is that right?
    You: That's correct.
    Daphne L. J: And it is intermittent on all devices connected to both 2.4 and 5 Ghz networks, is that right?
    You: That's correct.
    Daphne L. J: Thank you for the information. Please give ,e 3-5 minutes to verify this with my superior.
    Daphne L. J: Thank you for waiting.
    You: I want to send you my WRT1900 AC and get a V2 or I want a EA8500 and pay the difference myseld.
    You: I do not want my current hardware.
    You: It is useless for my needs.
    You: I can't believe I had an older E3000 that didn't give me any problems.
    Daphne L. J: We have already exhausted all possible troubleshooting steps for your concern. As verified with my Supervisor, we will forward your case to our Customer Assurance Team. They are highly technical and knowledgeable when it comes to advanced troubleshooting. They will contact you in the next 24 to 48 hours. By the way, who is your Internet Service Provider? And do you Cable or DSL connection?
    You: Cable connection.
    Daphne L. J: Who is your Internet Service Provider?
    You: A company called .
    You: How are they going to contact me?
    Daphne L. J: Alright. By the way, on the device itself, on its FCC ID, please check if you have WRT1900AC or WRT1900AC v2.
    You: Are you paying attention to me?
    You: I already told you it's V1.
    Daphne L. J: They will call or email you. Please double check if these informations are correct:
    Name :
    Phone Number :
    E-Mail Address :
    You: I told you I want to send you my WRT1900 AC and get a V2 or I want a EA8500 and pay the difference myself.
    You: I want them to contact me to my email. I can't answer the phone during work hours.
    Daphne L. J: We can't assure you if we will be able to replace it with Version 2 or if you are allowed to have the EA8500 instead.
    Daphne L. J: Just in case, do you also have an alternate number?
    Daphne L. J: Also, what time zone are you in? And what is your preferred time and day for them to contact you?
    You: I have the one from my office in Mexico. Central Time. Any time is good.
    Daphne L. J: So, you are currently in Mexico?
    You: I work in Mexico but I have the house in USA. I live in the border.
    Daphne L. J: I see. Do you have any other questions or clarifications?
    You: I live 10 minutes away from the International Bridge. But that's not an issue. I bought the router at Walmart in Laredo, TX.
    Daphne L. J: Thank you for the information. Would that be all for now?
    You: I want a clarification: Do you realize that there is an issue with the current WRT1900 AC? Are you aware of that?
    You: Because this is a very expensive router that is not working as it should be.
    Daphne L. J: Yes, we are aware of the issue and are working on a resolution.
    Daphne L. J: Would there be anything else you need?
    You: That would be it. I will wait for you to contact me.
    You: Thanks.
    Daphne L. J: Alright. Thank you for giving us an opportunity to serve you through Linksys Live Chat. You may also visit our support site at www.linksys.com. For your reference, your case number is 04980394. Thank you for choosing Linksys and have a great day! We paid $250 for this piece of equipment. That's a lot of money for a device that doesn't work. I just want to get a V2 replacement, or better yet, an exchange for a EA8500. We should all demand this. It is not fair for us. The current WRT1900 AC is a useless device. They even should do a recall of the product. I will wait for them to contact me, but I'm thinking if I should send the information to The Consumerist or someone else. What to do?

    FernandoRocker wrote:
    Well... instead of looking into this with Engineering, I would prefer you to talk about this with the Sales department and exchange my WRT1900AC for an EA8500 (I will pay the difference if needed).  Seriously. The device is useless. Not just a paperweigt... an expensive paperweight.Actually I looking into the swap for you because I think that would be best in your case. Keep this in perspective. There is laterally millions of WRT1900AC V1 out there with very few issues with latest firmwares and of course the odd exception. In your case it could be a defective WRT1900AC.

  • WRT1900AC V1 - Linksys is aware that the router is not working properly. Help spread the word.

    I just had a conversation with Linksys' Customer Service via chat: Daphne L. J: Hello Fernando Paramo. My name is Daphne L..
    Daphne L. J: Welcome to Linksys Global Chat. Is this your initial contact or do you have a case number?
    You: Case number is 04971062
    Daphne L. J: Please give me 3-5 minutes to pull up and review your case.
    You: OK
    Daphne L. J: Thank you.
    You: I have a WRT1900AC, V1. The router is not working properly. I have disconnections every few minutes.I already installed the new firmware version and I still have the same issues. I already reset the router to factory defaults and same issues. I have changed the settings back to my personal preferences: Changed the SSID, changed the wireless security settings, changed the DNS and deactivate WPS. That's it.I'm using 5 Ghz mode with my laptops (5 Ghz adapters) and 2-4 Ghz with a few devices (Chromecast, Nintendo 3DS).
    Daphne L. J: Thank you for waiting.
    Daphne L. J: Please confirm if the following information is correct:
    Name : Fernando Paramo
    Phone Number :
    E-Mail Address : 
    Model Number : WRT1900AC
    Serial Number : 13J10609406280
    Country : United States
    You: That's correct.
    Daphne L. J: Okay. Were you able to check if the devices have stable connection wired to the router?
    You: No. I do not have devices with Ethernet ports. Well, only the cable modem.
    You: But the modem is fine. No disconnections from my ISP.
    You: It is the router.
    Daphne L. J: Alright. What is the current firmware version of your router?
    You: I tried to return the router to Wal-Mart yesterday with no luck. This is a useless device. And I have been reading comments on the community forums and a lot of people are having problems.
    Daphne L. J: We are actually aware of the issue and are working on a resolution. What is the current firmware version of your router?
    You: Ver. 1.1.10.167514
    You: Latest one.
    Daphne L. J: Yes, so you reflashed the firmware, reset and then manually reconfigure it after, not using backup configuration, is that right?
    You: That's correct.
    Daphne L. J: And it is intermittent on all devices connected to both 2.4 and 5 Ghz networks, is that right?
    You: That's correct.
    Daphne L. J: Thank you for the information. Please give ,e 3-5 minutes to verify this with my superior.
    Daphne L. J: Thank you for waiting.
    You: I want to send you my WRT1900AC and get a V2 or I want a EA8500 and pay the difference myseld.
    You: I do not want my current hardware.
    You: It is useless for my needs.
    You: I can't believe I had an older E3000 that didn't give me any problems.
    Daphne L. J: We have already exhausted all possible troubleshooting steps for your concern. As verified with my Supervisor, we will forward your case to our Customer Assurance Team. They are highly technical and knowledgeable when it comes to advanced troubleshooting. They will contact you in the next 24 to 48 hours. By the way, who is your Internet Service Provider? And do you Cable or DSL connection?
    You: Cable connection.
    Daphne L. J: Who is your Internet Service Provider?
    You: A company called .
    You: How are they going to contact me?
    Daphne L. J: Alright. By the way, on the device itself, on its FCC ID, please check if you have WRT1900AC or WRT1900AC v2.
    You: Are you paying attention to me?
    You: I already told you it's V1.
    Daphne L. J: They will call or email you. Please double check if these informations are correct:
    Name :
    Phone Number :
    E-Mail Address :
    You: I told you I want to send you my WRT1900AC and get a V2 or I want a EA8500 and pay the difference myself.
    You: I want them to contact me to my email. I can't answer the phone during work hours.
    Daphne L. J: We can't assure you if we will be able to replace it with Version 2 or if you are allowed to have the EA8500 instead.
    Daphne L. J: Just in case, do you also have an alternate number?
    Daphne L. J: Also, what time zone are you in? And what is your preferred time and day for them to contact you?
    You: I have the one from my office in Mexico. Central Time. Any time is good.
    Daphne L. J: So, you are currently in Mexico?
    You: I work in Mexico but I have the house in USA. I live in the border.
    Daphne L. J: I see. Do you have any other questions or clarifications?
    You: I live 10 minutes away from the International Bridge. But that's not an issue. I bought the router at Walmart in Laredo, TX.
    Daphne L. J: Thank you for the information. Would that be all for now?
    You: I want a clarification: Do you realize that there is an issue with the current WRT1900AC? Are you aware of that?
    You: Because this is a very expensive router that is not working as it should be.
    Daphne L. J: Yes, we are aware of the issue and are working on a resolution.
    Daphne L. J: Would there be anything else you need?
    You: That would be it. I will wait for you to contact me.
    You: Thanks.
    Daphne L. J: Alright. Thank you for giving us an opportunity to serve you through Linksys Live Chat. You may also visit our support site at www.linksys.com. For your reference, your case number is 04980394. Thank you for choosing Linksys and have a great day! We paid $250 for this piece of equipment. That's a lot of money for a device that doesn't work. I just want to get a V2 replacement, or better yet, an exchange for a EA8500. We should all demand this. It is not fair for us. The current WRT1900AC is a useless device. They even should do a recall of the product. I will wait for them to contact me, but I'm thinking if I should send the information to The Consumerist or someone else. What to do?

    Hello. I sent my WRT1900AC V1 to Linksys four days ago (Monday) via UPS with a RMA. Linksys paid the shipping and everything. The router is still in route, and it should arrive to their offices tomorrow. Once they receive the WRT1900 AC V1, they are going to send me an EA8500 as a replacement. But I have been reading the comments about the EA8500 here in the forum and it seems to have the same problems. I guess the firmware is extremely flawed in both routers (maybe it is almost the same code?). Anyway, I will try the EA8500 and I hope it works. I bought a temporary router from Walmart and I paid $35 for it. It is a Belink N600 DB. I can't believe that a $35 router is working a lot, lot, lot better than my previous $250 WRT1900AC router. Unbelievable. If the EA8500 doesn't work, I'm going to try and get my money back from Linksys, or contact The Consumerist or someone to get my money back and get a Nighthawk instead.

  • Mark debug 'sometimes' not working

    I find mark debug sometimes not working.In my new project ,I add mark debug = true, then set up the debug nets.I can't find them in the assigned nets ,but from the netlists I find some of them.The missing nets are wire type,notregister type.Does the command not work on wire type nets?
    Because my project is very large, searching for the nets requires a very long time.So I hope Xilinx can fix this bug.

    Rather than open another thread, I'll extend this one since I'm having what I think is the same problem.
    I'm using Vivado 2014.4.  "Flatten" is set to "None".  The nets are set in the elaborated design with MARK_DEBUG and DONT_TOUCH.  But when synthesis gets done with them, the names are completely different.
    I don't care if the "equivalent" nets are still there.  I need the names.  Every time synthesis runs, it's a crapshoot whether the names will change.  Particularly bad are 500+ bit buses that get exploded into individual signals.  I don't have the time to regather them into the proper buses every time.
    In general, I've been pleased with the changes in Viviado.  But I can't believe how badly a wonderful tool like ChipScope has been screwed up.
     

  • Equium L40-156 - Indicator WLAN sometimes not work

    Hello peoples - has anyone any idea wha this is bout?
    I cant seem to find a similar problem anywhere. The indicator light for the wireless connection will sometimes not work - as a result i have to manually go into network connection and turn on wireless cap. - this will not turn the light on but does allow me to access the internet.
    This happens for a few weeks and then it all rights itself for a few weeks,
    Then it happens again.

    Hi
    Do you mean this issue happens sometimes but in most cases you can enable the WLan properly?
    First of all to enable the WLan you have to move the WLan antenna switch to ON (be sure that it has been switched properly to the right) and you have I use the FN+F8 key combination.
    Usually this enables the WLan.
    Im not sure why the WLan antenna switch does not work sometimes maybe its a hardware issue; for example loose connection or the switch was not moved properly who knows
    Maybe it would be a good idea to ask an technician for a WLan switch check...

  • Uploading Files Using InputFile Component -- Sometimes not working

    Hello,
    This is the 2nd time I make a post about it!
    Because I have more than 1 application using upload, and everything is correct! But it doesn't work as it should!
    You can check the original post here: Uploading Files Using InputFile Component - Sometimes not working
    I need a solution please!
    The only thing we can conclude is that it could be a bug from oracle !!! (???) But I talked with other people and they say that it works fine for them.
    There is one important thing: when we put a form to "Uses Upload = true" it seems that the page doesn't work very normal. For exemple: if you use a table in a form that uses upload the table get's "crazy".
    Thanks,
    JP

    I have now access to METALINK!
    I can find some problems and patches about inputFile but not mine! I will check better later!
    I think the problem is caused because of my framework!

  • Sometime not work = Word Substitution

    10.2.0.415
    BlackBerry 10 os
    please help,
    i use thats version at Q5 BB but i get orror at :
    Prediction and Correction > Word Substitution >
    I cannot use this service, sometimes ok/normal, sometimes not work, its very important to me,
    Thats only my reson why i buy Q5 BB please Help,
    i have much word to explain to my friend, and with that function will help me, and make my finger easy and very health.
    Thank you very much

    yoyongsc wrote:
    Mine doesn't work in all applications, bbm, text, email, etc.
    Verry odd! My Word Sub works well in all of those you've listed.
    It does not work in commenting on BBM group pictures and in some BBM Channel comments... works every where else.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • 3845 Router do not work with NME-X23ES-1GP Interface card

    Need help!
    I Trying install interface card NME-X 23ES-1GP on 3845 Router. I installed this card in slot 4, but router could not communicate with this card.
    IOS version in Router 12.3
    Here is results show diag command:
    Slot 4:
    Unknown (type 1187) Port adapter
    Port adapter is disabled deactivated
    Port adapter insertion time unknown
    EEPROM contents at hardware discovery:
    Hardware Revision : 1.0
    Top Assy. Part Number : 800-25011-01
    Board Revision : A0
    Deviation Number : 0-0
    Fab Version : 03
    PCB Serial Number : FOC090009VC
    RMA Test History : 00
    RMA Number : 0-0-0-0
    RMA History : 00
    Product (FRU) Number : NME-X-23ES-1G-P
    Version Identifier : V01
    Base MAC Address : 0013.8088.9f80
    MAC Address block size : 128
    EEPROM format version 4
    EEPROM contents (hex):
    Possibly IOS release too old?

    Thank you for link. I read all information on this link. But I can't solve the problem.
    Commands "show version" and "show flash:" show my the IOS image file version on Router (but not on interface modules). Here is Routers IOS image:
    c3845-advipservicesk9-mz.123-11.T5.bin
    I Can't connect to and open a session on the interface module. Command service-module interface slot/port session don't work.
    What I should do next?
    May is ncessarily upgrade Software on router?
    Here is results show version and show flash:
    BIG1#show flash:
    -#- --length-- -----date/time------ path
    1 29801400 Jun 28 2005 04:47:46 +00:00 c3845-advipservicesk9-mz.123-11.T5.bin
    2 1651 Jun 28 2005 04:55:18 +00:00 sdmconfig-38xx.cfg
    3 3085312 Jun 28 2005 04:55:40 +00:00 sdm.tar
    4 763392 Jun 28 2005 04:55:56 +00:00 es.tar
    5 820224 Jun 28 2005 04:56:10 +00:00 common.tar
    6 1038 Jun 28 2005 04:56:24 +00:00 home.shtml
    7 113152 Jun 28 2005 04:56:36 +00:00 home.tar
    8 749101 Jun 28 2005 04:56:52 +00:00 256MB.sdf
    9 1208320 Jun 28 2005 04:57:08 +00:00 ips.tar
    27451392 bytes available (36560896 bytes used)
    BIG1#show version
    Cisco IOS Software, 3800 Software (C3845-ADVIPSERVICESK9-M), Version 12.3(11)T5, RELEASE SOFTWARE (fc1)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2005 by Cisco Systems, Inc.
    Compiled Sat 02-Apr-05 15:14 by yiyan
    ROM: System Bootstrap, Version 12.3(11r)T2, RELEASE SOFTWARE (fc1)
    BIG1 uptime is 57 minutes
    System returned to ROM by reload at 07:11:45 UTC Tue Jul 12 2005
    System image file is "flash:c3845-advipservicesk9-mz.123-11.T5.bin"
    Cisco 3845 (revision 1.0) with 223232K/38912K bytes of memory.
    Processor board ID FCZ0927714C
    2 Gigabit Ethernet interfaces
    1 Virtual Private Network (VPN) Module
    4 Voice FXS interfaces
    DRAM configuration is 64 bits wide with parity enabled.
    479K bytes of NVRAM.
    62720K bytes of ATA System CompactFlash (Read/Write)
    Configuration register is 0x2102

  • Layout adjustment sometimes not working

    I'm in a bit of a panic here. We've set up a file that we're due to deliver to a client today, the file has multiple master pages with various margins.
    Normally in this type of situation we turn on the layout adjustment so that the text frame moves with the margins when the new master is applied. Normally this works just fine, we use it all the time, but for some reason its randomly NOT working! i.e. the text frame stays the size it was.
    There doesn't seem to be any ryme or reason to it, sometimes its a left page, sometimes a right page.
    Any ideas?
    Thanks,
    Ken

    Yeah, I tried. Nothing seems to work all the time as is usually does.
    I'll have to look again and see if I can find some correlation with the
    pages that do not adjust.
    Oy!
    Thanks again

  • A problem with a timer event sometimes not working

    Guys...
    I have this problem:
    I have a child added to the stage eacg 5 seconds and if this child still on the stage after another 5 seconds, you go to the next frame...
    My problem is that sometimes it does not work, meaning that you can have this child on the stage for ever and nothing will happen... but sometimes it does work properlly...
    Is there any mistakes in my code or what should I do?
    var miC4:Loader = new Loader();
    miC4.load(new URLRequest("nivel1.jpg"));
    addChild(background1);
    background1.addChild(miC4);
    if (!lives){var lives:int = 3;}
    var enem1:Loader = new Loader();
    enem1.load(new URLRequest("1enemigo.png"));
    var enemy1Array:Array = new Array(enem1);
    var t1:Timer=new Timer(5000,1);
    var t2:Timer=new Timer(10500,1);
    recycleEnemy();
    function removeEnemy(){
               background1.removeChild(enem1);
               recycleEnemy();
    function touchListener(event:MouseEvent){
        enem1.removeEventListener(MouseEvent.CLICK, touchListener);
        removeEnemy();
    function recycleEnemy():void{
            enem1.x=(50 + Math.random() * (stage.stageWidth - 150));
            enem1.y=(50 + Math.random() * (stage.stageHeight + -100));
            t1.addEventListener(TimerEvent.TIMER, addEnemy);
            t1.start();
            t2.addEventListener(TimerEvent.TIMER, bang1);
            t2.start();
    function addEnemy(e:TimerEvent):void {
            background1.addChild(enem1);
            enem1.addEventListener(MouseEvent.CLICK, touchListener);
            enemy1Array.push(enem1);
    function bang1(e:TimerEvent):void {
        if(enem1.stage){
                    lives--;
                    if (lives >= 0) {
                        t1.stop();
                        t2.stop();
                        removeChild(background1);
                        gotoAndStop(5);
    Thanks a lot!!!!

    ok, so there are a number of issues.
    the first error is enemy1Array contains two duplicate objects ~5 seconds after entering that frame.  i'm not sure if that's a problem because i don't see where you're even using enemy1Array, but you should fix that error (if enemy1Array is used) or remove enemy1Array (if it's not used).
    the next problem is you can call recycleEnemy more than once and re-add those timers.  flash will probably protect yourself from the bad coding but you shouldn't count on it.  when you call removeEnemy you should stop those timers and remove those listeners before re-adding another pair of listeners.  or just reset the timers in removeEnemy and start them in recycleEnemy.  there's no need to re-add those listeners more than once.  they could be added in your if(!lives) conditional.
    the next (and probably most important) error is your removeChild(background1) statement which fails to remove enem1. so, when you re-enter that frame you have an enem1 on-stage that you can't kill and can't even reference.  remove it when you remove the background1.

  • Using parameters in a select query sometimes not working

    I use parameters throughout my code - usually without problem, but for some reason in one case it does not return a result. When I modify the querystring to contain the value instead of using parameters it works. Is it because I'm secting a clob? or is it because I'm using a 9i ODP.net dll against a 10g database? this is c# 2.0
    here's the source code that does not work for me - REQUEST_DATA is a clob:
        public String loadRequest(String PSRNumber)
            String returnVal = null;
            ConnectionStringSettings connectionInfo = System.Configuration.ConfigurationManager.ConnectionStrings["Scribe"];
            OracleConnection myConnection = new OracleConnection();
            String strSQL = "select PSR, REQUEST_DATA from stats.request where PSR = :PSR";
            try
                myConnection.ConnectionString = connectionInfo.ConnectionString;
                OracleCommand cmd = new OracleCommand(strSQL, myConnection);
                cmd.CommandType = CommandType.Text;
                cmd.Parameters.Add("PSR", OracleDbType.Varchar2).Value = PSRNumber;
                myConnection.Open();
                OracleDataReader dr = cmd.ExecuteReader();
                if (dr.Read())
                    returnVal = dr.GetOracleString(dr.GetOrdinal("REQUEST_DATA")).ToString();
                else
                    returnVal = null;
                dr.Dispose();
                cmd.Dispose();
            catch (OracleException ex)
                printError(ex.Message);
            finally
                myConnection.Close();
                myConnection.Dispose();
            return returnVal;
        }when I replace the line generating the sql, and remove the lines pertaining to parameters it works:
    String strSQL = String.Format("select PSR, REQUEST_DATA from stats.request where PSR = {0}", PSRNumber);
    I'm fine just using this as a workaround, but I need an explanation why the other does not work - I prefer to use parameters.
    Message was edited by:
    user633546

    I figured it out. thank you for your help in pointing me in the right direction.
    the problem was there was a trailing space in the data.
    when the data for that table is numeric for every record, the query allows me to leave out the single quotes. Trailing spaces do not seem to cause the database to see it as non-numeric - leaving out the quote still finds the record even if there is a trailing space.
    but when I put in the quote, it is not an exact string match, so it could not find the record. sometimes this flexibility gets me into trouble :\

  • Update 8.1.2 iPhone 4 Problems. sometimes not  working wifi or phone  can't be swich on

    i do not care about f....ringtones i need to use my phone! After Update 8.1.2 my phone is not working, got some Problems with wifi Connection sometimes the phone can't be swich on or Off. Its imposible to use my phone in the Right way. Whats up........?????

    Which of the general trouble shooting measures have you tried already?
    See the list here:  iOS: Not responding or does not turn on - Apple Support
    sometimes the phone can't be swich on or Off
    Make a backup with iTunes, then restore the iPhone as a new device. Test if everything is working, then restore your data from the backup.

  • 300N Router/Adapter not working with Satellite internet

    I had previously SRX200 router and it was working fine with Satellite but recently I bought again 300N router and adapter but it's not working. It give the strong signal for few seconds and drops it rightway. Please let me know if there is something I need to do with settings.
    Thanks
    Paul

    Paul make sure that the firmware of this router is upgraded to the latest version 1.03.0, it resolves a lot of issue.

  • My Speakers sometimes not working

    Hi, i purchased HPPavilion G6 laptop just 5-6 months back and since that time I am facing non-recurring problem with Audio whenever I use to play something online or using multimedia softwares. But I am unable to check reason for this as it's sometimes working perfectly and sometimes it doesn't and i usually restart and when relog-in it works! 
    Does anyone knows reason? As I have already checked it's drivers are working perfectly.

    Hi Cancer1985,
    I understand you are having issue with the speakers not working all the time. I was wondering if the next time it happens see if you can play music. Some sites do have issues with sound. If you have checked your drivers and all is well, I think it is with the sites. Here is a link on tips for fixing common sound problems.
    http://windows.microsoft.com/en-ca/windows/tips-fixing-common-sound-problems#tips-fixing-common-soun...
    Hope it helps.
    Thanks
    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!

Maybe you are looking for

  • Calibrating 23" display with macbook Pro

    I am using a macbook pro with and 2nd monitor (apple 23" cinema HD). I have tried using a Pantone Huey Pro to calibrate the monitors, but it doesn't seem to work. Even after i have run the tool, the images look very different on each display. I have

  • Audit log capacity

    As auditing can be enabled and it keeps the audit logs. Is there a setting for audit retention configuration as well as size configuration. Also how uch space it occupied with average audit capabilities and how much is the growth. This topic not much

  • Is it possible to change the default file encoding?

    I have just learned that the "file.encoding" system property should be treated as read-only. (http://developer.java.sun.com/developer/bugParade/bugs/4163515.html) I am using this property to tell javac that the command arguments file has some other e

  • MDX Query using BottomCount to limit Median calculation returns null

    I'm building a new cube that includes some person age values that aren't useful when summed, but are useful when the median is determined. The measure group that contains the measure for the age has a 1-1 relationship with a dimension in the cube bec

  • UIX 2.1.7: java.lang.IllegalStateException

    Hi all, we have an UIX page that shows a BC4J view object and offers to export the VO data to PDF. When the user clicks a button, the page is submitted and the UIX event handler uses a 3rd party library to create a byte array containing the PDF data.