Like operator for sharepoint ssrs

Hi,
i ve got a multiiple instructor coulmn like
i ve written experssion like = Join(Parameters!Instructor.Label,",") Like "*" & Fields!InstructorName.Value  & "*"
boolean
value=true
but Please see the below image
it is displaying wrong instructor results
Any Suggestions?
Thanks Manohara R

Hi,
As this question is more relate to SQL Server, I suggest you post it to SQL Server Forum, you will get more help
and confirm answers from there.
http://social.technet.microsoft.com/Forums/en-US/home?forum=sqlreportingservices
Best regards
Dennis Guo
TechNet Community Support

Similar Messages

  • Error in SQL Query The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query

    hi Experts,
    while running SQL Query i am getting an error as
    The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    T2.LineText
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,T2.LineText
    how to resolve the issue

    Dear Meghanath,
    Please use the following query, Hope your purpose will serve.
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    CAST(T2.LineText as nvarchar (MAX))[LineText]
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry --where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,CAST(T2.LineText as nvarchar (MAX))
    Regards,
    Amit

  • Using Like Operator For Parameter Fields

    Hi All,
    I have been figuring around this for few days, appreciated anyone know this could assit me
    I have a report which having a mobile no parameter fields.
    In my database, my mobile no was not a clean entry.
    For eg, a standard mobile number from Malaysia was 60126143331.
    1) 60 - indicate country code (MYS)
    2) 12 - indicate mobile operator
    3) 6143331 - indicate phone number
    Usually, peoples will entry it as 6012-6143331 or 012-6143331 or 0126143331 or 60126143331. In my CR report, i have a static mobile no selection. Currently, my filter selection will be as below:
    {pax.mobile_no} = {?p_mobileno}
    any possible to change it to like? meaning to say, if user enter 012-6143331 it will know that this was 6012-6143331 and the records will be selected into the report.
    Appreciated anyone know this could assits.
    Thanks in advance.
    Regards,
    CK

    Hi,
    tq for ur prompt reply.
    D value in my database r not fix, some mobile no could b 7 digits some could b up to 12 digits. But I jz want user to enter mobile no in 10 digits only. Example, mobile no in db wa 60126661233. However, user input in parameter selection could only 0126661233 without 6. In some situation if mobile no in db was 6012-6661233, user input willb only 0126661233 n this input will b match with data in db using like operator.
    I m wondering can this b archieve in cr?
    Tq
    regards,
    ck

  • LIKE operator for Condition object

    I want to use pattern matching in a Condition that is applied to a DBDataSource Query.
    Is this going to be available in the 2004 SDK?
    (It would be much easier if we could just add our own WHERE clause as text.)

    Hi,
    I try with this operation code over MSSQL Server:
    condicion.Operation = co_GRATER_EQUAL + co_LESS_EQUAL
    and the operation is: like [CondVal]%
    Best regards.

  • Exclude "*" in Like operator

    Hi All,
    I am trying to use like operator for an output data which has "*" appended at the end.
    For example, following is the Place_ID which i have data in a table
    12190101*
    12349021
    12347284
    12598992*
    When i provide search criteria as "1234" in my application, my query is making the condition as
    Place_ID Like "1234%"
    But unfortunately it is giving 4 rows as output which is not considering the values which is appended with '*".
    I tried making use of the following, but still this is not working.
    Place_ID Like "1234%" ESCAPE '*'
    Can someone suggest me where i am doing wrong.
    Thanks,
    Prakash

    Prakash wrote:
    But unfortunately it is giving 4 rows as output which is not considering the values which is appended with '*".It is not clear what output you expect. But one thing is for sure: condition Place_ID Like 11234%' can't return 4 rows:
    {code}
    with data as(
    select '12190101*' place_id from dual union all
    select '12349021' from dual union all
    select '12347284' from dual union all
    select '12598992*' from dual
    select place_id
    from data
    where place_id like '1234%'
    PLACE_ID
    12349021
    12347284
    SQL>
    {code}
    So post desired results.
    SY.

  • Like operator issue with on Number column

    Hi,
    Query with like operator for Example: " where RATE LIKE ('%2%')"
    the result of the query returns rows which contains "2" as part of field value along with few rows which are updated recently, but do not contain 2 in that row.
    In the table data type of COLUMN is Number, no precision.
    Pls let me know if any one knows about this.
    --satya.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Can you please post the result of the query you are using?
    Regards

  • Issue with like operator

    Hi All,
    we are using like operator for search functionality (oracle 10G).
    could any one help me in handling null, when we use like operator.
    Ex:
    select empno,ename,d.deptno
    from emp e, dept d
    where e.deptno = d.deptno
    and e.ename like '%JO%';
    we have a text box in the front end to key in employee name (ename) or part of ename. when user doesnt use this option, he leaves it blank.
    so In the above query, if ename is null then my query fails.
    could anybody help me out in handling this scenario.
    My query should still give me all the employee ids, if the ename is blank.
    using dynamic sql is not advisable.
    Thanks
    Manju

    Something like this ->
    satyaki>select *
      2     from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Elapsed: 00:00:00.26
    satyaki>
    satyaki>
    satyaki>select *
      2  from emp
      3  where upper(ename) like nvl('%'||upper('&str')||'%',upper(ename));
    Enter value for str:
    old   3: where upper(ename) like nvl('%'||upper('&str')||'%',upper(ename))
    new   3: where upper(ename) like nvl('%'||upper('')||'%',upper(ename))
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          9999 SATYAKI    SLS             7698 02-NOV-08      55000       3455         10
          7777 SOURAV     SLS                  14-SEP-08      45000       3400         10
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       4450                    10
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7839 KING       PRESIDENT            17-NOV-81       7000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
    13 rows selected.
    Elapsed: 00:00:00.02
    satyaki>
    satyaki>/
    Enter value for str: sa
    old   3: where upper(ename) like nvl('%'||upper('&str')||'%',upper(ename))
    new   3: where upper(ename) like nvl('%'||upper('sa')||'%',upper(ename))
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          9999 SATYAKI    SLS             7698 02-NOV-08      55000       3455         10
    Elapsed: 00:00:00.08Regards.
    Satyaki De.

  • Like operator(NonCase sensitive)

    Hi,
    Every Body, I need query that use the like operator for pattern matching but that pattern
    matching should be Non case sensitive is there any keywords that make like operater NonCase
    Sensitive,
    query like is ,
    select * from table_name where column_name like 'matchingword';
    that is in the Oracle 9i database..
    please kindly help me ,
    Regard's
    Paritosh tomar
    Edited by: user632002 on Sep 12, 2008 3:03 AM

    hb venki wrote:
    Hi,
    Try like this but i never like that of function,
    select from table_name where UPPER(column_name) like UPPER(LOWER('mAtchINgwoRd'));*
    hb venkiThe LOWER function there is not needed *{:-)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Error occurred in deployment step 'Install app for SharePoint': We're sorry, we weren't able to complete the operation, please try again in a few minutes. If you see this message repeatedly, contact your administrator.

    While deploying sharepoint hosted app i am getting error "Error occurred in deployment step 'Install app for SharePoint': We're sorry, we weren't able to complete the operation, please try again in a few minutes. If you see this message repeatedly, contact
    your administrator.". From the developer site i remove the app manually and after deploying i am getting the same error again.
    Harminder singh

    I was trying to install SharePoint 2013 on premise development environment and encountered the following issues while deploying the app using Visual studio 2013.
    Please refer these articles for configuration settings.
    http://blogs.msdn.com/b/how24/archive/2013/06/14/prepare-your-sharepoint-2013-farm-for-app-development-and-debugging.aspx
    http://www.codeproject.com/Articles/515677/MyplusFirstplusSharepoint-HostedplusAppplusinplus2
    http://blogs.technet.com/b/mspfe/archive/2013/01/31/configuring-sharepoint-on-premise-deployments-for-apps.aspx
    http://aanuwizard.com/2012/12/07/article-14-from-30-system-account-can-not-deploy-or-purchase-an-app-in-sharepoint-2013-rtm/
    Error 1:
    Error occurred in deployment step 'Install app for SharePoint': The System Account cannot perform this action.
    Error 2:
    The local SharePoint server is not available. Check that the server is running and connected to the SharePoint farm.
    Error 3:
    Error occurred in deployment step 'Install app for SharePoint': We're sorry, we weren't able to complete the operation, please try again in a few minutes. If you see this message repeatedly, contact your administrator.
    Solution:
    For error 1, follow these instructions:
    a. Create a new domain account DOMAIN\myApp_Admin
    b. add DOMAIN\myApp_Admin to local admin group
    c. add DOMAIN\myApp_Admin to Farm Administrators group
       Central Admin site --> Site Settings --> People and groups
       Add DOMAIN\myApp_Admin
    For error 2 & 3, follow these instructions:
    1. Grant DOMAIN\myApp_Admin accont a sysadmin server role on SQL server
    2. Open SharePoint Power Shell and execute Add-SPShellAdmin <DOMAIN\myApp_Admin> command.
    3. Grant DOMAIN\myApp_Admin a db_owner rights to web application Content database that you would like to use for debugging SharePoint 2013 app.
    4. Make sure following roles are assigned for SharePoint_Config database
       SharePoint_Shell_Access
       SPDDataAccess
       public
    5. Make sure following roles are assigned for SharePoint_Content database
       db_owner
    5. Make sure following roles are assigned for SharePoint_AdminContent database
       public

  • Batch Operation for LookUp Column in SharePoint

    Hi
    I am trying insert bulk data into list.
    For that I am using Batch Process .But the problem i am facing is if the column of type is "LookUp" I am not able to apply batch
    Can you please help me like "What is the column format in Batch Operation for "LookUp column.
    Thanks
    Siddartha

    Hi Siddartha,
    The structure of the look column is id;#Value, so you can set the lookup column like this:
     <Method ID='2' Cmd='New'><Field Name='CustomerID'>1;#Cust_1</Field></Method>.
    You can refer to the link below:
    http://dotnetstep.blogspot.in/2009/01/batch-update-in-sharepoint.html
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Build XML for Custom Nested Accordian (like Tree View Structure) for SharePoint List Data

    Expected output in Xml:
    <?xml version="1.0" encoding="utf-8" ?>
    - <TopRoot>
    - <Root id="1" Name="Department">
    - <Type id="2" Name="IT">
    - <SubType id="3" Name="Technology">
      <SubSubType id="4" Name="Sharepoint" />
      <SubSubType id="5" Name="ASP.NET" />
      <SubSubType id="6" Name="HTML 5" />
      </SubType>
      </Type>
    </Root>
    </TopRoot>
    List Details:
    list details for storing category / sub category data and code to build tree structure for the same.
    1.Create Custom List named “CategoryDetails”:
    2.Create Column “Category Name” of type single line of text. Make it as required field and check Yes for Enforce Unique values.
    3.Create column “Parent Category” of type lookup. under Additional Column Settings.
    Get information dropdown, select “CategoryDetails”.
    4.Choice column ["SRTypeName"] 1.Root,2.SRTYPE,3.SubSRTYPE, 4.SUBSUBSRTYPE
    In this column dropdown, select “Category Name”:  
    Referance:
    http://www.codeproject.com/Tips/627580/Build-Tree-View-Structure-for-SharePoint-List-Data    -fine but don't want tree view just generate xml string
    i just follwed above link it work perferfectly fine for building tree view but i don't want server control.
    Expected Result:
    My ultimate goal is to generate xml string like above format without building tree view.
    I want to generate xml using web service and using xml i could convert into nested Tree View Accordian in html.
    I developed some code but its not working to generate xml /string.
    My modified Code:
    public const string DYNAMIC_CAML_QUERY =
            "<Where><IsNull><FieldRef Name='{0}' /></IsNull></Where>";
            public const string DYNAMIC_CAML_QUERY_GET_CHILD_NODE =
            "<Where><Eq><FieldRef Name='{0}' /><Value Type='LookupMulti'>{1}</Value></Eq></Where>";
            protected void Page_Load(object sender, EventArgs e)
                if (!Page.IsPostBack)
                 string TreeViewStr= BuildTree();
                 Literal1.Text = TreeViewStr;
            StringBuilder sbRoot= new StringBuilder();
            protected string BuildTree()
                SPList TasksList;
                SPQuery objSPQuery;
                StringBuilder Query = new StringBuilder();
                SPListItemCollection objItems;
                string DisplayColumn = string.Empty;
                string Title = string.Empty;
                string[] valueArray = null;
                try
                    using (SPSite site = new SPSite(SPContext.Current.Web.Url))
                        using (SPWeb web = site.OpenWeb())
                            TasksList = SPContext.Current.Web.Lists["Service"];
                            if (TasksList != null)
                                objSPQuery = new SPQuery();
                                Query.Append(String.Format(DYNAMIC_CAML_QUERY, "Parent_x0020_Service_x0020_Id"));
                                objSPQuery.Query = Query.ToString();
                                objItems = TasksList.GetItems(objSPQuery);
                                if (objItems != null && objItems.Count > 0)
                                    foreach (SPListItem objItem in objItems)
                                        DisplayColumn = Convert.ToString(objItem["Title"]);
                                        Title = Convert.ToString(objItem["Title"]);
                                        int rootId=objItem["ID"].ToString();
                                        sbRoot.Append("<Root id="+rootId+"
    Name="+Title+">");
                                        string SRAndSUBSRTpe = CreateTree(Title, valueArray,
    null, DisplayColumn, objItem["ID"].ToString());
                                        sbRoot.Append(SRAndSUBSRTpe);
                                        SRType.Clear();//make SRType Empty
                                        strhtml.Clear();
                                    SRType.Append("</Root>");
                catch (Exception ex)
                    throw ex;
                return SRType.ToString();
             StringBuilder strhtml = new StringBuilder();
            private string CreateTree(string RootNode, string[] valueArray,
          List<SPListItem> objNodeCollection, string DisplayValue, string KeyValue)
                try
                    strhtml.Appends(GetSRType(KeyValue, valueArray, objNodeCollection);
                catch (Exception ex)
                    throw ex;
                return strhtml;
            StringBuilder SRType = new StringBuilder();
            private string GetSRType(string RootNode,
            string[] valueArray, List<SPListItem> objListItemColn)
                SPQuery objSPQuery;
                SPListItemCollection objItems = null;
                List<SPListItem> objNodeListItems = new List<SPListItem>();
                objSPQuery = new SPQuery();
                string objNodeTitle = string.Empty;
                string objLookupColumn = string.Empty;
                StringBuilder Query = new StringBuilder();
                SPList objTaskList;
                SPField spField;
                string objKeyColumn;
                string SrTypeCategory;
                try
                    objTaskList = SPContext.Current.Web.Lists["Service"];
                    objLookupColumn = "Parent_x0020_Service_x0020_Id";//objTreeViewControlField.ParentLookup;
                    Query.Append(String.Format
                    (DYNAMIC_CAML_QUERY_GET_CHILD_NODE, objLookupColumn, RootNode));
                    objSPQuery.Query = Query.ToString();
                    objItems = objTaskList.GetItems(objSPQuery);
                    foreach (SPListItem objItem in objItems)
                        objNodeListItems.Add(objItem);
                    if (objNodeListItems != null && objNodeListItems.Count > 0)
                        foreach (SPListItem objItem in objNodeListItems)
                            RootNode = Convert.ToString(objItem["Title"]);
                            objKeyColumn = Convert.ToString(objItem["ID"]);
                            objNodeTitle = Convert.ToString(objItem["Title"]);
                            SrTypeCategory= Convert.ToString(objItem["SRTypeName"]);
                           if(SrTypeCategory =="SRtYpe")
                              SRType.Append("<Type  id="+objKeyColumn+" Name="+RootNode+ ">");
                             if (!String.IsNullOrEmpty(objNodeTitle))
                              SRType.Append(GetSRType(objKeyColumn, valueArray, objListItemColn));
                          if(SrTypeCategory =="SRSubTYpe")
                              SRType.Append("<SRSubType  id="+objKeyColumn+" Name="+RootNode+
    ">");  
                             if (!String.IsNullOrEmpty(objNodeTitle))
                              SRType.Append(GetSRType(objKeyColumn, valueArray, objListItemColn));
                          if(SrTypeCategory =="SubSubTYpe")
                              SRType.Append("<SubSubType  id="+objKeyColumn+" Name="+RootNode +"
    ></SubSubType");  
                        SRType.Append("</SubType>");
                        SRType.Append("</Type>");
                catch (Exception ex)
                    throw ex;
                return SRType.ToString();
                // Call method again (recursion) to get the child items

    Hi,
    According to your post, my understanding is that you want to custom action for context menu in "Site Content and Structure" in SharePoint 2010.
    In "SiteManager.aspx", SharePoint use MenuItemTemplate class which represent a control that creates an item in a drop-down menu.
    For example, to create or delete the ECB menu for a list item in
    "Site Content and Structure", we can follow the steps below:
    To add the “My Like” menu, we can add the code below:      
    <SharePoint:MenuItemTemplate
    UseShortId=false
    id="OLListItemLike"
    runat="server"
    Text="My Like"
    ImageUrl="/_layouts/images/DelItem.gif"
    ClientOnClickNavigateUrl="https://www.google.com.hk/"
    />
    To remove the “Delete” menu, we can comment the code below:
    <SharePoint:MenuItemTemplate
    UseShortId=false
    id="OLListItemDelete"
    runat="server"
    Text="<%$Resources:cms,SmtDelete%>"
    ImageUrl="/_layouts/images/DelItem.gif"
    ClientOnClickScript="%SmtObjectDeleteScript%"
    />            
    The result is as below:
    More information:
    MenuItemTemplate Class (Microsoft.SharePoint.WebControls)
    MenuItemTemplate.ClientOnClickScript property (Microsoft.SharePoint.WebControls)
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • HT1222 I am trying like **** to download itunes 10.6.3 (64 bit - Windows 7) and I keep getting "the installer was interrupted before the requested operations for iTunes could be completed.  Your systems has not been modified."  I NEED HELP, PLEASE!

    I am trying like **** to download itunes 10.6.3 (64 bit - Windows 7) and I keep getting "the installer was interrupted before the requested operations for iTunes could be completed.  Your systems has not been modified."  I NEED HELP, PLEASE!

    I got it figured out myself... yaaaaay for me!

  • Unable to install SQL SSRS add-in for SharePoint

    I am unable to install MS SQL SSRS add-in for SharePoint 2010 in a two tier architecture. The following message is displayed while running the Add-in installation:
    "Please ensure Microsoft SharePoint Technologies is installed"
    The environment setup is as mentioned below:
    SharePoint Server
    Has SharePoint 2010 installed
    Hosts Central Administration.
    Has SQL 2008 Reporting Services installed.
    SQL Server:
    Has SQL 2008 R2 installed in SharePoint Integrated Mode
    Has SQL Reporting Services
    Has SharePoint Server installed, configured and joined to two tier farm.
    Could you please help resolve this issue?

    Hi Abhijit,
    According to your description, my understanding is that you got an error when you ran SQL Reporting service add-in for SharePoint 2010.
    Which version add-in did you use? Please you installed the right version.
    There are some reasons for this error:
    You are installing the wrong version of add-in. For example, installing 32bit add-in on x64 machine or vice versa.
    You haven’t install SharePoint on the report server machine
    Your SharePoint installation is not recognized by the add-in. Either cases, you need to reinstall SharePoint.
    Some similar articles for your reference:
    http://geekswithblogs.net/naijacoder/archive/2010/06/28/140653.aspx
    http://blogs.devhorizon.com/reza/2008/10/16/shifting-from-ssrs-2008-native-to-integrated-for-good/
    About installing reporting service add-in, please refer to the links:
    http://stevemannspath.blogspot.com/2012/10/reporting-services-2012-integrated-mode.html
    http://msdn.microsoft.com/en-us/library/aa905871.aspx
    Best Regards
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • LIKE operator- change symbol for [all characters]

    I have an input parameter which contains symbols "*" (star symbol), example:
    i_search_par := 'country * street';
    I gonna do query:
    select * from SearchTable
    where col1 like i_search_par;
    I want that the "*" would act the same way as "%"-symbol in LIKE operator.
    So i want that query would return such results:
    'country 1 street'
    'country 200 street'
    and so on.
    What is the better way to achieve this, that "*" is going to be interpreted as a "any number of any symbols"?
    Maybe i can say something like:
    SET SESSION ANYCHAR SYMBOL = "*".
    And after doing that Oracle understands in LIKE operators that star-symbol is like i want?
    Or should i really do string replacement by replacing ""%" to "*" in "i_search_par" and in other 30 such varaibles?

    Hi,
    Sorry, I don't think there's any way to tell LIKE to use different wildcards.
    CharlesRoos wrote:
    I have ca 30 input parameters:
    i_search_par1 := 'country * street';
    i_search_par2 := 'country * street';
    i_search_par30 := 'country * street';Wouldn't it be just as easy to say:
    i_search_par1 := 'country % street';
    i_search_par2 := 'country % street';
    i_search_par30 := 'country % street';?
    >
    And i will use them all like this:
    select * from T
    where Col1 like i_search_par1
    and Col2 like i_search_par2
    and
    Col30 like i_search_par30You could write a very simple user-defined function. It would be slower, but the query would be a tiny bit simpler:
    select * from T
    where my_like (Col1, i_search_par1) = 1
    and   my_like (Col2, i_search_par2) = 1
    and   my_like (Col30, i_search_par30) = 1
    Then you suggest that i sgould do string replacement 30 times for each parameter?Do you mean 1 time for each parameter, or 30 times altogether? Yes.
    Isn't there better solution?
    Maybe database has instruction that changes interpetation of symbol "*" into "%".It would be handy, but I don't think such a thing exists.

  • Like operator not passed to database for nvarchar(max)

    From Crystal Reports 2008 I need to do a keyword search against a data type of nvarchar(max).
    I am using the LIKE operator in my record selection formula.
    When I do a SHOW QUERY the LIKE condition is omitted from the where clause.
    This makes the report run so slow it is useless.
    How can I do a keyword search against an nvarchar(max) data type?
    Thanks,
    Larry
    CR Developer 12.2.0.290, Product type: Full
    SQL Server 2008 r2

    Sorry it wasn't clear what you are doing or why. I assumed you were using the LIKE in the record selection formula to filter on fields like CustomerID etc. which can be passed to the server. You want to filter based on the text in a Description type field field.
    Yes that is going to be very slow having Crystal do it client side, means all of the data will be sent to the local work station and then on the second pass CR will start filtering.
    You could try using a Command Object to use as the data source, CR should simply pass what ever SQL you type in. Copy your existing SQL and then create a new report and use a Command object and paste in the SQL, edit it to include the LIKE operator and see it that works for you.
    Another option is to use a Stored Procedure with a parameter to do the searching, that will force it to do it Server side. DB servers will aways be more efficient at processing filters that ce will be.
    When viewing the report can you not use the Search window, although that is after the fact so it too would mean all data has to come down first...?
    Basically what is happening is CR is testing every word in the nvarchar field, CR isn't very optimized to do that kind of filtering client side and because it's more complex SQL we won't generate the proper syntax to pass it to the server. Also, Cr supports so many data sources and to build that logic into the basic report designer is very complex and not efficient, there are various DB tools that can do that kind of work and CR can connect to them, Universes, Data Integrator etc., those tools are designed to do this type of complex SQL generation.
    Thank you
    Don
    PS - If Jason sees this thread he is a SQL guru and may have some suggestion for you also.
    Edited by: Don Williams on Jun 22, 2011 11:17 AM

Maybe you are looking for