LookupDefaultPrintService() not returning correct print service in Linux

I have tried using PrintServiceLookup.lookupDefaultPrintService() on a number of Linux machines here, with varying software configurations (all running some version of CUPS). None of them are returning the correct default printer. Some were actually returning the correct default printer, but changing the default printer then restarting the test application showed it was merely coincidence.
I have also tried setting the javax.print.defaultPrinter property appropriately, and it still returns the incorrect printer. Anyone had any luck getting the default printer under Linux?
For the time being, I can work around this by selecting the correct default from the available print services using a user specified default printer setting.

I apologize, I should have checked the bug database first. This appears to be a known problem with cups:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6181488

Similar Messages

  • Canon mg3200 will not align correctly prints is blurred

    Canon mg3200 will not align correctly prints is blurred. I have used the canon print head alignment several times. It will print some of the picture correctly and the rest is out.

    Hello,
    Please try the procedures outlined in the link below:
    http://kbsupport.cusa.canon.com/system/selfservice.controller?CONFIGURATION=1011&PARTITION_ID=1&secu...
    If the issue persists at that point, the best thing to do would be to get in touch with our technical support team at http://bit.ly/Phone_Support for further assistance.
    Thanks!
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Fsbtodb macro in ufs_fs.h does not return correct disk address

    I'm using fsbtodb to translate the file inode block address to file system block address.
    What I've observed is fsbtodb returns corretct disk address for all the files if file system size < 1 TB.
    But, if ufs file system size is greater than 1 TB then for some files, the macro fsbtodb does not return correct value, it returns -ve value
    Is this a known issue and is this been resolved in new versions
    Thanks in advance,
    dhd

    returns corretct disk address for all the files if file system size < 1 TB.and
    if ufs file system size is greater than 1 TB then for some files, the macro fsbtodb does not return correct value, it returns -ve valueI seem to (very) vaguely recall that you shouldn't be surprised at this example of a functional filesize limitation.
    Solaris 9 was first shipped in May 2002 and though it was the first release of that OS to have extended file attributes I do not think the developers had intended the OS to use raw filesystems larger than 1TB natively.
    That operating environment is just too old to do exactly as you hope.
    Perhaps others can describe this at greater length.

  • Could not talk to Print Service

    I have tried cancelling print jobs and I received the error "could not talk to print service".
    I've tried stopping and starting lp and these do not work either.
    If anyone has any information, I would appreciate.
    Thank you in advance,

    Make sure the /etc/inetd.conf file (which should be a symbolic link to /etc/inet/inetd.conf) does not have the "printer" line commented out.
    If you're using Solaris 8 or 9, make sure the third field of the "printer" line has tcp6 instead of tcp.
    -Greg

  • Vista itunes not installed correctly.  Error 7.  Windows error 998.  Itunes helper not installed correctly.  Service Apple Mobile Device failed to start.  Insufficient privileges.

    OK, spent about 25 frustrating hours so far this weekend doing everything recommended on numerous threads here -- uninstalling and reinstalling itunes and all Apple items.  Help?
    I am using Windows Vista home premium.  After the last iTunes update to 12, it suddenly would not work.  I followed, to a T, all instructions to uninstall all Apples software, in the correct order, reboot, download the latest iTunes, run as administrator, plug in the iPhone 5S, let the driver install, and then finish.
    Along the way, I received the error that "Service 'Apple Mobile Device' (Apple Mobile Device) failed to start.  Verify that you have sufficient privileges to start system services."  I am the administrator and have privileges.  (I previously followed instructions from anther thread to change the read-only privileges for Apple folders, but to no avail.  I also deleted every file with the word Apple in it after I uninstalled everything.)  I did a retry and then an ignore during installation of the AMD error, which I have received 10 times.
    The other error I keep getting is:  "iTunesHelper was not installed correctly.  Please reinstall iTunes.  Error 7."  I have done that 20 times.
    Other frequent error:  "iTunes was not installed correctly.  Please reinstall iTunes.  Error 7 (Windows error 998)."
    I followed other threads suggestions to install Windows .NET versions 3.5 and 4.0.  No help.  I also looked for various specific Apple files in various folders for DLLs, etc.  Not present.  I have rebooted 50 times and tried different users on my home account as well.  Nothing.
    I also followed instructions to Manage my computer under "services."  Under Apple Mobile Device, the setting is for "automatic."  When I try to get it to "start," the error I receive is "Windows could not start the Apple Mobile Device on Local Computer.  Error 1053:  The service did not respond to the start or control request in a timely fashion."  (I followed previous thread instructions to use the CMD prompt to stop it.  That caused problems because the status was then "stopped," but I was able to restart it later once I figured that out -- but with the 1053 error again.)
    I think I've tried every suggestion in every thread for the four errors I keep getting (AMD failed to start; iTunesHelper Error 7; Windows error 998; and AMD Error 1053.)  I am fresh out of ideas and very frustrated.  I mostly want to make sure I don't lose my music and photos, which I was about to sync.
    The only other thing I see that is strange on my computer (which I discovered along the way) is that I cannot receive automatic windows updates and have not had an update since 2012.  My iTunes worked a month ago, so that was obviously not a show-stopper in the past, but perhaps there is a Vista update I need for iTunes 12?  I have service pack 2 for Vista.  I have followed all threads to try to set my windows to automatic update, but no joy there either.  It checks for updates and then fails.  I followed instructions and did run an installation to install windows automatic updates, but that doesn't work either.  I tried 10 times.  It runs and takes a while, but is never able to successfully update windows.  It says "checking for updates" for a while.  Then it dies.  My last update was 6/19/12 (failed) and it says the most recent check was 6/22/12, but I have tried 20 times on 10/31/14 and 11/1/14.
    When asked to "Install new Windows Update software" to check for updates, I have done so 10 times.  It downloads and installs, but never works.
    It's an old Dell desktop computer from 2006, and I'm using an iPhone 5S.  I am fresh out of ideas.  Anyone really smart here?
    Thanks.
    Tristan

    Upon latest reboot, I also received this error message:  "The application failed to initialize properly (0xc0000005).  Click OK to terminate the application."
    Then I got the iTunesHelper not installed correctly error again.
    Then the "Windows can't check for updates" error message.
    Then "Apple Push has stopped working."  Then a quick DEP error message that disappeared but said something about Apple Push being closed.
    I'm also getting denials of service logged by McAffee.  Not sure if I'm getting a virus/attack or not.
    Not sure if it's a problem with my old desktop machine, my Windows Vista updates, or iTunes, but I'm very frustrated and out of ideas to try.
    Thank you for your help!
    Tristan

  • Table not returning correct information

    We had a problem where doing a select count(*) returned a number, but then when a select * was issued not rows were returned. Many iterations were tried. Some returning rows and others not. Then when trying to truncate FK errors occurred. Does anyone know what might have been the problem? Our solution was to drop and re-create the tables. This was in a test environment, but we don't want this to happen in production.
    Thanks.

    Something doesn't sound right to me. I haven't seen this happen in our Oracle databases but have seen this happen with a DB2 database
    when an index was corrupt. The solution was to rebuild the index in that case. I'd issue a statement to validate the structure of the table
    and its indexes:
    analyze table table_name validate structure cascade;
    From the 8.1.7 SQL manual:
    VALIDATE STRUCTURE
    Specify VALIDATE STRUCTURE to validate the structure of the analyzed object. The statistics collected by this clause are not used by the Oracle optimizer, as are
    statistics collected by the COMPUTE STATISTICS and ESTIMATE STATISTICS clauses.
    For a table, Oracle verifies the integrity of each of the table's data blocks and rows.
    For a cluster, Oracle automatically validates the structure of the cluster's tables.
    For a partitioned table, Oracle also verifies that each row belongs to the correct partition. If a row does not collate correctly, its rowid is inserted into the
    INVALID_ROWS table.
    For a temporary table, Oracle validates the structure of the table and its indexes during the current session.
    For an index, Oracle verifies the integrity of each data block in the index and checks for block corruption. This clause does not confirm that each row in the table
    has an index entry or that each index entry points to a row in the table. You can perform these operations by validating the structure of the table with the
    CASCADE clause (described below).
    Oracle stores statistics about the index in the data dictionary views INDEX_STATS and INDEX_HISTOGRAM.
    See Also: Oracle8i Reference for information on these views
    Validating the structure of an object prevents SELECT, INSERT, UPDATE, and DELETE statements from concurrently accessing the object. Therefore, do not use this
    clause on the tables, clusters, and indexes of your production applications during periods of high database activity.
    If Oracle encounters corruption in the structure of the object, an error message is returned to you. In this case, drop and re-create the object.
    INTO table
    Specify a table into which Oracle lists the rowids of the partitions whose rows do not collate correctly. If you omit schema, Oracle assumes the list is in
    your own schema. If you omit this clause altogether, Oracle assumes that the table is named INVALID_ROWS. The SQL script used to create this table
    is UTLVALID.SQL.
    CASCADE
    Specify CASCADE if you want Oracle to validate the structure of the indexes associated with the table or cluster. If you use this clause when validating a
    table, Oracle also validates the table's indexes. If you use this clause when validating a cluster, Oracle also validates all the clustered tables' indexes,
    including the cluster index.
    If you use this clause to validate an enabled (but previously disabled) function-based index, validation errors may result. In this case, you must rebuild the
    index.

  • Problems with EVGET not Returning Correct Results

    We have several reports with EVGETs that are not working.  It seems to be limited to gets on a particular datasrc when getting members at the base level.  Here is an example.
    Application: Budgeting
    Deptid: D_07104
    Account: A_612080
    Product: P_070040
    Project: PJ_NOPROJ
    Time: 2009.APR
    Datasrc; ACTUALS
    Category: INPUT
    At this point, all the members above are base level members.  A standard EVGET will not return results at this intersection even though there is data.  If we change any of the following (Deptid, product, time, or category) to a parent level member, data will be returned.  Another action we can take to get data to return is open a new worksheet and write the same EVGET on the same intersection and it will return results.  If we go back to the original sheet edit each formula and hit enter it will return the correct results.  If we refresh the sheet, the results will disappear.  We have also tried EVGTS and get similar results.
    Another thing we have tried is copying a month of data from datasrc (ACTUALS) and category (INPUT) to datasrc (NEW_ACTUALS) and category (NEW_INPUT) through the BPC delivered copy.  That seems to work.  I don't know if the copy does something to load the data that we are missing.  We also updated our fact table with a SQL update changing the datasrc and category the same way and processed the application and the data would return through some EVGETs and not others.

    This issue can happen when you have for onde dimension multiple hierachies and something is wrong into hierachies.
    Usually you have dimension formula where you are trying to do calculation of a member from H1 using members from H2.
    This it is an example but it can be other possible errors.
    Any way for sure your issue is related to one dimension having multiple hierachies.
    Regards
    Sorin Radulescu

  • Filr 1.1 LDAP Preview Not Returning Correct Number of Result

    I'm finishing set up of Filr 1.1 in our environment but noticed today that the LDAP preview does not return the correct number of results. The query:
    (&(objectClass=Person)(|(employeeType=E)(employeeT ype=Y)(employeeType=Z)))
    has been tried against multiple AD domain controllers and has so far returned 3 different user counts - 2895, 2800, and 2700. Mostly it always returns 2800. The correct count using powershell with the exact same ldap filter is over 5000.
    I would prefer not to try a sync until I have some confidence that it will complete successfully. Any suggestions?

    On Wed, 22 Apr 2015 17:26:03 GMT, jameswatson3
    <[email protected]> wrote:
    >
    > I'm finishing set up of Filr 1.1 in our environment but noticed today
    > that the LDAP preview does not return the correct number of results. The
    > query:
    >
    > (&(objectClass=Person)(|(employeeType=E)(employeeT ype=Y)(employeeType=Z)))
    >
    > has been tried against multiple AD domain controllers and has so far
    > returned 3 different user counts - 2895, 2800, and 2700. Mostly it
    > always returns 2800. The correct count using powershell with the exact
    > same ldap filter is over 5000.
    >
    > I would prefer not to try a sync until I have some confidence that it
    > will complete successfully. Any suggestions?
    Could you try it with filr 1.2?
    https://download.novell.com/Download...d=q-mgVFDsOKQ~

  • ADDT not returning correct results

    Hello
    SELECT tblTraders.trader_company AS trader_ref, tblTrades.trade_name AS trade_ref, tblT2t.t2t_id
    FROM (tblT2t LEFT JOIN tblTraders ON tblT2t.trader_ref = tblTraders.trader_id) LEFT JOIN tblTrades ON tblT2t.trade_ref = tblTrades.trade_id
    WHERE {$NXTFilter_rstblT2t1}
    ORDER BY {$NXTSort_rstblT2t1}
    With reference to the above SQL statement generated while using dynamic list wizard, the SQL does not return the correct results.
    Sadly the SQL does not retrieve the field "trade_ref" and is blank when the "test" button is used.
    Anyone got any ideas?
    Cheers
    Paul

    Hi Paul,
    does this query return the correct results when loading the page in a browser ?
    Cheers,
    Günter

  • Res.getPathTranslated() does not return correct URL of the page requested

    Hi,
    The res.getPathTranslated() statement in the below code (in doFilter method) does not return the correct URL of the requested webpage.
    Whenever a web page is accessed using a return statement (eg : return "nextPage"; ) inside a button's action method or a hyperlink's action method, the res.getPathTranslated() returns the URL of the current webpage instead of returning the URL of the webpage that is actually requested.
    For example if there is a button on the page http://localhost:29080/MyJaas/faces/firstPage.jsp
    And the button_action() is as follows
    button_action()
    return "nextPage";
    The res.getPageTranslaged() returns "http://localhost:29080/MyJaas/faces/firstPage.jsp" instead of "http://localhost:29080/MyJaas/faces/nextPage.jsp"
    However, if the webpage is requested by populating the URL property of the hyerlink in creator IDE, the res.getPathTranslated() returns the correct (requested) web page.
    How to make res.getPathTranslagted() return the correct URL when the webpage is accessed from hyperlink's / button's action method?
    I know that the explation is not very clear, so please bear with me. Let me know if you need more clarificatons. Thanks in advance for showing interest in this issue.
    And by the way, the code below is the same as that used in Jaas Authentication tutorial :- http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/jaas_authentication.html
    package jaasauthentication;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.http.HttpSession;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class SecurityFilter implements Filter{
        /** Creates a new instance of SecurityFilter */
        private final static String FILTER_APPLIED = "_security_filter_applied";
        public SecurityFilter() {
        public void init(FilterConfig filterConfig) {
        public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws java.io.IOException, ServletException{
            HttpServletRequest req = (HttpServletRequest)request;
            HttpServletResponse res = (HttpServletResponse)response;
            HttpSession session = req.getSession();
            String requestedPage = req.getPathTranslated();
            String user=null;
            //We dont want to filter certain pages which include the Login.jsp/Register.jsp/Help.jsp
            if(request.getAttribute(FILTER_APPLIED) == null) {
                //check if the page requested is the login page or register page
                if((!requestedPage.endsWith("Login.jsp")) && (!requestedPage.endsWith("Register.jsp")) && (!requestedPage.endsWith("Help.jsp"))){
                    //Requested page is not login.jsp or register.jsp therefore check for user logged in..
                    //set the FILTER_APPLIED attribute to true
                    request.setAttribute(FILTER_APPLIED, Boolean.TRUE);
                    //Check that the session bean is not null and get the session bean property username.
                    if(((jaasauthentication.SessionBean1)session.getAttribute("SessionBean1"))!=null) {
                        user = ((jaasauthentication.SessionBean1)session.getAttribute("SessionBean1")).getUsername();
                    if((user==null)||(user.equals(""))) {
                        res.sendRedirect("Login.jsp");
                        return;
            //deliver request to next filter
            chain.doFilter(request, response);
        public void destroy(){
    }

    Guys any solution for the above problem?
    Right answer fetches 10 duke dollars..

  • MessageChoice does not return correct value

    Hi
    I am problem with MessgeChoiceBean's improver beharior
    For the first time it retunrs blank and subsequently In one page if I select Yes, it returns No.
    In another page it does not return any thing for the first two selections. And I reciev flip values.
    I ran VO outside, VO is returning correct values.
    MessageChoice attributes and associated PPR:
    Data Type: Varchar2
    Initial Value: N
    Pick List view Definition: oracle.apps.xxx.docs.common.lov.server.YesNoVO
    Pick List View Instance: YesNoVO3
    Pick List Display Attribute: Meaning
    Pick List Value AttributeL LookupCode
    ActionType: firePartialAction
    Event: handleNewLocationFlagChange
    Parameter Name: newLocationFlag
    Parameter Value: ${oa.CustomerInfoVO1.NewShipToLocationFlag}
    ProcessParameterForm Code:
    if ("handleNewLocationFlagChange".equals(event))
    String newLocationFlag = pageContext.getParameter("newLocationFlag");
    Serializable[] parameters = { ""+newLocationFlag};
    Class[] paramTypes = { String.class};
    am.invokeMethod("handleNewLocationFlagChange", parameters, paramTypes);
    VO definition:
    select LOOKUP_CODE,MEANING
    FROM ONLINE_DOCS_LOOKUPS
    WHERE ONLINE_DOCUMENT_CODE = 'ALL'
    AND LOOKUP_TYPE = 'YESNO'
    ORDER BY ATTRIBUTE1
    View output:
    LOOKUP_CODE     MEANING
    N     No
    Y     Yes
    I have quite a bit number of columns to change render property.
    Any help will be appreciated.
    Thanks
    Prasad

    Your question is not clear, are you saying the values in the messageChoiceBean is not displayed properly. As far as I can see from the definition the poplist picks the values from a lookup(Yes, No) values and has a PPR action associated with it. Did you check what this method handleNewLocationFlagChange is doing in the AM ?

  • Rtrim in where clause not returning correct data

    A select statement specifying
    where rtrim(field_name) &lt;&gt; ''
    is not returning any rows even though there is data on the table with field_name not blank.
    If this particular where clause is omitted the data is returned and rtrim(field_name) is populated correctly.
    This is occurring across different tables and in both 10.2.0.4 and 11.2.0.1 databases. I can't find any references to this being a bug.
    Has anyone else come across this ? Can anyone explain why this is happening please ?

    An empty VARCHAR2 is considered NULL by Oracle.
    sql> select 1 from dual where trim (' ') = '';
    no rows selected
    sql> select 1 from dual where trim (' ') != '';
    no rows selected
    sql> select 1 from dual where trim (' ') is null;
             1
             1

  • ERROR: FMS Server did not return correctly!

    We have several adobe connect HOST meeting rooms. Lately, some users have sent us their complaints arguing:
    "Unable to connect - FMS server did not return corrently"
    I asked them to send me the test's details. 
    "App-Server returned: code:ok, servers=rtmp://fmwebserversec:1935/_rtmp://localhost:8506/,rtmpt://fmwebserversec:443/_rt mp://localhost:8506/"
    I know, this threat has been post at this forum, but I don't find a solution for my users. The Adobe Connect Support is trying to give a solution, but at the moment, I haven't recieve any solution.
    I' ve tried: disconnect firewall, anti-virus,... and they keep unable to connect. (using adobe connect hosted ver 7.5)
    Thanks for your advice and help.
    Rafael

    Obviously  this topic creates controversy

  • [E2007] [EWS] [PS] $PR_Folder_path not returning correct value

    Apologies if this is something obvious but I'm trying to get the full folder path from an EWS Powershell script. I call the PR_Folder_Path extended property but it always returns: {MapiType: String Tag: 26293 }
    The code is:
    Function SearchFolder( $FolderId )
    # Bind to the folder and show which one we are processing
    $folder = [Microsoft.Exchange.WebServices.Data.Folder]::Bind($service,$FolderId)
    $PR_Folder_Path = new-object Microsoft.Exchange.WebServices.Data.ExtendedPropertyDefinition(26293, [Microsoft.Exchange.WebServices.Data.MapiPropertyType]::String)
    # Search the folder for any matching items
    $pageSize = 500 # We will get details for up to 500 items at a time
    $offset = 0
    $moreItems = $true
    # Perform the search and display the results
    while ($moreItems)
    $searchFilter = New-Object Microsoft.Exchange.WebServices.Data.SearchFilter+IsEqualTo([Microsoft.Exchange.WebServices.Data.ItemSchema]::ItemClass, $MessageClass)
    $view = New-Object Microsoft.Exchange.WebServices.Data.ItemView($pageSize, $offset, [Microsoft.Exchange.WebServices.Data.OffsetBasePoint]::Beginning)
    $view.PropertySet = New-Object Microsoft.Exchange.WebServices.Data.PropertySet([Microsoft.Exchange.WebServices.Data.BasePropertySet]::IdOnly, [Microsoft.Exchange.WebServices.Data.ItemSchema]::ItemClass, [Microsoft.Exchange.WebServices.Data.ItemSchema]::Subject, [Microsoft.Exchange.WebServices.Data.ItemSchema]::DateTimeCreated)
    $view.Traversal = [Microsoft.Exchange.WebServices.Data.ItemTraversal]::Shallow
    $results = $service.FindItems( $FolderId, $searchFilter, $view )
    $lastRow = $ws.cells.Range("A1048576").End($xlup).row
    $lastRow++
    Write-Host $pr_folder_path " - " $folder.displayname " - " $folder.folderclass " - " $folder.totalcount " - " $results.totalcount " - " $folder.unreadcount
    $cells.item($lastrow,1)=$folder.displayname
    $cells.item($lastrow,2)=$folder.folderclass
    $cells.item($lastrow,3)=$folder.totalcount
    $cells.item($lastrow,4)=$results.totalcount
    $cells.item($lastrow,5)=$folder.unreadcount
    $moreItems = $results.MoreAvailable
    $offset += $pageSize
    # Now search subfolders
    $view = New-Object Microsoft.Exchange.WebServices.Data.FolderView(500)
    ForEach ($subFolder in $folder.FindFolders($view)) {
    SearchFolder $subFolder.Id
    Note: some of the code comes from the following script -
    http://blogs.msdn.com/b/emeamsgdev/archive/2013/06/25/powershell-search-mailbox-for-items-of-a-particular-message-class-itemclass.aspx

    Hi,
    for performing your task you need to declare the property before and requests it when you bind to the folder.
    Sample code is in C#, up to you to convert it in powershell...
    var folder = Microsoft.Exchange.WebServices.Data.Folder.Bind(service, folderId, new PropertySet(BasePropertySet.FirstClassProperties, PR_Folder_Path));
    string folderPath;
    folder.TryGetProperty(PR_Folder_Path, out folderPath);
    Regards,
    Désiré GOVIN Refresh IT Solutions

  • Bizzare error - datasource and getdate not returning correct day of week

    Hi,
    This is on CFMX 7.0.2,142559.
    I have a data source pointing to a MS SQL server. There is a
    simple query that access a date off the database and extract the
    values of:
    -. Current timestamp
    -. Day of week
    -. First day of week
    The query has been running for years and suddenly it gives me
    the wrong Day of week and First day of week, but the timestamp is
    correct! The result of the calculation for the Day of Week suddenly
    became one day ahead, the @@DATEFIRST switched between 6 and 7
    (being 7 as the correct value).
    Here is the code:
    <cfquery name="dte0" datasource="test123"
    SELECT getdate() dte, DATEPART(dw, getdate()) dteDW,
    @@DATEFIRST dteFirst, @@language LanguageVersion
    </cfquery>
    <cfdump expand="Yes" label="Query Dump" var="#dte0">
    I tried to delete and recreate this data source, restart CF
    and flush the cache with no success.
    The really bizarre thing is for a few minutes after I restart
    CF, it returnes the correct data, but then it suddenly moves one
    day ahead - and again, only the Day of week. The DATEFIRST
    sometimes returns 6 (instead of the correct value of 7) The
    timestamp is ALWAYS correct.
    I then created a second data source with exactly the same
    parameters and named it "test456" and it works perfectly every
    time!!
    I am baffled as how this happened and how to fix it.
    Does anyone know if somehow the datasource "test123" is
    cached somewhere? Appreciate any advice/suggestions/ideas.
    Aditya.

    > The query has been running for years and suddenly it
    gives me the wrong Day of
    > week and First day of week, but the timestamp is
    correct! The result of the
    > calculation for the Day of Week and First day of week
    suddenly became one day
    > ahead.
    >
    > Here is the code:
    >
    > <cfquery name="dte0" datasource="test123"
    > SELECT getdate() dte, DATEPART(dw, getdate()) dteDW,
    $$DATEFIRST dteFirst,
    > @@language LanguageVersion
    > </cfquery>
    > <cfdump expand="Yes" label="Query Dump"
    var="#dte0">
    When CF encouters the string within a <cfquery> tag,
    all it does is resolve
    any CF expressions (there are none in your example), and then
    passes the
    finalised string to the DB and patiently waits for the DB to
    respond, at
    which point CF converts the DB-specific result set to a CF
    recordset, and
    returns it to the calling code. There is very little
    involvement on the
    part of CF other than that: the DB does most of the work, and
    is providing
    all the data.
    All that said, it does seem weird that one DSN returns one
    thing, and
    another returns something else. Is your test rig like this:
    <cfquery name="dte0" datasource="test123"
    SELECT getdate() dte, DATEPART(dw, getdate()) dteDW,
    $$DATEFIRST dteFirst,
    @@language LanguageVersion
    </cfquery>
    <cfdump expand="Yes" label="Query Dump" var="#dte0">
    <cfquery name="dte0" datasource="test456"
    SELECT getdate() dte, DATEPART(dw, getdate()) dteDW,
    $$DATEFIRST dteFirst,
    @@language LanguageVersion
    </cfquery>
    <cfdump expand="Yes" label="Query Dump" var="#dte0">
    IE: both queries to each DSN within the same CF template,
    executed at the
    same time.
    (note: you have a syntax error in your <cfdump>
    statement, so that actually
    *isn't* the code you're running, because it would error).
    If you run the query via some other client (like Query
    Analyser, or SQL
    Studio), what do you get? Does it differ from what CF
    presents?
    Adam

Maybe you are looking for

  • In windows xp how huge an avi file is possible?

    in windows xp how huge an avi file is possible?

  • Kernel_task disk I/O?

    I've noticed that no matter what I'm doing, the kernel_task appears to write to disk (~5 MB/s) either constantly or in aperiodic burst. It appears to read about 1/200th of this rate. Spotlight is not indexing. The MDS and other tasks aren't using any

  • Webutil, WUT-132

    Hi, I have external table created. I have entries in webutilcfg. I am copying a file uploaded by a user to a specific location on AS. webutil.cfg has entry for this location. I made use of external table to get this file data. Issue is: I am not able

  • Can I shuffle two playlists at the same time?

    How can I shuffle two playlists at the same time?  Thank you.

  • ATV restarts when switching on TV

    I have annoying problem that my appleTV often restarts when I turn the TV on. I'm using HDMI cable and the TV is Sony KDL 40V3000. appleTV was recently upgraded to "take Two". It is a bit annoying since I have to wait for appleTV to come back to life