Search for all or part of a field with parameters

this is what I want,
SELECT Products.*
FROM Products
WHERE (((Products.ProductName) Like "*" & [?] & "*"))
OR (((Products.Description) Like "*" & [?] & "*"));
and it works in MS access. I get the following:
The Error:
HTTP Status 500 -
Description:
The server encountered an internal error () that prevented it from fulfilling this request.
exception:
Unexpected exception : 2
Under the query using <sql:query I have specified two parameters which are both of the same text field. thanks :)

I got the answer: http://forum.java.sun.com/thread.jspa?threadID=577129

Similar Messages

  • Search for a space within a text field

    Hi All
    I am trying to search for a sapce within a text field but sofar not being very successful. I have used:
    FIND search_str
               IN text_str
               MATCH COUNT  lv_mcnt
               MATCH OFFSET lv_moff.
    where search_str = TYPE c VALUE ' '.
    I am looking a way of searching a character within the string using ABAP (like INSTRING in other languages). If you have similiar codes - Could you please post me a copy - Thanks

    HI
    Check this..
    DATA string7(30) TYPE c VALUE 'This is a little sentence.'.
    WRITE: / 'Searched', 'SY-SUBRC', 'SY-FDPOS'.
    ULINE /1(26).
    SEARCH string7 FOR 'X'.
    WRITE: / 'X', sy-subrc UNDER 'SY-SUBRC',
                   sy-fdpos UNDER 'SY-FDPOS'.
    SEARCH string7 FOR 'itt   '.
    WRITE: / 'itt   ', sy-subrc UNDER 'SY-SUBRC',
                       sy-fdpos UNDER 'SY-FDPOS'.
    SEARCH string7 FOR '.e .'.
    WRITE: / '.e .', sy-subrc UNDER 'SY-SUBRC',
                      sy-fdpos UNDER 'SY-FDPOS'.
    SEARCH string7 FOR '*e'.
    WRITE: / '*e ', sy-subrc UNDER 'SY-SUBRC',
                    sy-fdpos UNDER 'SY-FDPOS'.
    SEARCH string7 FOR 's*'.
    WRITE: / 's* ', sy-subrc UNDER 'SY-SUBRC',
                    sy-fdpos UNDER 'SY-FDPOS'.
    Thanks ,
    Praveen

  • How do I search for all "missing" tracks within the iTunes database?

    I found the dreaded ! of death, and sadly I verified the tacks indeed are not on my hard drive.
    Is there a way to sort on this tag so that I can see what else might be missing on my hard drive but remains in the database (sort of similar to how you can search for all tracks that have missing artwork)? 

    Thanks.  It works perfectly.
    URL for anyone else in need:  http://dougscripts.com/123

  • How to search for all PDF files on my hard drive

    How can I search for all of a file type on my hard drive without getting documents that happen to have the text in them?  i.e. PDF or DOC or XLS
    Thank you
    Peg

    Put the search term in quotes, and do not forget the .  (dot)
    Results (partial list) of Spotling search for ".pdf". There is a section listing PDF documents.

  • How to search for all files w Metadata mismatch?

    I Upgraded recently from LR2.6 to 3.3.
    Many of my images have an Exclamation Mark on them, following the upgrade, informing me that there is a Metadata Mismatch...
    When I click on it I get this Dialogue box:
    Firstly I think LR developers are playing with potentially important information with a lack of care and consideration. I looked at the metadata in 'File Info' in Photoshop before clicking anything: the creation date was the date the file was created and much of the camera data was missing. After I clicked Overwrite Settings all the original data was back on the file. I have no idea how this came to pass exactly, but it shows metadata is an easily lost thing.
    If Adobe care about their customers I would think they would make it more clear what was at stake here!
    Secondly I would like to know if there is a way to search for all images with this issue to save me having to go through and do it one by one, possibly thousands of times?
    Thnaks Peter

    areohbee wrote:
    Beat,
    Please share the SQL statement.
    select    ''    
             ,LibraryRootFolder.absolutePath || LibraryFolder.pathFromRoot || LibraryFile.lc_idx_filename    as    fullFileName
             ,Image.sidecarStatus
             ,AdditionalMetadata.externalXmpIsDirty
        from      Adobe_images                 as    Image
                 ,AgLibraryFile                as    LibraryFile
                 ,AgLibraryFolder              as    LibraryFolder
                 ,AgLibraryRootFolder          as    LibraryRootFolder
                 ,Adobe_AdditionalMetadata     as    AdditionalMetadata
        where     Image.rootFile                =    LibraryFile.id_local
          and     LibraryFile.Folder            =    LibraryFolder.id_local
          and     LibraryFolder.rootFolder      =    LibraryRootFolder.id_local
          and     AdditionalMetadata.image      =    Image.id_local
          and    (Image.sidecarStatus            not in    (0, 7)
           or     AdditionalMetaData.externalXmpIsDirty     >     0)
        order by    fullFileName
    I am not sure what the meaning of different values in column sidecarStatus and externalXmpIsDirty mean. This is what I've found out by trial and error:
    sideCarStatus = 1 seems to mean "Settings have changed in Catalog compared to XMP"
    sideCarStatus = 7 seems to be OK
    externalXmpIsDirty = 1 seems to mean "Settings have changed in XMP compared to Catalog"
    sideCarStatus = 1 AND externalXmpIsDirty = 1seems to be a Metadata Conflict
    The meaning of sideCarStatus > 1 is unknown to me
    I usually run the query and then look at the single images reported in LR.
    IMHO, this metadata matching is one of the weaker points in LR. I have encountered several conflict situations where I can be 100% sure I have not changed anything on the image outside of LR, and I have "Automatically write Changes to XMP" active. So a conflict should never arise.
    Beat Gossweiler
    Switzerland

  • Search for all user messages doesnot work now ?

    Hello SDNer's,
    I often search my own questions and posts entering the keywords in Search for all user messages. After our forum has been revamped this functionality seems not be working as it used to. When I enter the keywords and Enter it throws me results from Expert Forums instead showing results just from my ID/Username.
    Have anyone noticed this ?
    Please comment Mods.
    Happy New Year to all SDNer's !!!

    User search and monitoring was all disabled due to Privacy issues.

  • Physical inventory document - for all A parts

    Hi,
        We are in the process of preparing our system for physical inventory count for all A parts (Cycle count indicator is A).
    1. We ran MI24 to get all open physical inventory documents.(they are around 100).
    2.Then we ran MI31 (didn't create batch input) for all A parts and the following are checked - 1. Material marked for deletion 2. only materials w/o zero stock 3. Unrestrcited use 4. Blocked 4. Include inventoried materials 5. Included inventoried batches. The variant for MI31 includes all A parts in the material selection and the required plant and SL are input. The output said, phy inventory documents could be created for 656 materials.
    3. I wrote a query with MARC and MARD to get all A parts with unrestricted quantity > 0 for the above specified plant and SL. The list produced 882.
    The above two counts are not matching.
    I ran MI31 for some of the materials which are in the list materials as per point 3 but not in the above 2. But MI31 said, no physical inventory document can be created.
    We want to make sure both the both numbers are equal (step 1 + 2 = step 3),  to make  sure all A parts will be counted. Can anyone explain why they are not matching? or Am I missing something?
    OR any other ways to make sure all A parts will be counted. Thanks,
    Regards,
    Sundar.

    Please refer my comment. It may be useful for you.
    There are two ways if you want to carry out Physical Inventory count
    1)Manual -
    First check if there are no open PI document for a material using MI31.
    Then carry out three transactions one after another MI01, MI04, MI07
    2) Automatic
    Maintain CC physical inv. indicator in material master i.e A, B, C
    Before that ensure that you have maintained SPRO setting for A, B and C.
    Ok Now check the planned count date in MARC table. Run a Z program to change the last count date
    Now run MICN and schedule a job to create PI documents

  • What is the Search for:-  All images/All documents/all movies for in Finder

    I am confused as to the purpose of Search for:- All images/documents/movies in Finder. I seem to have documents, pictures and music I have never seen or downloaded, and often photos I have actually downloaded are copied in triplicate sometimes more. I have at times got 10,000 items in my documents in Search for? My worry really is does this all take up memory on my computer and if so why is it happening and how do I stop it?
    I do hope someone can explain the purpose of the Search For?
    Jai309

    Thanks Kappy, I had thought that is what it probably was but just confused by all the items I never searched for or downloaded. Now that I know it doesn't take up any memory I shan't worry about it. When I deleted everything from the search for files all the photos in my iphoto and documents were also removed. (thankfully I always have my stuff backed up on hard drive) I guess one just shouldn't remove them? Is there a safe way to clear it out without loosing the stuff I need to keep?
    Regards
    Jai309

  • Can iTunes search for all music on my system and rebuild the library?

    Is there any way to make iTunes search for all music on my hard drive and completely rebuild the library from scratch?
    Thanks.

    do you know how to re-locate files to an existing library?
    All of a sudden, about 2/3 of my songs (over 6,000) will not play and a box comes up saying "The song 'x' could not be used because the original file cannot be found. Would you like to locate it?"
    I went to Edit > Preferences > Advanced and have the correct (fixed) external drive letter selected for the folder location. and the files haven't moved, but iTunes isn't finding them. Restarted the computer making sure the drive was on.
    I'd like to not lose all the ratings I've worked on. Hoping you or someone has a solution!!
    thanks!

  • How do I run a search for all photos on my iMAc?

    How do I run a search for all photos on my iMAc?
    Looking for something like search assistant...
    actually on an Ext Hard drive.

    open a finder window by clicking on mr. smiley face and then click on ALL PHOTO's on the bottom right

  • Search for all emails by [search person] with an attachment

    how can you search for all emails with an attachment? it's difficult sifting through emails to find that one word doc that someone sent

    Scroll to the top of the mailbox you want to search and enter your search in the Search box

  • Where does one search for ALL the APPS that are available?

    Where does one search for All the apps that are available ?

    If you don't see any messages, not have anti-malware running or the Firewall on, try installing the Mac OS X 10.6.8 Update Combo
    It's ok to do this even though you are already running v10.6.8 (according to your profile).
    Restart your Mac after the combo in installed, try the App Store.
    Also... if you have an app called Little Snitch installed, that can prevent a connection to the App Store.

  • I have moved all of my movies from "Search for - All Movies" folder thinking they were shortcuts to the trash folder by mistake.  Is there any way I can restore them to the right place on my system Note most are on an external hard drive. :(

    I have moved all of my movies from "Search for - All Movies" folder thinking they were shortcuts to the trash folder by mistake.  Is there any way I can restore them to the right place on my system Note most are on an external hard drive.

    You can drag them out of the trash folder to wherever you wish. There is no automatic way to restore them.
    If you have a recent backup of your computer (at the risk of preaching, everyone should have one), restore them from there.
    Barry
    P.S. I have no clue what you did or why you have 44,000 on the external drive

  • Searching for numeric values in a text field / SQL Server

    Hi all,
    here's a problem that I've been trying to solve for several days: I try to select rows from an MS SQL Server via JDBC that contain a certain numeric value at a certain position in a long varchar field.
    I'm using queries like
    select * from table where substring(field_1, 37, 7) like '1011234';Those queries always return an empty ResultSet. If I use the same queries in WinSQL, I get correct results (several rows).
    The application code is working in principle; if I search for a text instead of a numeric value, for example select * from table where substring(field_1, 4, 5) like 'Paper'; , I get a complete ResultSet.
    I've tried many variations (= instead of like, search in the entire field (without substring but with like '%1011234%'), with or without ', and more), but that didn't change anything.
    It's also most probably not caused by the JDBC driver; I have tried JTDS first, and then the MS driver (newest versions) - no difference.
    One idea was that the sort order is not correct, tried some COLLATE settings, but that didn't help so far. In this context I'd like to know how to determine the collation sequence of a certain column.
    Another thing I tried was using CAST, for example SELECT * FROM table WHERE CAST(SUBSTRING(field_1, 37, 7) as bigint) = CAST('1011234' as bigint); or SELECT * FROM table WHERE CAST(SUBSTRING(field_1, 37, 7) as bigint) = CAST(1011234 as bigint);, but that didn't help either.
    Some facts:
    Server: Microsoft SQL Server, version 09.00.2047
    Driver in WinSQL: SQLSRV32.DLL, version 03.85.1117
    JDBC-Driver:
    - JTDS, version 1.2
    - Microsoft SQL Server 2005 JDBC Driver, Version 1.2
    JVM: jre1.5.0_11
    I didn't find anything on Google, or in this forum, or other forums. I really hope someone here can help me. Thanks in advance!
    Best regards,
    Uica

    Your note suggests to me that this is a coding problem, not a JDBC or SQL problem unless you are hitting a bug in the SQL Server JDBC driver. Others may have ideas from what you have written, but I think it would be helpful to see the actual code that you are executing that does not bring back the results that you are expecting (don't forgot to use code tags to format your code correctly).
    It might also be helpful to execute a query (from within your Java code) to ensure that you are connecting to the right database, accessing the correct table and that your substring is using the correct offset. The query would look something like this (and then of course display the list of results):
    SELECT substring(field_1, 37, 7) from table

  • Finder search for; all movies, photos, documents

    Does anyone know how to clear the search for categories without deleted the original files. I have reloaded some photos and now have duplicates and triplicates. There does not seem to be a method of clearing all of the "search for" fields without causing larger problems.
    Thanks to anyone who has a fix for this.

    MAW01 wrote:
    Does anyone know how to clear the search for categories without deleted the original files. I have reloaded some photos and now have duplicates and triplicates.
    Search does not create files.
    There does not seem to be a method of clearing all of the "search for" fields without causing larger problems.
    I don't understand. What larger problems?
    Thanks to anyone who has a fix for this.
    Please describe in detail your problem. I cannot understand what you are asking.

Maybe you are looking for

  • Seeburger AS2 Adapter error

    Hi,   I'm trying to test AS2 connection with External system and got some errors.   I'm able to send message successfully to the external system with MDN Mode Synchronus with out any errors and got the MDN back, I changed the MDN mode to Asynchronus

  • XML Schema based XMLType column leaves file open on error

    Hello, I have the following situation on both oracle 10.1.0.2.0 and 10.1.0.4.0: insert into xml_products (xmlfile) values(bfilename(file_loc, char_id)); "xmlfile" is a xmltype column based on a registered xml schema. When the file fails xml schema va

  • Programmatically determine steps referenced in an expression

    Is there an elegant way to programmatically determine any steps that are reference in an expression using API.  Such that  AllOf(RunState.Sequence.Main["ID#:AzvyVD4OcUiZz2vk3ZHknA"].Result.Status == "Passed", RunState.Sequence.Main["ID#:0RT7Ih2QQkimH

  • Old Skype-To-Go/Skype Access number

    I have an old Skype-To-Go number/Skype Access number from the time when you pressed one to call one of your predefined contacts or 2 to enter a number to call. This is pretty useful for me as I call alot abroad from my cellphone. But I want to change

  • I feel cheated at Sony Ericsson phones

    I have a W980 phone and your DESIGN FLAWS on your UNIQUE PLUG SYSTEM broke off and cutting the solder ends with it, now it is unable to be soldered thus making it unable to be reformated from a previous hang on the operating system. Now i have no way