Avoid seeing & as a variable

I am trying to do a select statement from within Visual Basic where my column data has an & stored in it. When I perform this statement it returns no rows because it expected a substitution for the &.
Select * from table where column = 'Sanford & Son'
Does anyone know how to avoid this in VB? I've tried the set scan off and set define ? functions but it doesn't let me execute these statements from VB.

Tim,
Well doing SET DEFINE OFF; should do the trick, and you should be able to excecute that from VB doing passthrough or ExecSQL where it doesn't syntax check the sql you trying to run. Secondly maybe your getting no rows back since the data might be case sensative, you could try ...
Select * from table where upper(trim(column)) = upper(trim('Sanford & Son'))
maybe that might get your data (though a table scan will occur). Overall though doing SET DEFINE OFF should work.
I've dfone many VB applications but I always made the connections PASSTHROUGH so the ODBC Jet engine doesn't try to syntax check/interpret the pl/sql I'm writting, hence the & character, and any code for that matter is left untouched and goes directly to Oracle.
Thanks,
Tyler

Similar Messages

  • Can't see 7.x Variable in 3.5 Query Designer

    Hi, I created a BEx Variable on one of my characteristics in the 7.x Query Designer and cannot see this same variable in the 3.5 Query Designer.
    Does anyone know if this is a known limitation?
    Thanks!

    Variables are not version specific. Variables created in any version are visible in both 3.5 and 7.x query designers. In 7.x query designer when you create a variable it allows you to select the InfoObject the variable should be associated with. For example if you have an InfoObject that has a reference InfoObject, then a variable created on this InfoObject is not visible on the reference InfoObject. I think variables created on navigational attributes also show different behavior, unless you select the base Infoobject as the reference Infoobject for the variable. With 3.x the InfoObject to which variable is attached behaves differently.
    If you try to create a new variable with the same technical name as the one you created in 7x, you will get the message that the variable already exists. Check the reference infoobject for the variable you created in 7.0 and that may help you. You might want to check out the details of the variable in RSZGLOBV table for any clues.
    Thanks
    Vineet

  • How to avoid seeing data for a particular member in the row level

    Hello,<BR>I am using Essbase. In that i am having members like taks n/a, demand n/a. Purpose of these members are, if i load data for demand, task wont have data so i am mapping to task n/a.And same for the task loading.I am using alphablox for reporting and report script for retriving the data.So, if i select the task n/a and demand n/a then some value will be existing for this. Is there any possibility to remove this from report.I mean while seeing in the report, it should not get this member and respective value for display and also avoid taking this data for any manipulation.I know RESTRICT for column level data. Is there anything for row level restrictions.<BR>Please help me on this.<BR>Regards<BR>R.Prasanna

    Hi,
    Into the rule containing the Color metadata, you can restrict the values of the list.
    In "Has restricted list and pane", list the values 1, 2 and 3 (new line for each value) :
    1
    2
    3
    Romain.

  • Subject: Cannot see the characteristic/variable in a query

    I am in a query designer. I am looking at query 0TCT_MC21_Q404. It sees under Characteristic Restriction,
    A characteristic 0CALWEEK which is restricted by the variable 0CWEEK-26-0CWEEK which is last 26 weeks.
    My problem is I do not see this any where under Dimensions->Time->0CALWEEK->Chacateristic Value Variables why? Where can I find this variable and drag and drop to set another query.
    Thanks a lot,

    I still do not see them. As I said it is SAP exit variable.
    What is intestesrting, it is for a characteristic 0CALWEEk [Week}
    but if you look under Dimensions, there is no chacateristic like that, instead it 0CALWEEK [Calendar Year/Week|. Why two descriptions are different even though technical namse is the same.

  • Internal error in IP - cannot see filters with variables

    Hello Gurus,
    Please help me with this issue.
    I'm having a problem with data in a productive environment. When I try to access any filter with a variable, in Modeler, I receive the following error message:
    Internal error: Failed to read variables for characteristic XXX
    The list of infoobjects in the filter where exists a variable is showed "Object not found" instead of the name of the variable. 
    When I open the same filter using Bex Query designer I can see all information, including variables.
    It seemed that this problem doesn't affect function planning, only filters.
    What can be the problem?
    Thanks in advance.
    Best regards,

    Sue,
    create just the same variable as a new one; and delete the old one via transaction RSZDELETE; but you have to deselect the old variable from your selection before deleting the old one.
    Kind regerads,
    Clemens

  • Want to See Selected Input Variables in the query output

    Hi al
    My client gives a requirment like they want to see selected variables in the query output. Like suppose if i am  entering Profit center, controlling area, version, caldayas a input on the screen. Now they want to see only Profit center and version on the query result.
    Please let me know if any one has this solution.
    Regards,
    Amit Shetye

    Hi
    Can you please give us user requirement and according to ure requirement so we given replies . If ure requirement please explain detail
    But it is not neccessary that we can put something in free char and all. Inspite of that they wanted to select the input variable as per their requirement. They dont want to restrict them in Free char.

  • How to see ASP/VBScript variable names inline

    When you use an ASP output in a form control (like <%=Submit_Button_Label%>), you can easily see on the page what you've done. This doesn't work for ASP outputs in the rest of the page--all you see are "ASP" graphics all over the place.
    I'm in the process of externalizing all of the text on our ASP pages to variables for translation, and my choices seem to be having a completely unreadable page (where there are just a bunch of ASP labels and not much else) or using a structure like
    <% If False Then 'so we can find it easily on the page, leave the original text
        %>
                        I accept and agree to abide by the Terms of Use
                        and Privacy Policy.
        <% Else %><%= TOS_Prompt %><% End If %>
    so I can at least find things.
    Is there a third option?
    Thanks in advance!
    Message was edited by: Amy Blankenship

    How bout those crickets?

  • Problem not seeing timestamp but variable of type date

    Hi everyone I am trying to do the tutorial @ http://www.oracle.com/technology/obe/ADF_tutorial_1013/10131/index.htm....
    But when I have generated my java objects from table, in my classe example ServiceRequest.java my variable requestDate is of type Date not Timestamp as said in the tutorial .... Will it have an effect on my application if i continue with Date or should i change it to Timestamp by using refactor...... Will it have any impact am new to TopLink here .. I have completed the srdemo tutorial using EJB 3.0 everything goes fine.,.....
    Can you help me please. Thank you for you help...
    Regards
    Lutchumaya

    Ok am sorry here is the link i have downloaded the tutorial.....
    http://www.oracle.com/technology/obe/ADF_tutorial_1013/10131/ADF_tutorial.pdf
    Yeah but i should get the variable of type Timestamp not Date as mentioned in the tutorial................
    Thank you for your quick reply Frank.
    Regards
    Lutchumaya

  • Avoid Global Public variables...

    Hello Experts,
    I have declared few variables in package specification (l_test , l_test_2)and i'm using across the API procedures.
    But when i run the TOAD expert it says "Avoid defining global public variables in the package specification."
    So i thought of moving the code from package specification to package body...
    Is this a good approach and will my code work as it was working before if i declare in the body...
    Plz suggest ...
    Thanks...
    Earlier
    Package Specification Part
    CREATE OR REPLACE PACKAGE PKG_TEST
    AS
    l_test NUMBER(1);
    l_test_2 NUMBER(2);
    END;New
    CREATE OR REPLACE PACKAGE BODY PKG_TEST
    AS
      l_test NUMBER(1);
    l_test_2 NUMBER(2);
       PROCEDURE process
       IS
       END process ;
       PROCEDURE process_2
       IS
       END process_2 ;
    END PKG_TEST;

    Linus,
    Just so you are aware, the scope of those variables are different depending on if they are defined in the PACKAGE (SPEC) or PACKAGE BODY.
    Declared in the PACKAGE (Spec): Globally accessible to everything on the Schema.
    Declared in the PACKAGE (Body): Globally accessible to everything with that particular Package.
    So as you can see, this quite a big difference. TOAD is warning you because putting globals in the PACKAGE is a pretty sloppy coding practice that can easily lead to difficult to maintain code. While you can ignore it, I'd suggest not doing that. ;)
    In fact, I'd suggest avoiding globals altogether when possible. Passing parameters may be more time consuming, but it makes it very clear what each procedure/function should be doing, and future programmers will thank you. Time you'll save on initial programming will be made up when doing maintenance. But admittedly globals are useful, just be careful when using them. Getting your code to work isn't enough; you should aim to make it clear and understandable too.

  • Can't see good variables in Query Designer BW 7.0

    Hello,
    The technical name of our caracteristic variables in the Query Designer are prefixed by "OR_" or "SV_". I try to make a filter in this variables (for example: a user must be able to see only "SV_" variable) with the authorization objects S_RS_COMP and S_RS_COMP1. But this filter does not work, even if the ST01 trace shows me a Return Code = 4 for the test in the variable technical name.
    Have I made something wrong ? is it a bug ? (we are in BW 7.0 SPS9 with Sapgui 6.40 SP 19 and BEx SP 12).
    Thank you for your help

    Hi Paul,
    If iam not worng, are you asking about Infoobject level security in BW?
    If it is, the following are the steps need to be implemented:
    <u><b>Steps to Implement InfoObject Security (field-level security)</b></u>
    1) Make the InfoObject authorization-relevant.
    The Authorization Relevant setting for an InfoObject made in the InfoObject definition on the Business Explorer tab. The business needs will drive which InfoObjects should be relevant for security. Keep in mind that the people using SAP BWare running queries to help make strategic decisions on how to better run the business. The decision makers typically need to see more data on SAP BW than they would need to see in SAP R/3.
    2) Create a custom reporting authorization object.
    Since there are no reporting authorization objects provided for InfoObjects, you will have to create your own reporting authorization object for any InfoObject you decide to secure. This is done in transaction code RSSM. When creating your reporting authorization object, you select which fields to put in the authorization object from a list of authorization-relevant InfoObjects. Only InfoObjects that have been marked Authorization Relevant are eligible to be put in a reporting authorization object.
    3) Add your new authorization object to a role.
    Once you have created an new reporting authorization object and linked it to the appropriate InfoCube(s), users will need access to your reporting authorization object. You will need to manually insert your object into a role.
    4) Add a variable to the query.
    The reason the variable is required is sometimes unclear at first. If we want a  query to only provide results based on the division, for example, then the query itself needs the ability to filter specific division values. Before we can secure on division, the query must be  able to restrict data by division. The only way the query can restrict data dynamically is through a variable.
    5) Link the reporting authorization object to an InfoProvider.
    Linking your reporting authorization object to an InfoProvider is a very critical step. In this step, you will impact people currently executing queries for the InfoProvider that is now related to your reporting authorization object. This linkage forces your reporting authorization object to be checked when ANY query tied to the InfoProvider is executed.
    Hope it helps, please revert back if you are asking for something else.
    Please reward points if it is sueful.
    Thanks & Regards,
    Santosh

  • How to see selection variable in BEX WEB ANALZYER

    Hi,
    I'm not able to see the  values of selection variables in bex web analyzer report. pls help.

    Thank you for your response. But it didn't work.
    I am able to go to 'lay out' option in bex analyzer and set 'display text variables' to All so that I can display all the variables in report.  Is there any similar option available in bex web analyzer.
    I am able to see the variable selection parameters I have selected in 'INFORMATION' tab of web analyzer. But I would like to see the same variables on 'data analysis' tab.
    Do I need to change any setting in order to display filter values that are entered during run time of the report.

  • Unable to see substituion variable in the reporting studio

    Hi,
    I have added substitution variable to the reporting studio the variable name I gave as var1
    and value as 2009,but I am unable to see the substitution variables in my reporting studio.
    What can be the reason for it?
    Thanks

    Hello,
    you have to quote the value because it doesnt start with a letter.
    Every Value which you had to put in quotes in an Calc Script or Member Formula or so, you have to quote in FR Studio too. Planning accepts the value without quotes, FR Studio doesnt.
    Bye
    Kevin

  • Can't see subprocess variables in multiinstance subprocess

    Hello.
    I'm trying to generate a multiinstance parallel subprocess, but when i create it i can't see the following variables:
    - loopCounter
    - numberOfActivities
    - numberOfCompletedInstances
    - numberOfInstances
    - numberOfTerminatedInstances
    This variables where created automatically in 11.1.1.3 when you created the subprocess as multiinstance, now i´m using 11.1.1.4 and no one of this variables is created.
    Please, any help with the topic would be appreciated.
    Thanks in advance.

    This may not be much help for your 11.1.1.4 issue, but here's how I worked around the problem with the "loopCounter" variable not always being present in 11.1.15 when using subprocess activity with "MultiInstance" selected. I believe there are two bugs that these steps might help you work around.
    Oracle BPM's subprocess activity can have two different loop properties. This means that based on an incoming array of information, work item instances are created for each item in the array.
    Double click anywhere in the subprocess's grey background to bring up its properties. Click the Loop Characteristics tab.
    If you want to simultaneously generate instances based on each item in incoming array, click the MultiInstance radio button. For the "Loop Characteristics" section in the dialog, set this to iterate through each item in the array coming into the subprocess. For example you might have a variable called "parts" that is the array. Use the count( ) method to determine the number of items in the array.
    The "Completion Condition" portion of this dialog determines how many separate instances will be spawned by this subprocess. On the left side of the less than sign, use the loopCounter variable that is automatically created when the "MulitInstance" property was selected. On the right side of the less than sign, insert the same count( ) method you used int he "Loop Characteristics" section. This means that this subprocess will continue creating instances until the last item in the array has been hit.
    Click the Arguments tab. In theory, you would think that only the item in the array being iterated through would need to be sent into the subprocess as an argument. The problem is that the "loopCounter" variable is not available to be used here. There is a bug that you have to work around. If you click on the "Use Associations" radio button and click the Edit button, in theory you should be able to build an expression that uses the "loopCounter" variable here to just pass a single object into the subprocess. There is a bug that prevents "loopCounter" from appearing when building the expression. As a result, work around the bug by passing in the entire array into the subprocess as an argument.
    Add a Script activity in the subprocess to extract the individual item in the array. Use the "loopCounter" in this to set a single item in the array to used by the subprocess.
    For this to work, there is one more work around that you have to do. Add a timer activity just before the Script activity you just added. Set the timer to wait one second. This means that a new instance will be created every second until all the items in the array have been run. If you do not add this timer activity, the same instance is created in the subprocess even though you think the loopCounter is iterating through the array. This means that if you do not add this timer activity, if the array has "Supervisor", "Manager", "Shipping Clerk" then all three individual work item instances spawned will all be created for the "Shipping Clerk".

  • Unable to see local variable values when debugging java

    Hi,
    I am using JDev 10.1.2 with java version 1.4.2_04.
    I have been using JDev to debug my java programs. But suddenly from this morning I am unable to see local variable values. I am able to see class and instance variables. This has happened to me before and I had restarted my machine couple of time, to get this sorted. But this time, nothing helps. Going thru the forum I found out that Include Debug information (Project Properties -> Compiler Option) need to be turned ON. It is already turned ON for me.
    I would greatly appreciate if you could let me know how to crack this problem.
    Thanks in advance.

    No. The local variables 'used' to show up during debugging. But erratically it doesn't show up local variable values. I had to restart my machine couple of times whenever this happens, inorder to see the local variable values. But this time even restarting doesn't help.
    Is there any preference setup that need to be turned on/off to see local variables?
    Also I can't step into a static method now. Any idea why this happens?

  • To see variables and properties for Infoobjects

    Hi,
    In the queries I see that for Infoobjects there are lot of variables. Is it possible that I can see all the variables (SAP and Custom) for an Infoobject in the Administration Workbench or in BI.
    In the query designer I would have to create a query, include the infoobject and then look at the variables. I was wondering if I can view in
    Thanks & BR,
    Jainu

    Hi Jainu ,
    We can get all the details of the query in RSRTQ transaction.
    Give the reqiured query and select outputoptions...for getting more detils of the query..
    Hope this may helps you..
    Best Regards,
    Maruthi

