Can both in-row and off-row LOBs be used in a where clause?

We are preparing to upgrade ASE from version 15.5 to 16.0.  One of the features that is very appealing has to do with the changes made concerning the handling of LOBs.  In particular, the ability to use a LOB column in search arguments (where clause) is something our developers have longed for since the retirement of the full-text search option.  So, in version 16.0, can any column with a datatype of text be used as a search argument? Are there any restrictions.
Thanks in advance.

Hi Kevin,
The in-row LOB feature is mainly designed to save space when a text column has many short values, which is a particularly bad problem when the server uses a large page size (like 16K) as ASE would use a full 16K to store even a single bye "Y".  I don't think the feature made any change in how text can be used in search arguments.  i.e. you can still use LIKE and IS [NOT] NULL, but not others.
Example:
1> create table t (x text in row (8))
2> go
1> insert t values ("abc")
2> insert t values ("abcdefghijkl")
3> go
(2 rows affected)
1> select * from t where x like "%c%"
2> go
x                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
abc                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
abcdefghijkl                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
(2 rows affected)
1> select * from t where x !> "c"
2> go
Msg 257, Level 16, State 1:
Server 'redhead', Line 1:
Implicit conversion from datatype 'TEXT' to 'VARCHAR' is not allowed.  Use the
CONVERT function to run this query.
Msg 306, Level 16, State 5:
Server 'redhead', Line 1:
TEXT, IMAGE and UNITEXT datatypes may not be used in a WHERE clause, except with
the LIKE expression and IS [NOT] NULL predicate on columns.

