Bound variable types and how to tell?

is there a way to tell what type a bound variable (really the column its being used against) is?
i am writing a generic sql application and need to find out what type a bound variable is so i can convert the value to the appropriate type to allow the use of indexes.
is there an easy way to do this without having to write a lame (slack) sql lexor and interrogate the database?
does occi automagically do this for me?

Yes, you have to use MetaData. If you executed a statement and got the Resultset, you can use rs->getColumnListMetaData() to get the information about all the columns that are fetched. But if you want to know before executing (eg: for setXXX() on Statement) then you will have to use con->getMetaData() and describe the tables.

Similar Messages

  • Read variable type and value from LabView

    By using the TS. Sequence class i'm trying to get the variable type and values of locals, parameter, fileglobal and stationglobal. Unfortunately i'm not able to find the right function. Hope someone can help me.
    Kind regards
    Lars
    Solved!
    Go to Solution.
    Attachments:
    ReadName.JPG ‏34 KB

    added PropertyObject Type to the loop. But doesn't matter what i do, i just get the first type from fileglobals back...
    Attachments:
    With_PropObj_Type.JPG ‏61 KB
    With_PropObj_Type_output.JPG ‏33 KB

  • What is the usage of Request Variable ? and how we can use it ?

    Hi All,
    What is the usage of Request Variable ? and how we can use it ?
    Thanks in advance

    Hi,
    A Request variable is the same as a Session variable:
    http://download.oracle.com/docs/cd/E12096_01/books/admintool/admintool_Variables4.html
    Cheers,
    Daan Bakboord
    Scamander Solutions

  • Variable type Hierarchy, how to get the value from another similar variable

    Hi.
    We have created a variable, type hierarchy (using ORGEH hierarchy in HR based on 0ORGUNIT). Let's call this VAR1. We want to fill this with an User Exit, beacuse we want VAR1 to have the value from another variable, VAR2, which is also type hierarchy (and based on the same characteristic).
    However, when we program this user exit and use the VAR1 afterwards, it just behaves as if we have a single characteristic value and not a node value. As a result, we just get posts which do have the 'parent itself' as characteristic value, and none of the subnodes...  Any hints as to what we can do in our User exit to get the value passed over from VAR2 to VAR1 as a node value? Is there any spesific syntax to be used here that we are missing? ( The VAR1 and VAR2 are both defined as hierarchy variables, we have double checked...).

    Hi,
    are you on BI7.0? There you can create variables type replacement path and get the value out from a different variable without any coding.
    regards
    Cornelia

  • Use of variable types and rounding...

    I'm kinda confused on what variable types to use. I want it so that when I divide two numbers, it'll either round up or down, and give me a rounded number w/o a decimal.
    Examples...
    184/2683=7
    164/2683=6
    I have been fiddling with it for a while now, and I keep getting rounded down numbers, even if the decinal is more than .5. Thanks in advance!

    184 / 2683 = 0.068579947819604919865821841222512 -> 0.07
    164 / 2683 = 0.061125605665300037271710771524413 -> 0.06
    Use Math.rint (please read the javadocs...) and some scaling (multiply by 100.00, divide by 100.0 etc).
    Beware - when printing your result could be:
    0.070000000000001
    or
    0.069999999999998
    instead of the expected value 0.07
    for instance, due to the properties of floating-point arithmetic. If you want to round the number only for displaying it, use java.text.DecimalFormat or java.text.MessageFormat.

  • What type and how many gigabyte external hard drive do I get for my iMac?

    What brand and what features and how many gigabytes do I need in an external hard drive for my new imac?

    I am sure if I spent the time reading those pages, I would lose more time than I would save with a Firewire drive if I ever had to do a complete restore. If you ever have to do a complete restore, just run it overnight. Do like I do, save your money, maybe buy some Apple stock, and you will make more than enough to compensate yourself for the extra time it might take.
    The only time you might need extra drive speed is for the operating system, or if you do a lot of heavy graphics and video work, or do a lot of work on a disk-based database. (If speed is an issue with a database, consider using memory-based software instead.) Backup is not on that list, unless having the computer up and running is so critical that you should be using a RAID backup system instead. For the vast majority of computer users, speed will not be an issue. After all, many people backup to Time Capsules over WiFi, and that is slower than USB2.
    When it comes to backup, people should be speedy about getting a backup drive. If the extra cost of Firewire causes a delay doing that, it could easily cost more time and trouble than the extra speed will ever save them.
    macjack wrote:
    Bruce De Benedictis wrote:
    USB2 ... It may be a touch slower if you should ever have to recover a volume
    Please check your information...
    http://www.lyberty.com/tech/terms/usb.html
    http://www.firewire-1394.com/firewire-vs-usb.htm
    These were my first 2 hits on Google, there are pages more you can read at your leisure.

  • Is it variable? and how?

    Hello there,
    I have a animation wich works on buttons. And there is a charecter who does the things wich are mensioned on names of buttens.
    Untill then everything is fine, but I would like the charecter to do a different move when involved person clicks on a random button for the, lets say, 5th time.
    I have herd that it is posible with varables, I hope you understood me and will be able to explain how its done.
    Thank you.

    It is not clear what yopu mean, so you will probably need to explain using a detailed example.  If the idea is that you want clicking the same button to do different things at different times, then you need to create variables that you adjust and use to test if one action or another should be taken.
    Just an example, not a literal bit of code...
    if(createdVariable == 5){
         // do this
    } else {
         // do that
    // adjust createdVariable

  • How many K8T Neo2 different versions? (and how to tell them apart)

    First of all, hello everyone ^_^ This is my first post so... I hope I won't be annoying anyone.
    My questions are: is there a way to tell (from the name/item-code/prod number) which version "K8T Neo2" (code 6702-E) has the Promise controller onboard, and which not?
    Are there different mainboards for each country?
    The (long...sorry... ) explanation to my question follows :
    I live in Italy, and I'm trying to find a "K8T Neo2-FIR" MSI Mainboard, but it seems this mb model has not yet shipped in my country (I can find K8T Neo-FIS2R easily, but not the Neo2).
    I visited some (german) online shops, but descriptions are often not clear enough (and images are often taken from the wrong board...): which "6702-E" mb versions have the Promise controller on board?
    Having visited MSI site in different languages, it seems to me that for the american market (http://www.msicomputer.com) there are the "FIR" and "F" versions of the MB , the second without the Promise. For the german market ( http://www.msi-technology.de, the nearest country where i found online shops) there is only one 6702-E version of this mb, and it seems it's without the promise controller. Now, for the italian site (http://www.msi-italia.com) ... the link "Mainboards" leads to the international "msi.com.tw" site, where I read that the promise controller is "OPTIONAL"... so this doesn't give me any info.
    If anyone has experience of this, or any info, please reply
    Thank you in advance

    Try the following online stores :-
    http://www.ebuyer.com/customer/products/index.html?action=UFNTaG93UmVzdWx0cw%3D%3D
    http://www.scan.co.uk/index.asp
    http://www.overclockers.co.uk/
    I'm sure they will all ship within the EEC.

  • What's the step type and how?

    Hi experts,
    I have a userdecision as soon as the workflow starts.If the user selects NO the next task must be the same userdecision unless he selects YES.There must be a deadline remainder,if the user doesnot choose the YES option after a specific time period(say for 5min).
    How to set up this activity?
    Any inputs will be appreciated.
    Thanks in advance.

    Hi,
    you can use a loop step and create a container element. When the user choose no loop if yes (set container element to X as end loop condition) and go further on.
    In the Decison workitem you can define deadlines by using the tabs.
    regards

  • Reactivation of my membership and how to tell what product i actually have.

    Hi
    My membership has been cancelled, i changed my credit card number and need to activate my account again. I did and now i dont know how much i will be billed, i just want the photoshop CC i ordered from the start, not the creative cloud stuff which i fear is not on my bill. This is confusing and i dont know excatly what to ask and who to ask. it would be great with a chat or something but i cant find it.
    Thanks.

    Moving this discussion to the Adobe Creative Cloud forum.
    Hl_ if you are facing difficulties starting your membership then please contact our support team directly at Get help with orders, refunds, and exchanges.

  • Which way is it to load countries and how to tell ...

    I read at least of 2 methods one can load countries on the Nokia;
    - Nokia Ovi Suite>Maps
    - Nokia Map Loader
    Can you please tell me which one should be used and why there are 2 ways?
    And is there a way to tell which country / state / province was already downloaded on the mobile? 

    Elie, it doesn't matter ! You only need the maps for the area you live or an area you plan to visit, the best way to sort it is use Nokia Map Loader . Connect phone, loader will detect it, remove old maps, then select JUST the maps you want and any Voices and download them onto your phone. That's it.
    Good Luck
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • Condition Type MVK0 & MVK1 and How it is linked with SD pricing ?

    Hi Experts,
    In my purchase order, line item for an article (material) there is a condition type MVK0 (Sales Price inc. Tax) and MVK1 ( Sales price excl tax) which appears in Red in IS-Retail server.
    The pricing analysis says that the condition has been found without the condition record.
    The details for condition type MVK1 is
    Condition class:- Prices (B), Calc type:- C (QTY),
    Condition category J ( Customer Expected price)
    There is no access sequence for this condition type.
    Manual entries      D Not possible to process manually
    The details for condition type MVK1 is
    Cond. class   B Prices
    Calculat.type C Quantity
    Cond.category W Expected sales price (including tax)
    Access Sequence:  Not maintained
    Manual entries      D Not possible to process manually
    I wish to know how to populate values for these condition type.
    Also could someone throw light on the condition category Wand J.
    what is the importance of MVK0 & MVK1 condition types and How it is linked with SD pricing?
    if we want this condition types values in PO what settings needs to be done?
    Any Input is highly appreciated.
    Regards,
    Selvakumar. M

    CLOSED

  • What is JS.Agent-58 and how do I get rid of it?

    Hello.  I just ran a ClamXAv scan and it came up with a trojan called JS.Agent-58.  It's the weirdest thing because it is in a file I would never expect it to be in.  I buy a lot of things online and I do not print my receipts.  Instead I save them as PDF files.  The Trojan is in a Macy's PDF saved receipt from November.  I have no idea how it got there.  Anyway, if I delete the receipt, will that be enough.  Can somebody tell me what exactly this particular Trojan does and how to tell if it has been downloaded on my computer.  And, will someone tell me how to completely remove this Trojan from my computer, if it is indeed on my computer?  Please and Thank You.

    First a couple of tips:
    As I mentioned to the OP, for fastest, most efficient answers to questions such as this, visit the ClamXav Forum.
    Secondly, nobody but the OP and I will probably ever see your posting here. Only those who post or choose to follow a discussion will ever notice a new posting. For future issues, if you don't find the answer in an older discussion, then you will always be better off posting a new topic which will attract attention from other troubleshooters who are currently on line. That's just the way the forum works best.
    The Happy Crab wrote:
    ClamXav has identified a virus which I seem to have gotten in August 2014 called JS Agent-58 that is NOT in my mail but is a Page.webarchive filename.  I have rescanned and had it quarantined but what do I do now and how did I get it in the first place?
    I would need to know where it came from originally in order to have any idea how you got it. That information may still be in you scan log, so here is how to find it:
    In ClamXav open the Scan Log by clicking the icon on the tool bar
    When the "clamXav-scan.log" (or "ClamXav-scan.log" for the App Store version) window opens, you will only be looking at the only the most recent results
    Select Find->Find from the Edit menu or type Command-F
    Type "FOUND" in all caps and without the quotes in the Find box
    Uncheck the "Ignore case" box and hit enter
    Click the "Next" button or type Command-G until you find what you are looking for
    If it doesn't show up in the most recent results, use the "▲ Earlier|" button in the lower right corner of the window to move back through the log.
    Copy the entire line and paste it into a reply back here.
    There is an easier way to do this using the Terminal app, but I would need to know which version of ClamXav (App Store or web site) you used to find it.
    Be sure you read general guidance in Dealing with infected files. Moving it to quarantine has disabled it. You should probably make sure this isn't a file you need before moving it to the Trash Can, but that would be next. It's always possible this is a false alarm, but I doubt it.
    Hopefully you have already read my analysis of what this is and understand there is close to zero chance it could affect your computer.

  • Documentation about variable types & their processing in i_step = 1, 2 etc.

    Hello experts,
    is there any documentation about variable types and their processing in i_step = 1, 2 etc.? I know there is note 492504 "Dependent customer exit-type variables", but I don't understand, whether a variable which is NOT "Ready for input" will be processed in i_step = 1 or not  (quote of SAP library: "i_step = 1: Call takes place directly before variable entry."). I experienced coincidentally, that some variables not "Ready for input" will be processed there and some not.
    Furthermore it is an error, isn't it? Why has a variable without input possibility to be processed before input? Is this really the case?
    Confused, any hints are welcomed!
    Regards M.L.

    for I_STEP = 1
    Call before the variable screen .
    for I_STEP = 2
    Call after variable entry. This step is only started up when the same variable is not input ready and could not be filled at I_STEP=1.
    for I_STEP = 3
    In this call, you can check the values of the variables. Triggering an exception (RAISE) causes the variable screen to appear once more. Afterwards, I_STEP=2 is also called again.
    for I_STEP = 0
    The enhancement is not called from the variable screen. The call can come from the authorization check or from the Monitor.
    There is a good HOW to Guide which explains the importance of I_STEP :
    http://service.sap.com/~form/sapnet?_SHORTKEY=00200797470000078090&_SCENARIO=01100035870000000112&_OBJECT=011000358700002762582003E
    Another from SDN:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/bw-and-portals-05/five%20ways%20to%20enhance%20sap%20bi%20backend%20functionality%20using%20abap.pdf

  • [Forum FAQ] How to tell if the DAC port is automatically changed or not

    Introduction
    Per Books Online:
    http://msdn.microsoft.com/en-us/library/ms189595.aspx
    SQL Server listens for the DAC on TCP port 1434 if available or a TCP port dynamically assigned upon Database Engine startup.
    Also, we can go to the following registry to specify the DAC port number manually:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQLServer\SuperSocketNetLib\AdminConnection\Tcp
    The error log contains the port number the DAC is listening on. Besides looking at the error log, how to find which port is used by DAC connection and how to tell if the DAC port is manually set by us or assigned automatically by SQL Server?
    Solution
    The following query can be used to check if there is an existing DAC connection and it also give us the port number used by dedicated admin connection.
    SELECT name,local_tcp_port FROM sys.dm_exec_connections ec
    join sys.endpoints e
    on (ec.endpoint_id=e.endpoint_id)
    WHERE e.name='Dedicated Admin Connection'
    Here is the scenario to test if the DAC port is automatically changed or not.
    There are two instances are running on one server. I specified the same DAC port number 5555 for the two SQL Server instances by modifying the registry
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQLServer\SuperSocketNetLib\AdminConnection\Tcp
    Opened the DAC connection to instance 1. Executed the above query, it returns the result:
    name                                                  
    local_tcp_port
    Dedicated Admin Connection               5555
    Then, opened a DAC connection to instance 2. It throw out the following error message:
    Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Client unable to establish connection because an error was encountered during handshakes before login.
    Common causes include client attempting to connect to an unsupported version of SQL Server, server too busy to accept new connections or a resource limitation (memory or maximum allowed connections) on the server..
    Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : TCP Provider: An established connection was aborted by the software in your host machine..
    Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Client unable to establish connection.
    Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Client unable to establish connection due to prelogin failure.
    The above error message was thrown out because the DAC port number 5555 was not available for instance 2 which was occupying by instance 1. After restarting the SQL Server engine service of instance 2, if checking in the registry, you would see a new DAC port
    number has been assigned to the second instance.
    Then, the DAC connection to instance 2 succeed this time and executed the above query, it returned the same port number which is same as the one in the registry key and the port number was assigned automatically.
    DAC port will not change even SQL Server service is restarted only if the TCP port is available.
    More Information
    http://msdn.microsoft.com/en-us/library/ms189595.aspx
    Applies to
    SQL Server 2012
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    I tested your script after
    establishing a DAC connection from SSMS 2014. It worked as described. Thank you.
    SELECT name,local_tcp_port FROM sys.dm_exec_connections ec
    join sys.endpoints e
    on (ec.endpoint_id=e.endpoint_id)
    WHERE e.name='Dedicated Admin Connection'
    name local_tcp_port
    Dedicated Admin Connection 1434
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

Maybe you are looking for

  • Total JDBC connections rising steadily

    Our J2EE application has been crashing recently. The app stops responding to requests and is eventually restarted by OPMN. I have been monitoring it through the enterprise manager web page since the the crashes seem to be related to waiting for datab

  • Workaround for not having a static IP address? Just need to VPN into server

    I work from home, and so do my partners. I recently bought a mac mini server, so that we will have 1 central computer where all the projects are stored. Now with me being a mobileme user, I of course have access to it no matter where I go. But for my

  • Sticking notes problem - is this a bug? Is there a workaround?

    Hi does anyone have any advice for stopping "sticking midi notes" when played using a midi keyboard? I think the instrument my friend has been having trouble with is specifically the evb6 and notes sticking - with the only way for him to remedy the s

  • Automatic: opening files in CS3, saving them, and exiting

    Dear Adobe CS3 gurus, is the following task achievable for Adobe CS3? Task is: I want to open Adobe CS3 app from windows command prompt (use start xxx etc); then, I want Adobe CS3 app to look into a specific folder, open all files in there, save them

  • Waht to restrict user to enter decimal value?

    Hello Experts, I want to user to restrict to enter the decimal value in text field on forms. Please help me out. i do not want the round fucntion but want to indicate the user. Thanks Yash