Maybe you are looking for

  • Samsung monitor working well only sometimes

    I have Mac Mini 2011 with the Samsung SyncMaster T24B350 monitor. Sometimes it works well, but also sometimes I have problems for starting up the machine. The image appears to be stripped and distorted. It fixes sometimes when I restart the machine,

  • Apps storage space shows 8.3 G went there is really only 2.5 G worth installed

    I discovered this morning that my avalible space had gone from 11.2 GB's available to 5.3 GB's without me doing anything. I looked at this in itunes and it is definately in the Apps storage area and not the "other" storage area. Also, I am not sure i

  • I have updated to Mac X 10.6.8, now You Tube doesn't work in Firefox; why not?

    Firefox told me for safety reasons I needed to update the OS on my Mac which I did. Now You Tube doesn't work in Firefox (though it does in other browsers) On line I have have found an add-on which claims to fix the problem, but it comes with warning

  • What are these shortcut keys?

    What are the short-cut keys for emptying the trash? The menu indicates the Up arrow, Apple key, and the left pointing arrow with an X in it? 1. Is this the up page arrow? 2. What is the left pointing arrow with the X in it? Thanks.

  • Blue Download Now link is not working for me.

    When I go to the section of the site to download iTunes, I enter my e-mail address, and click the Download Now link.  Once I click the link, absolutely nothing happens.  Internet Explorer isn't "thinking" after I click.  Any suggestions?  I had ITune