Working with NUMBER types in ASP

Hi,
We are having big problems working with Oracle from a ASP application. We return data from the Oracle (8i) database using Oracle ODBC driver (9.2). However, whenever Oracle returns NUMBER columns (Number(8)), we cannot work with them in ASP because of an ASP VBScript bug that prevents adNumeric from working withouut explicitly casting to numbers (see
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q195/1/80.ASP&NoWebContent=1&NoWebContent=1 for more info).
I was wondering if there is any other way to get round this in ORacle - can I set somethign in the ODBC driver that instead of returning the data as adNumeric, it returns it as some other number type that wont exhibit this problem?
Thanks in advance!

Anyone :-(

Similar Messages

  • Date() - Buggy behaviour working with Number() or uint()

    It took me half day to track down this, apparently it is a bug (I don't know if there is some obscure logic behind it).
    Date() behaves much differently when casted/created with the same amount as Number() or uint()
    Here is the output when tracing:
    new Date()
    =
    Wed Jun 13 20:12:43 GMT+0200 2012
    new Date().time
    =
    1339611163266
    Number(new Date())
    =
    1339611163266
    uint(new Date())
    =
    3876334210
    new Date(Number(1339610984911))
    =
    Wed Jun 13 20:09:44 GMT+0200 2012
    new Date(uint(1339610984911))
    =
    Sat Feb 14 21:42:35 GMT+0100 1970
    As you can see, converting a date to Number(new Date()) or uint(new Date()) gives a completely different result.
    Also, working with the same time amount, if new Date(Number(time)) or new Date(uint(time)) returns a completely different date.
    So, even though milliseconds from 1st jan 1970 are obviously an integer, AS3 treats it differently if casted to Number or uint.
    Is there a logic? To me it looks like a bug...
    namaste
    Filippo

    If you look up the different numeric classes you will see how they differ in their limits.  One problem you will probably run into someday ( I have a couple times) is when you use a uint as a counter in a loop that is counting backwards... when it should reach a -1, which it cannot do, it jumps to 4294967295, leaving you scratching your head wondering why the loop never ended or some other out of range error occurs.

  • Problems working with different types of aggregation in two facts table

    Hello every Body!! Greetings from Brazil..
    At fisrt I'd like to say that I've tried to find some thead with the same problem, but I've foud no answere. That is why I'm typing this new post.
    Here we go ...
    I've a Fact table with one metric and two degenerate dimensions..
    For exemple:
    Invoice_number
    Puschase_Date
    Purchase_Value$
    When I model it at Business Model Mapping, I used the Aggregation's type below:
    Invoice_number - None
    Puschase_Date - None
    Purchase_Value - Sum
    So far it works fine at Answeres area.. Since I use only values from this Fact..
    But... if I try to join values from two different Facts Table (both of them sharing the same Dimensions) and the Second Fact has an aggregated value, it does'nt work... I get 'null' as values (metrics) of the second Fact Table...
    I think that it is caused because I'm working whith different types of aggregation, but I don't know the solution.
    By the wat, the second Fact I've told has only one metric, aggregated whith 'SUM'.
    Is there a solution? Any hint?
    Tks.
    Vettore

    int x = (int)(7 + 3.0 / 4.0 * 2); //the variable will do the math bracket first. then the va type will still be an int because int was never changed.
    Following the standard order of operations, 3.0/4.0 will result in a double, then 2 will be converted to a double before being multiplied to the result, then 7 is converted to a double before being added to the result, and then the (int) cast will force a conversion
    back to an int.
    Console.WriteLine((1 + 1) / 2 * 3); // 1 + 1 will be done first then 1 / 2 then * by 3
    Correct.
    I THINK THATS ALL WRONG ^ =/ like the comments
    Why?

  • Improving the LabVIEW Help: Working with Data Types

    Have you ever had trouble figuring out how to work with the waveform data type, the dynamic data type, or some of the other more complex data types in LabVIEW? As a tech writer on the LabVIEW team, I'd like to improve our documentation about working with data. What would you like to see? What would be helpful? Have you ever given up on a particular data type because it didn't work? Have you ever created a replacement data type because you preferred not to use a LabVIEW data type?
    Lacy Klosterman Rohre | Marketing Editor | National Instruments | 512.683.6376 | ni.com/newsletter

    I've been programming LabVIEW since around 3.1 / 4.0.  Over the years and versions, I've found it necessary to approach a lot of the new datatypes and algorithms with some healthy skepticism because I don't think we're usually given a "fair and balanced" overview.  Some of the things that are highly promoted that bring "ease of use" for beginners (and I *do* understand the importance of that when you're growing your LabVIEW user base) can carry significant performance penalties that are mentioned in more of a whisper, if at all.  I'd just like a more full disclosure of the tradeoffs -- the good, the bad, and the ugly.
    Waveforms -- very rarely use them, unless required for analysis functions.  I have a vague notion (between a belief and a memory) that they used to carry a significant performance penalty compared to arrays, but that the gap is now much smaller.  Still, I'm most comfortable with my old habit of using data arrays.  Some of this came about because a lot of my work uses counters where I may have a variable "dt" value or where my AI is clocked by a counter and the "dt" isn't internally generated.
    Dynamic signals -- have never used them.  Have no clear idea what good they're supposed to be, and they seem to be tied in primarily with Express VI's, which I have also studiously avoided.
    Variants -- Use them only slightly.  Performance issues are a question mark.  Exception: have learned that the implementation of Variant properties allows their use as an efficient way to create associates for string lookup tables. 
    Digital Waveform -- have typically avoided it except when graphing digital data during debug.  Haven't found any compelling reasons to use it.  I do like the notion of a compress/expand capability for sparse digital data, but haven't exercised it enough to trust the implementation. 
    Recap:  I don't need more simple "how-to's" in the help.  I need a LOT more "why bother's" that include both pros and cons. 
    -Kevin P.

  • MRDC - does it work with UB type STO's?

    Hi SAP gurus,
    I've been trying to get MRDC to work with my planned freight conditions specifically for UB stock transport orders.
    We've created a statistical condition that pulls into the UB STO header condition which only shows the value of the stock combined in the STO header condition.  With this condition it is then possible to enter freight conditions which will be distributed between the different line items according to the setup of the freight conditions used.
    Our problem is that we would like to use MRDC (we are on ECC6) for the settlement of all freight costs which are all planned delivery costs, for stock transports between our various plants.
    I've managed to pick up my test stock transport order (in our test client) in MRDC in test mode after I've added MRDC in OMR4 (with document type KR...is this correct?), but with the message "Enter a tax code in item 000001" (message M8755)
    I understand why the system would generate this message, as there are no invoice tabs in item level of a UB STO, and so there is no place to enter a tax code for the different items and so the freight condition can not pick up a tax code before it can be settled automatically.  I can use normal MIRO for these payments where I enter tax manually, but there are so many of these payments MRDC would be the better solution.
    Have anybody had a similar problem?  Any advise would be greatly appreciated.
    Regards
    Christo Vermeulen

    Hi,
    I am experiencing the same issue with my client...Can you pls let me know how you handled this issue.
    I would appreciate if you let me know the solution.
    Thanks

  • Working with Record Types

    Hi! I need to work with a Record Type in one of my functions.
    I have two questions:
    1) In my error handler, how do I return an empty record type
    and
    2) In the calling procedure, how do I evaluate whether or not my record type contains values.
    Any help is greatly appreciated.
    Thanks!
    ~Christine

    Hi! I need to work with a Record Type in one of my
    functions.
    I have two questions:
    1) In my error handler, how do I return an empty
    record type
    and
    2) In the calling procedure, how do I evaluate
    whether or not my record type contains values.
    Any help is greatly appreciated.
    Thanks!
    ~ChristineHi,
    You can't test if a record is "atomically" NULL. You have two choices:
    1- if one of the fields has a not null constraint then you can test using this field.
    2- Otherwise, you can use an indicator out parameter that tells you if there is a value or nothing in the record.
    Michel

  • IPod not working with any type of speakers

    I have a 30gb video ipod. Up until about 2 weeks ago, I used it with great results in my car, with an itrip and at home on an iboom. Then it just stopped working. The strange thing is, it is not a hardware problem, because when I connect it to either of those, or to my PC, it recognizes and charges the ipod. The ipod lights up as if it is ready to play, but if I put a song on, no sound comes out. Just to be safe, I tried my friend's ipod on both and it worked fine.
    I ran diags on my ipod and everything is fine. I have reset the ipod. I have updated my software to 1.2.1 on the ipod and 7.3 itunes. I know I can try to restore it, but I don't want to, unless it is the only way.
    The "genius" in the apple store said he has never seen anything like this before. I have an appointment with another genius on Monday, but I was hoping maybe you guys would have an answer for me....I have always had more luck here than anywhere else.
    Has anyone ever heard of this happening?
    Thanks in advance for your help.
    Nicki

    I've been having the same problem. A couple of days ago, i bought memorex ipod speakers and alarm clock and they didn't work at all with my 30GB iopd. I tested it on my dad's ipod (he has the exact same one as i do) and on my sister's nano and both worked, and i even went and tried my sisters speakers, which are just speakers with no alarm clock, and the ipod worked on there, so i decided to just return my new speakers and exchange them for ihome ones. This time, the speakers worked, but i had to control the songs by using the play and pause buttons on the ipod itself, when i'm supposed to be able to use the controls on the speakers and on the accompanying remote. Since the console can't control my ipod automatically, the alarm can't use the ipod when it goes off. Instead, it has to use the beeping sound. Again, i connected my dad's and sister's ipods, and, again, both of them worked perfectly. I, too, have tried everything to try to get it to work with no avail. I really hope i don't have to restore my ipod
    Please let me know if anyone has figured anything out about what's going on.
    Thanks!

  • Problem with number fields using ASP

    Hello all,
    I am running IIS 5.0 on Windows 2000 SP 2. I have Oracle 8.1.5 installed on this machine. I am currently only using the sample database that with Oracle. When I run a simple select statement from the ASP page, I see everything correctly, except the number fields. In SQL Plus, the same query works fine. The query only has three types of fields --> varchar, date and number. Varchar and date fields show up fine but the number doesnt. It shows up as 0. I am giving the code I used below. Please let me know if I am missing something or if there is a bug that needs to be patched. If it is a bug, then please let me know where I can find the patch for it.
    Thanks a lot,
    Prateek
    <!-- Begin code -->
    <html>
    <head><title>My first ASP page</title></head>
    <body>
    <%
    Set db = Server.CreateObject("ADODB.Connection")
    db.Open "dsn=oracle_conn;uid=scott;pwd=tiger"
    set rs = Server.CreateObject("ADODB.recordset")
    //set rs=db.execute("SELECT * FROM emp")
    rs.Open "SELECT * FROM emp", db
    rs.MoveFirst
    response.write("<table border=1>")
    response.write("<tr>")
    for each x in rs.Fields
    response.write "<th>" & x.name & "</th>"
    next
    response.write("</tr>")
    Do While Not rs.EOF
    response.write("<tr>")
    For I = 0 To rs.Fields.Count - 1
    response.write "<td>" & rs(I) & "</td>"
    Next
    response.write("</tr>")
    rs.MoveNext
    LOOP
    response.write "</table>"
    rs.Close
    db.Close
    %>
    </body>
    </html>
    <!-- End code -->

    Hi all:
    It seems like the above mentioned case is a bug. Supposedly it has been fixed in newer versions of Oracle but I am not sure about it as I dont have the time or resources to test and find out. But here is the fix for it in 8.1.5.
    It seems only the fields that have a size defined along with the number field dont show up properly. If you leave the number field as it is (without specifying the size), then it seems to work fine.
    Thanks a lot for all your help,
    Prateek

  • Keyboard IMac doesnt work with number key

    **** I have an Imac intel core  duo at 2,8GHZ with OSX 10.8.2 and I have an USB apple keyboard  with the number on it , the problem is that I c ant use the number on the right of the keyboard, i try the keyboard on an other computer and the number work, so the problem come from my system?????
    Exuse my french but  I m frenc
    thank s to help me
    Fred

    Maybe your Numpad is set to mouse keys? There is a function to use the Numpad as mouse replacement. You can turn this off and on in System perferences -> Universal Access -> Mouse & Trackpad.

  • Iphone wifi no longer works with one type of router...

    Hello all,
    I have been looking at other posts but have not found any resolution. My iphone 3g has always worked on my home wifi but stopped two weeks ago or so. It works fine on other peoples routers and my imac and powerbook pick up the wifi fine.
    I found that other people using the wcg200 gateway modem/router with comcast are all of the sudden having the same issue.
    Does anyone know of a fix? I hate to think we all have to go out and purchase a new piece of equipment when it was working fine for so long. Any help would be great.
    Thanks in advance

    Thanks for the tips! I tried it all but none of it worked.
    It seems to be everyone with a wcg200 can't get wifi to work. I have had the phone
    for 6 months now and it worked great till about 2 weeks ago or so. Nothing seems to work. Again,
    it works fine with other peoples wifi and my other computers work fine with it.
    Maybe someone can make this a pet project. I read that comcast updated the ROM on this model without telling us. If that caused it, can anyone think of how to make it work again? I am lost and I hate to have to buy a new modem/router if there is a way to fix this issue.
    Thanks again

  • BUG: Ctrl+Alt+ number to switch modules only works with number pad

    Really annoying, since this worked nicely in the beta. If, for example, you hold down Ctrl+Alt+1 (pressing 1 on the top row of the keyboard) to switch to the Library Module, it doesn't work. If you use 1 on the numeric keypad, it works fine. What's the big deal, you ask? Well, try using the number pad on a laptop - you either get to use the number keys or the regular keys, so this shortcut is essentially useless on anything other than a full-size keyboard.

    Windows treats Ctrl + Alt shortcuts as special. They are used as hotkeys for desktop icons, and if a key is used for that purpose, it overrides any use within a program. I did a little research, and setting a desktop hotkey to 3 will cause your LR symptoms, where you can't used the normal numbers and have to use the keypad to switch modules. On the other hand, you'd probably be seeing the effect of using the non-number-pad keys (they'd launch a program), so it's a mystery.
    In my testing, I noticed that the Firefox browser uses that key combination to switch between its tabbed sessions. If you're running that program, you could test to see if it exhibits the same symptoms.
    Hal

  • Working with complex types of datacontrol

    Hi ADF Experts,
    I am using JDev 11.1.1.7.0
    My requirement is I have a POJO which contains as below
    public class OrderProposalReadClient {
        public OrderProposalReadClient() {
            super();
        private String purchaseUnit;
        private BigDecimal stock;
        //  private XMLGregorianCalendar deliveryDate;
        private String deliveryDate;
        private ArrayList<String> openOrders;
        private BigDecimal minStock;
        private ArrayList<String> promotions;
       //getters and setters
    I have another java class whose return type is of List<OrderProposalReadClient> and this is exposed as Data Control.
    Now thing is that from the Data Control If I drag the return type as table. I do not find the ArrayList elements.
    In DataControl the structure is as such.
    returnOrderProposalReadClient
    -purchaseUnit
    -stock
    -deliveryDate
    -minStock
    -promotions
    -element
    -openOrders
    -element
    SO when I drag I dont get these 2 elements(promotions and openorders). I tried to follow Shay's blog but didn't find any helpful solution.
    My requirement the table should contain all the elements. And if promotions and open Orders are more than 1 then I should see 2 recored with rest values same.
    Please help.
    Thanks,
    Animesh

    Hi,
    this is because
       private ArrayList<String> openOrders;
    doesn't return a collection of POJO but Strings. Try
       private ArrayList<OrderStrings> openOrders;
    and create a class
      public class OrderStrings (){
          private String openOrders;
          public void setOpenOrders(String s){this.openOrders = s;}
          public String getOpenOrders(){return this.openOrders} 
    This should do the trick
    Frank

  • Materialized view from prebuilt table doesn't work with spatial types?

    Hello, I'm trying to build a materialized view of a table using the prebuilt option and a pre-built table.
    Oracle gives me an ORA-32304 error, saying it can't do this with user-defined types. The original table has no user-defined types, but does use an sdo_geometry column. Is this what it's complaining about?
    Now I can sort of understand this, but here's my real problem: the materialized view I'm creating is comprised of a subset of the columns from the original table, but not the geometry column. Is Oracle right in refusing my prebuilt request? Does anyone know of a way around this (besides creating the MV from scratch without prebuilt).
    I've successfully created an MV on another table, which doesn't have a spatial column, using the prebuilt option and a subset of columns.
    (I'm using Oracle 11.2.0.2.0 on both master and slave databases)

    Good news, everyone! =)
    SAPwebIDE team fixed this issue with MMD template in SAPwebIDE v1.10.2. available on http://hanatrial.ondemand.com.
    This "Bug" or "Feature" was presented in 1.8.x and 1.9.x SAPwebIDE (i've used local installation) and now it's gone in v1.10.2. Thank you, SAPwebIDE Team! =)
    The difference between versions of MMD template is only in one file (fixed one is on the right):
    Master2.controller.js
    And here it is:
    Now, only one question remains: HOWTO:SAPUI5 Fiori-like report. (mix control's value as key into binding context)
    Best regards, ilia.

  • Working with table type any with mapping according to keys

    Hi All ,
    I have table type any with data and I need to fill structure type any according to respective  key and verify that the field is have mapping .
    i.e. I have a table <lt_itab> and I need to find the specific entry on it according to the key and the mapping .
    I guess that the best way is to give example.
    <lt_itab> -  Is type any and can have lot of entries
    lt_key  -  Is specified table with field_name and value
    lt_map  -  Table with field_name which have mapping (have unique field name in every entry of the table )from f1..fn -
    I need to fill fields in <ls_output> just if they appear in lt_map
    <ls_output> - Is structure type any that in the end should have all the data from <ls_itab> according to the mapping and the keys of the table
    <lt_itab> - table
    f1  f2  f3  f4  f5 f6
    1   2    3  4   5  6 
    5   5    4  3   8  4 
    6   9    2  5   3  5
    1   3    3  4   2  1
    lt_key  - table
    field_name   value
    f1            1
    f2            3
    lt_map  - table
    field_name
    f1
    f2
    f5
    f6
    <ls_output> - structure
    field  value
    f1  -   1
    f2  -   2
    f3  "Not in mapping so it's empty
    f4  "Not in mapping so it's empty
    f5  -   2
    f6  -   1
    <ls_output> have the field values of the last entry of <lt_itab> according to the key of f1 and f2 and according to the mapping f3 and f4 are empty
    since they are not appaer in lt_map
    Regards
    Joy

    Hi
    You have to loop fully your main table in order to get the records in according to they keys:
    LOOP AT <LT_ITAB> ASSIGNING <WT_ITAB>.
       L_KO = SPACE.
       LOOP AT LT_KEY.
            ASSIGN COMPONENT LT_KEY-FIELDNAME OF STRUCTURE <WT_ITAB> TO <FS_KEY>.
            IF <FS_KEY> NE LT_KEY-VALUE.
               L_KO = 'X'.
               EXIT.
            ENDIF.
        ENDLOOP.
        CHECK L_KO IS INITIAL.
        LOOP AT LT_MAP.
            ASSIGN COMPONENT LT_MAP-FIELDNAME OF STRUCTURE <WT_ITAB>      TO <FS_FROM>.
            ASSIGN COMPONENT LT_MAP-FIELDNAME OF STRUCTURE <WT_OUTPUT> TO <FS_TO>.
            <FS_TO> = <FS_FROM>.
        ENDLOOP.
        APPEND <WT_OUTPUT> TO <LT_OUTPUT>.
    ENDLOOP.
    Max

  • Uploading csv file with number type data to database using apex

    hi
    am trying to upload csv file to oracle database using apex when i select the file using file browser and click on the button.
    my table looks like
    coloumn type
    col1 number(2)
    col2 number(2)
    col3 number(2)
    col4 number(2)
    please tell me the steps i need to follow
    urgent requirement

    This thread should help - Load CSV file into a table when a button is clicked by the user

Maybe you are looking for

  • How to use NewFilePanel class?

    Hi, How do i use the NewFilePanel class? I want to change the default directory textField to a URL i define. How should i do it? Is it i should use the setDirectoryURL method? NewFilePanel nfp = new NewFilePanel(); // when i want to change the label

  • MM01-Legal Control Data

    Hello Experts, I have a requirement regarding creation of material.The version i am using is ECC6.0. I am creating a material by copying from existing material.By giving enter in each and every tab the data is getting copied. when coming to foreign t

  • Unable to unlock bootloader.

    I have an Xperia tablet Z, I've checked the service menu and confirmed that the bootloader unlock allowed value is "Yes". I've requested and received the unlock key, and following the instructions on http://unlockbootloader.sonymobile.com/instruction

  • Re-publishing to iTunes - should it take as long as first time???

    Hello, Last week I "shared" an iMovie '09 project to iTunes. When watching it a few minutes later I realised I'd made some mistakes, so I went back to iMovie edited it some more (one new sound effect plus I copied one scene from another project). I t

  • SP in Sales Oppurtunites

    Hello Friend I create user defined field on OOPR ie Sales Opportunity udf is as  u_postby  &  i add valid value in udf ie opp create by Name ie 1 ) ABC 2) zxcv ABC user create Sales Opportunity document after that second user ZXCV can change his name