Similar Messages

  • How do I make PDF with layers that can be turned on and off?

    I am creating a map in Indesign CS4 and I want to have different layers that can be turned on and off.  Layers like different places and names that can be controled in Acrobat (and Reader).  Im not sure how to go about this and if this is something created through Acrobat or through InDesign.  I didnt see anything in ID when converting to a PDF that would save layers in that way so I assume its done in Acrobat Pro?  Just need and idea of where to start

    InDesign CS5 to Acrobat 9 Multimedia and Interactive Workflows by Dona Baker
    Creating and Using Layers (OCGs) with Acrobat JavaScript by Thom Parker

  • Received recent update on Bionic, now I can't switch on and off my 4GLTE to 3GCDMA- anyone know a work around?

    Received recent update on Bionic, now I can't switch on and off my 4GLTE to 3GCDMA- anyone know a work around?

    search is your friend; see this thread:
    https://community.verizonwireless.com/thread/786340

  • Why I can not connect ipad2 and iphone5 to wifi by using d-link modle? but my computer and iphone3 can do it.

    why I can not connect ipad2 and iphone5 to wifi by using d-link modle? but my computer and iphone3g can do it.

    iOS 6 Wifi Problems/Fixes
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting
    http://www.apple.com/support/ipad/wifi/
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Since being in Mexico both my iPad and iPhone seem to be using up their batteries more quickly.  Any thoughts on why that might be?

    since being in Mexico both my iPad and iPhone seem to be using up their batteries more quickly.  Any thoughts on why that might be?

    Did they drink the water? 
    Using the battery level meter in this manner is comparable to using your car's fuel gauge to calculate miles per gallon. The only thing that matters is the total amount of operating time from full charge to auto-shutdown.
    Use the wall-mount charger that came with the iPad or another 10W/12W Apple charger and, one at a time, charge both units overnight.  Do NOT use an iPod/iPhone (5W) charger.  Do NOT use a computer's USB port.  Then, operate it normally until auto shut-down (ignore any low level alerts that may appear).  An irony is that doing that test to determine the total operating time is also the procedure necessary to calibrate the battery level meter.
    I'm not claiming that you do not have a problem.  I am stating, however, that we don't yet know.  If the above test does, in fact, indicate a problem, read this.
    Also, according to Apple:
    Use Your iPad Regularly
    For proper reporting of the battery’s state of charge, be sure to go through at least one charge cycle per month (charging the battery to 100% and then completely running it down).
    Elsewhere, Apple elaborates and explains that two half-discharges (or four quarter-discharges, etc.) equals one full discharge.

  • HT1766 lost my iphone and can't find photos and videos from camera roll on my computer. where are they?

    lost my iphone and can't find photos and videos from camera roll on my computer. where are they?
    thanks

    Where did you put them?
    These are not part of the sync process at all, as the manual tells you.  You should be importing them to your comptuer regularly as you would with any digital camera.

  • When syncing my ipod, how do I get it to look at external drives for music stored them?  It just tells me it can't find something and gives me no option to tell it where it is located.

    When syncing my ipod, how do I get it to look at external drives for music stored them?  It just tells me it can't find something and gives me no option to tell it where it is located.

    Hi SouthMountainSound,
    It sounds like the tracks may be missing from your iTunes library. When tracks in iTunes display a it means the file cannot be located; it may have been moved or deleted. If it cannot be located, this may cause the issue of not being copied to your iPod. For this issue, we will need to refer to the following article:
    iTunes: Finding lost media and downloads
    http://support.apple.com/kb/TS1408
    Alternatively, if your media was downloaded from the iTunes Store, you may be able to download it again free of charge:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    Thanks,
    Matt M.

  • Can i use Decode in Where clause

    Hi,
    Can i use Decode in Where clause Please Do the need full on the same.
    Thanks,
    Sanjeev.

    set serveroutput on
    DECLARE
    posn  PLS_INTEGER := 0;
    empid PLS_INTEGER := 178;
    x     NUMBER;
    BEGIN
      SELECT NVL(SUM(ah.quantity * ah.saleprice * ap.payoutpct), 0)
      INTO x
      FROM accessoryhistory ah, payoutpercentage ap,
      sku s, store st
      WHERE empid = DECODE(posn,
                              0, st.areadir,
                              1, st.areamgr,
                              2, NVL(st.storemgr1, st.storemgr2),
                              3, NVL(st.asstmgr1, NVL(st.asstmgr2,
                           st.asstmgr3)))
      AND ah.statustype IN ('ACT', 'DEA')
      AND ah.store = st.store
      AND s.dbid = ah.dbid
      AND s.sku = ah.sku
      AND ap.productgroup = s.productgroup
      AND ap.position = posn;
      dbms_output.put_line(x);
    END;
    /http://psoug.org/reference/decode_case.html

  • Can both an intel and a PPC mac use time machine on the same TC?

    I just got a TC and have successfully used time machine with a MBP. I was about to install Leopard on my PPC eMac in order to use time machine on the TC but I wondered if they could both use the TC hard drive as it is currently formatted.
    As I recall, intel macs use journaled GUID and PPC machines use another format.
    Am I deluded?

    I don't think there is a problem, and I believe others have reported in these forums that they're doing it.
    There is a lot of confusion in this area compounded by a number of people who say that some of the Apple KB articles are wrong/misleading.
    But in this case it's more a case of it doesn't matter - here is why.....
    The Time Capsule disk comes formatted, you can erase the disk via the Airport Utility. That's the closest you can come to formatting and you don't have options - so it does whatever it needs to do to get it right.
    The machines being backed up don't access the Time Capsule's disk(s) directly as they do on a locally attached disk. They do it via AFP network disk protocol and the Time Capsule disk is in effect insulated from the machine being backed up.
    (As an aside, it's because of this - the differences in what can be done over AFP - that the Time Capsule stores the backups in a different file format)
    If you add a USB attached drive to the Time Capsule you can also erase it with the Airport Utility as above. In my case, I've attached a USB drive to my Time Capsule. I never had the Time Capsule erase it, but before attaching it I attached it locally and formatted it GUID and HFSJ and it work just fine when attached to the Time Capsule. Does it have to be formatted that way - I don't know - all I know is in this one case what I did works which doesn't prove it has to be that way.
    Message was edited by: Steve Holton

  • I can't open my iPod - slide to unlock and nothing happens .  We can turn iPod on and off, but can't open.

    My iPod touch will not open - we try to slide to unlock but nothing happens.   We are able to turn on and off and the battery is charged.  Thanks

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • Have 17 in MB Pro 8GB, I7 processor. My 500 GB HDD is running out of space, want to replace it with a SSD 1 TB, Can I do it, and what drive should I use?

    Computer is prob. 5 yrs old, still runs great, works well with Yosemite, just HDD if full, tried cleaning it up, but only get about 8 GB left. Want to change out for a SSD 1 TB or 960 , leaning toward Crucial drive, can I do this and replace my old drive. Do not really want to give up my DVD slot to a HDD, would rather just replace the current Hard drive with a SSD? Any thoughts, can I do this myself. I have computer connected to time capsule and could use that to reinstall onto new SSD??

    Yes. Any 2.5" notebook sized SSD can be used. If your Time Capsule has a full system backup, then you can restore from it. You could put your old HDD into an external enclosure and boot from it. Then clone the HDD to the newly install SSD after formatting it.

  • My iphone 3g sound doesn't work but goes on and off when i'm using headset,

    my iphone 3g sound doesn't work but when i plug in headset, the headset sound goes on and off. I think the speaker has a problem or touches but why does the headset not work but goes off randomly?Pls help me out

    my iphone 3g sound doesn't work but when i plug in headset, the headset sound goes on and off. I think the speaker has a problem or touches but why does the headset not work but goes off randomly?Pls help me out

  • Why I cannot use RowID in where clause but can use it in order by clause

    I am on SQL Server 2008.
    1. If I use
    SELECT (ROW_NUMBER()  over
    (order by ImportId, ScenarioId, SiteID, AssetID, LocalSKUID, WEEKID, MonthID)) RowID, * 
      FROM [JnJ_Version1].[dbo].[td_Production_Week]
      order by RowID
    Statement works
    But
    2. If I use
    SELECT (ROW_NUMBER()  over
    (order by ImportId, ScenarioId, SiteID, AssetID, LocalSKUID, WEEKID, MonthID)) RowID, * 
      FROM [JnJ_Version1].[dbo].[td_Production_Week]
      where  RowID > 10000
    I get error, RowID is an invalid column Name why? How to correct query 2.

    This is due to the logical evaluation order of a SELECT statement. Logically, a SELECT statement is computed in the order:
    FROM (which includes JOIN)
    WHERE
    GROUP BY
    HAVING
    SELECT
    ORDER BY
    OFFSET
    Thus, you can use what is defined in the SELECT list in the ORDER BY clause, but not in the WHERE clause.
    In the case of row_number(), this has immediate repurcussions. row_number() is computed from the rows as they arrive the SELECT clause, and if you then you would filter on the value in the WHERE clause you would be going round in circles.
    To do what you are looking for, you use a nested table, for instance with a CTE:
    WITH numbering AS (
       SELECT (ROW_NUMBER()  over
    (order by ImportId, ScenarioId, SiteID, AssetID, LocalSKUID, WEEKID, MonthID)) RowID, * 
      FROM [JnJ_Version1].[dbo].[td_Production_Week]
    SELECT *
    FROM   numbering
    WHERE  RowID > 10000
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Can we use Case in Where Clause along with Exists

    Hi Everybody,
    Can we use Case in the where clause with exists? As i have a requirement in which i have to check whether value exists in 6 views, now depending on some value(gns_type )of select clause i have to attach a paticular exists else the performance dies.
    Please go through the query any suggestion appreciated.
    Thanks
    SELECT count(*)
    FROM
    (SELECT eah.changed_date,
    decode(eua.is_deleted, 'N', decode(eah.alert_type, NULL, 'GN', 'R', 'GAR', 'G', 'GAG', 'Y', 'GAY'), 'Y', decode(eah.alert_type, 'R', 'GDR', 'G', 'GDG', 'Y', 'GDY', NULL, 'GN'), NULL, 'GN') AS
    alert_type,
    decode(eac.pta_line, 'N', '') ptaline,
    eac.exp_type_desc,
    eac.supplier_name,
    eac.transaction_id,
    eah.gns_type,
    eac.po_amount,
    eac.po_end_date,
    eah.notes,
    eua.is_deleted,
    eac.expenditure_type,
    eua.gns_alert_summary_id,
    eah.changed_date alert_date,
    eua.user_alert_id,
    eah.reference_number,
    decode(eac.cms_pta_line,'N','',eac.cms_pta_line) cms_pta_line,
    cms_po_amount,
    cms_po_end_date,
    mgns.is_decommitted,
    eac.gns_alert_id,
    eah.gns_type source_name
    FROM xxdl.xxdl_sc_gns_alerts_summary eah,
    xxdl.xxdl_sc_gns_detail_alerts eac,
    xxdl.xxdl_sc_gns_user_alerts eua,
    xxdl.xxdl_sc_manage_gns_master mgns
    WHERE eah.gns_alert_summary_id = eac.gns_alert_summary_id
    AND eah.gns_alert_summary_id = eua.gns_alert_summary_id
    AND eah.transaction_id = eac.transaction_id
    AND eah.transaction_id = mgns.transaction_id)
    a
    WHERE(EXISTS
    (SELECT 1
    FROM xxdl_sc_mng_gns_pta_req_hc_v x
    WHERE x.transaction_id = a.transaction_id
    AND x.source_name = a.source_name
    AND x.project_id = 69309
    AND x.task_id = 242528
    AND x.award_id = 34694)
    OR
    EXISTS( SELECT 1
    FROM xxdl_sc_mng_gns_pta_inv_hc_v x
    WHERE x.transaction_id = a.transaction_id
    AND x.source_name = a.source_name
    AND x.project_id = 69309
    AND x.task_id = 242528
    AND x.award_id = 34694)
    OR
    EXISTS(SELECT 1
    FROM xxdl_sc_mng_gns_pta_req_sc_v x
    WHERE x.transaction_id = a.transaction_id
    AND x.source_name = a.source_name
    AND x.project_id = 69309
    AND x.task_id = 242528
    AND x.award_id = 34694)
    OR
    EXISTS(SELECT 1
    FROM xxdl_sc_mng_gns_pta_inv_sc_v x
    WHERE x.transaction_id = a.transaction_id
    AND x.source_name = a.source_name
    AND x.project_id = 69309
    AND x.task_id = 242528
    AND x.award_id = 34694)
    OR
    EXISTS( SELECT 1
    FROM xxdl_sc_mng_gns_pta_po_sc_v x
    WHERE x.transaction_id = a.transaction_id
    AND x.source_name = a.source_name
    AND x.project_id = 69309
    AND x.task_id = 242528
    AND x.award_id = 34694)
    OR
    EXISTS (SELECT 1
    FROM xxdl_sc_mng_gns_pta_po_hc_v x
    WHERE x.transaction_id = a.transaction_id
    AND x.source_name = a.source_name
    AND x.project_id = 69309
    AND x.task_id = 242528
    AND x.award_id = 34694)
    AND TRUNC(alert_date) >= TRUNC(add_months(sysdate, -1))
    AND TRUNC(alert_date) <= TRUNC(sysdate)
    AND is_deleted = 'N'
    ORDER BY changed_date DESC

    you can do
    WHERE
    CASE WHEN (something) THEN
      CASE WHEN EXISTS (SELECT * from ...) THEN 1 ELSE 0 END
               WHEN (something else) THEN
         CASE WHEN EXISTS (SELECT * from ...) THEN 1 ELSE 0 END      
    END = 1Looking at your current query, it looks like all those exist statements could be a lot neater, maybe like:
    WHERE (69309,242528,34694) IN
    (SELECT project_id,task_id,award_id FROM
      (Select project_id,task_id,award_id,transaction_id,source_name
      FROM
      xxdl_sc_mng_gns_pta_req_hc_v
      UNION ALL
      Select project_id,task_id,award_id
      xxdl_sc_mng_gns_pta_inv_hc_v
      ...) x
    where a.transaction_id = x.transaction_id
    and a.source_name = x.source_name
    )or put the tuple in the where clause at the bottom

  • How can you upload photos to FaceBook from iPhoto without using the sync where is deleted in iPhoto it will be deleted in FaceBook

    How can you upload photos from iPhoto to FaceBook without having the sync where if you delete from iPhoto you delete

    I think you have to have the files on your HD. So either put them in iPhoto or copy them to a folder in Finder, and from there you can upload to Facebook.

Maybe you are looking for

  • How can I change my Outlook "inbox" to include all mailboxes?

    I'm a recent convert from the original Motorold Droid to iPhone 4. Here's my issue with mail from my company's Exchange server: Only incoming mail appearing in the "Inbox" is flagged as a new message by the push notifier. The trouble is, I have serve

  • Image quality issues in PS - word to PDF

    Hi, I am having major image quality issues when trying to make my word document a clean, clear PDF. Images become distorted. Borders for tables and text that are equal px size look like they are different sizes throughout the document. I have searche

  • What is Milestone activity used in 11g

    When I drag a milestone activity in jdev 11g I see a scope when expanded. when i double click it I get the below error. "Previously reported error [NPE in o.tip.tools.ide.bpel.v1.plugins.plugins.activityguide.graph.editors.ActivityGuideEditPage:79]"

  • Session problem in onAfterRequest event

    Hi, While doing some session related operation in onAfterRequest event of my module servlet i am getting the following exception, java.lang.IllegalStateException at com.netscape.server.servlet.platformhttp.PlatformNASSession.putValue (Unknown Source)

  • Is music supposed to show up in iTunes when the touch is not connected?

    I have no music in iTunes unless I have the iTouch connected. Is this normal?