Date handling weirdness in SQLServer hsodbc

Folks, I am getting some weird stuff happening while using hsodbc for sqlserver, pulling from a view, with sqlserver columns of type datetime.
Using sqlserver tools I can see that the source data in some instances is for year 1900 (default) and in other cases year 2100 (our future enddate). In both of these cases though a very simple mapping to store the data in Oracle results in getting the year 2000 for both of them. What are my options? What is the reason for this condition?
Thanks in advance.
Regards,
ak

Could be related to the NLS_DATE_FORMAT setting.
Just inserted dates with year 1900 and 2100 into a SQL Server demo table.
At the ODBC driver manager make sure MS SQL Server ODBC driver does NOT have the use regional setting for outputting currency, numbers, dates and times checked.
SQL> alter session set nls_date_format='dd.mm.yyyy';
SQL> select * from "datetest"@sqlserver where "col1" < to_date('10.02.2005','dd.mm.yyyy');
col1
30.01.1900
10.01.1900
10.12.1900
SQL> select * from "datetest"@sqlserver where "col1" > to_date('10.02.2008','dd.mm.yyyy');
col1
10.02.2100
10.01.2100
30.01.2100
BUT:
SQL> alter session set nls_date_format='dd-mon-rr';
Session altered.
SQL> select * from "datetest"@sqlserver where "col1" > to_date('10.02.2008','dd.mm.yyyy');
col1
10-feb-00
10-jan-00
30-jan-00
SQL> select * from "datetest"@sqlserver where "col1" < to_date('10.02.2005','dd.mm.yyyy');
col1
30-jan-00
10-jan-00
10-dec-00
So please make sure the NLS_DATE_FORMAT is properly set AND the option in the ODBC driver is unchecked.
A couple of issues are also mentioned in:
Article-ID: Note 69029.1
Title: Implicit DATE Conversions - Issues to be aware of

Similar Messages

  • Plan data handling profile

    Dear Gurus,
    There is a customzing point under Project System -> Costs -> Planned Costs -> Maintain plan data handling profile.
    Does anyone have any idea about:
    - where can it be used?
    - what is it used for?
    I was looking for any tool which makes plan figures on WBS elements out of purchase orders and I found this but there is no info at all, no where.
    Thanks in advance,
    Jeno

    This profile is aimed to be used in transaction AD31 (and associated Tcode AD32). Those belongs to an add-on of IS A&D solution.
    The purpose is to provide a functionality to calculate the plan cost at completion by adding the actuals costs (including or not the commitments form PO and/or PR) to the cost to complete entered in a specific planning version.
    This functionality can also be used to calculate the cost to complete by calculating the difference between the plan costs at completion stored on a dedicated planning version, and actuals costs (including or not the commitments form PO and/or PR).
    As SAP provides, independently, the possibility to copy actual to plan, the profile gives the flexibility to calculate the cost to complete by adding 2 planning versions.

  • Data handling issue

    The problem is that my application receives sterilized java object in zip format from third party system then my application can update into DB2 tables in a given time frame (max 1 min). This results into a buffer overflows which implies that data are discarded due to buffer size limit. Every min, my application receives the data from third party.
    At present, application data handling is implemented in queuing mechanism. Application expected to handle 100000 java objects per min. Do you have any idea to implement the solution for above issue.
    At present I have an idea to implement virtual table (array list) and keep the data into memory..use it after 1 min. required your valuable input.

    831403 wrote:
    The problem is that my application receives sterilized java object in zip format from third party system then my application can update into DB2 tables in a given time frame (max 1 min). This results into a buffer overflows which implies that data are discarded due to buffer size limit. Every min, my application receives the data from third party.
    At present, application data handling is implemented in queuing mechanism. Application expected to handle 100000 java objects per min. Do you have any idea to implement the solution for above issue.
    At present I have an idea to implement virtual table (array list) and keep the data into memory..use it after 1 min. required your valuable input.My valuable input: Re-read your own question and try again. What do you actually want? What you've written is totally incomprehensible.
    Question: What is a "sterilized" object? I'm familiar with several euphemisms, but that's a new one on me.
    This for nothing:
    1. Simply reading 100,000 objects could take a reasonable percentage of your 1 minute, let alone marshalling and then sending them to a database for update. This suggests to me that your solution isn't scalable.
    2. Buffer overflows (if that's indeed what it is; you haven't supplied an exception) are a result of bad programming. Find the bug, and fix it.
    Winston

  • Data handling tool

    plz enlist  data handling tools in labview?

    What do you mean by data handling?  What exactly are you trying to do?
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Mass data handling in an Enterprise SOA

    Hello together,
    i'm working on my diploma thesis with the title "Design of a service-oriented architecture based on SAP NetWeaver".
    For this work an enterprise service is designed to calculate a special price matrix (10x5) from a given price for a product.
    Additionally the matrix for a product can have four variations, depending from input values. I think for few products there's no problem.
    But it's also possible that someone wants to export the price matrices for all 15.000 products. So there are 60.000 (4 x 15.000) service requests at once.
    So my questions:
    Is it (without bigger problems) possible for a service to handle so many requests at one time? Or generally, how behaves enterprise SOA in cases of mass data requests like that (network traffic, workload, overhead for enterprise services...)?
    An alternative is to storage all matrices in a DB (would be much redundancy, because variations of the matrices are very similar).
    Thanks for any answers
    Joschi

    Having the same service to get one product price as well as all product prices would not be recommended. Two separate services would be more reasonable
    Mass data handling in SOA is not entirely different than let's say in BAPI/RFC environment. parallelism, multi-threading, locking, commit and many others are typical elements of considerations.
    From a scalability standpoint, you can always be interested in how optimal its performance is whether you call it once or a million times. If the service is a rather slim one (lightweight in terms of number and types of parameters as well as processing code), you'll surely have better chance than with a service that's heavyweight.

  • Screen data handling in Screen Enhancement with BAdI's ?

    Hi all,
    I'm trying to build a Screen Enhancement with (new) BAdI concept.
    But now I'm having a Problem. The new BAdI's don't allow variable Attributes  (instance/static attribute) in the BAdI Interface.
    If I try to define an instance or static Attribute for the BAdI-Interface I get the following error message:
    "BAdI interface <my_badi_if> contains non-constant attributes "
    In my Screen Enhancement I have build a Subscreen with new fields in it. These field data couldn't be saved in the BAdI class (e.g. via BAdI-methods my_badi->get_data_from_screen... and my_badi->put_data_on_screen...) because having no attributes.
    How these screen-data could be handled without BAdI-Interface-Attributes?
    Thanks in advance,
    Anja

    Having the same service to get one product price as well as all product prices would not be recommended. Two separate services would be more reasonable
    Mass data handling in SOA is not entirely different than let's say in BAPI/RFC environment. parallelism, multi-threading, locking, commit and many others are typical elements of considerations.
    From a scalability standpoint, you can always be interested in how optimal its performance is whether you call it once or a million times. If the service is a rather slim one (lightweight in terms of number and types of parameters as well as processing code), you'll surely have better chance than with a service that's heavyweight.

  • Error -2003: a data handler needed by the movie could not be found

    Hello.
    I just purchased QuickTime Pro and the MPEG-2 add-on for it, for the single purpose of transcoding some MPEG-2 recordings to H.264. However, when I try to open any of my MPEG-2 files in Quicktime, I get the message: "error -2003: a data handler needed by the movie could not be found (my-filename.mpg)"
    I can play these files in a number of different free players--VLC, Mplayer, Windows Media Player, RealPlayer... but not in the player I paid $50 for.
    Can someone please help me?

    That doesn't really help. Besides, I haven't even got to the point where I'm trying to export. I get this error message when I try to open the file. I can't even play back the clip.
    And the MPEG-2 page clearly states: "The QuickTime MPEG-2 Playback Component provides QuickTime users with the ability to import and play back MPEG-2 content, including both multiplexed (a.k.a. muxed, where the audio and video tracks are interleaved together into one track) and non-multiplexed (a.k.a. elementary) streams."
    Also, Streamclip crashes when I try to load my MPEG-2 clips, so that's not going to work (and even if it did, I am trying to find a simple way to take the HDTV content I've recorded off the air and get it onto my AppleTV--I want fewer steps, not more).
    Looks like I'll have to waste some time calling customer service to get a refund, since there's no way to do this via the website.

  • How is table control data handled in Session Method?

    Hi Friends,
    Can any1 plz tell me how is table control data handled in Session Method.
    In Call tran we do it by count. But how in Session Method?
    Thank you.
    Regards,
    Varun.

    Hi,
    u can do it by both methods. u can check out this program. u need to comment the performs of table control fields and write ur own perform statements.And u have to declare the table control fields as separate internal tables.
    report zcustomer_change_bict
           no standard page heading line-size 255.
    include bdcrecx1.
    data: begin of it_record occurs 0,
            kunnr like rf02d-kunnr,
            d0360 like rf02d-d0360,
            anred(30) type c,
            name1(35) type c,
            namev(35) type c,
            telf1(35) type c,
            abtnr(10) type c,
          end of it_record.
    data: begin of it_knvk1 occurs 0,
          anred like knvk-anred,
          end of it_knvk1.
    data: begin of it_knvk2 occurs 0,
          name1 like knvk-name1,
          end of it_knvk2.
    data: begin of it_knvk3 occurs 0,
          namev like knvk-namev,
          end of it_knvk3.
    data: begin of it_knvk4 occurs 0,
          telf1 like knvk-telf1,
          end of it_knvk4.
    data: begin of it_knvk5 occurs 0,
          abtnr like knvk-abtnr,
          end of it_knvk5.
    data : fld(20) type c,
           cnt(2) type n.
    start-of-selection.
      call function 'GUI_UPLOAD'
        exporting
          filename                      = 'C:\CUSTCH.TXT'
         filetype                      = 'ASC'
        has_field_separator            = 'X'
        tables
          data_tab                      = it_record
    exceptions
       file_open_error               = 1
       file_read_error               = 2
       no_batch                      = 3
       gui_refuse_filetransfer       = 4
       invalid_type                  = 5
       no_authority                  = 6
       unknown_error                 = 7
       bad_data_format               = 8
       header_not_allowed            = 9
       separator_not_allowed         = 10
       header_too_long               = 11
       unknown_dp_error              = 12
       access_denied                 = 13
       dp_out_of_memory              = 14
       disk_full                     = 15
       dp_timeout                    = 16
       others                        = 17
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      perform open_group.
      loop at it_record.
        refresh bdcdata.
        refresh: it_knvk1,it_knvk2,it_knvk3,it_knvk4,it_knvk5.
        split it_record-anred at ',' into table it_knvk1.
        split it_record-name1 at ',' into table it_knvk2.
        split it_record-namev at ',' into table it_knvk3.
        split it_record-telf1 at ',' into table it_knvk4.
        split it_record-abtnr at ',' into table it_knvk5.
    screen 101
        perform bdc_dynpro      using 'SAPMF02D' '0101'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'RF02D-D0360'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/00'.
        perform bdc_field       using 'RF02D-KUNNR'
                                      it_record-kunnr.
        perform bdc_field       using 'RF02D-D0360'
                                      it_record-d0360.
    screen 360
        perform bdc_dynpro      using 'SAPMF02D' '0360'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'KNVK-ABTNR(01)'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=ENTR'.
    *perform bdc_field       using 'KNVK-ANRED(01)'
                                 record-ANRED_01_003.
    *perform bdc_field       using 'KNVK-NAMEV(01)'
                                 record-NAMEV_01_004.
    *perform bdc_field       using 'KNVK-NAME1(01)'
                                 record-NAME1_01_005.
    *perform bdc_field       using 'KNVK-TELF1(01)'
                                 record-TELF1_01_006.
    *perform bdc_field       using 'KNVK-ABTNR(01)'
                                 record-ABTNR_01_007.
        move 1 to cnt.
        loop at it_knvk1 .
          concatenate 'knvk-anred( ' cnt ' ) ' into fld.
          perform bdc_field using fld it_knvk1-anred.
          cnt = cnt + 1.
        endloop.
        move 1 to cnt.
        loop at it_knvk2 .
          concatenate 'knvk-name1( ' cnt ' ) ' into fld.
          perform bdc_field using fld it_knvk2-name1.
          cnt = cnt + 1.
        endloop.
        move 1 to cnt.
        loop at it_knvk3 .
          concatenate 'knvk-namev( ' cnt ' ) ' into fld.
          perform bdc_field using fld it_knvk3-namev.
          cnt = cnt + 1.
        endloop.
        move 1 to cnt.
        loop at it_knvk4 .
          concatenate 'knvk-telf1( ' cnt ' ) ' into fld.
          perform bdc_field using fld it_knvk4-telf1.
          cnt = cnt + 1.
        endloop.
        move 1 to cnt.
        loop at it_knvk5 .
          concatenate 'knvk-abtnr( ' cnt ' ) ' into fld.
          perform bdc_field using fld it_knvk5-abtnr.
          cnt = cnt + 1.
        endloop.
    screen 360
        perform bdc_dynpro      using 'SAPMF02D' '0360'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'KNVK-NAMEV(01)'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=ENTR'.
        perform bdc_transaction using 'XD02'.
      endloop.
      perform close_group.

  • SRM7.0 Meta Data Handling or Component Configuration

    Hi Experts!
    Let's say you for some reaseon want to remove the a field in the Shopping Cart at item level. To achieve this you could e.g.
    1. Use the Component Configurator (SE80) - and use the browser-based Editor for the WDP ABAP Component Configurator
    2. Use the Meta Data Handling Concept and configure the field control there
    My guess is that one should use #2 if one need to control the behaviour of the field according to roles or authorities, but is this correct, or are there other considerations that should be taken into account when performing UI adjustments using the above mentioned methods?
    brgs Ziggy

    Check the below link, this should help you.
    http://wiki.sdn.sap.com/wiki/display/SRM/HowtoaddCustomerfieldsinSAP+SRM
    Regards,
    Jagadish

  • US to UK Date Handling

    Hi all,
    Is it possible to set up date handling in Project Siena so it recognises Date input as dd/mm/yy instead of the US mm/dd/yy.

    just format a date in whatever format you like with Text function
    Example
    Text(Today(),"dd/mm/yy")               03/11/14
    Text(Today(),"dd/mmmm/yy")          03/November/14
    Check this page out for all function
    http://technet.microsoft.com/library/dn690139
    And for date inputs is much more better to create own date picker. Here is a link to one of them
    https://onedrive.live.com/redir?resid=435EB1CB289C9DE5!21363&authkey=!AH6jXP3fUNUux6c&ithint=file%2csiena
     

  • Data Handler source code need modification

    I found this in the forum and try to implement it in my page. The code is running okay but just that when I first load the page into the browser, It shows ALL the records in the database beneath the searchbox.
    All I want is first time user come to the page, it only show the search box but no result. And after user enter the data, it then performs the search and show the result beneath.
    <%@ page language="java" errorPage="errorpage.jsp" contentType="text/html;charset=ISO-8859-1" %>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <html>
    <head>
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <LINK REL=STYLESHEET TYPE="text/css" HREF="/webapp/css/bc4j.css">
    <TITLE>Browse Form</TITLE>
    </head>
    <body>
    <jbo:ApplicationModule id="am" configname="oetest.OeAppModule.OeAppModuleLocal" releasemode="Stateful" />
    <jbo:DataSource id="ds" rangesize="3" appid="am" viewobject="ProductInformationView" />
    <jbo:DataHandler appid="am" />
    <%
    /* This scriplet processes http parameters used to extract the search
    and column strings to build the criteria value string */
    /* Initialize variables to hold string if search string and column doesn't
    change between requests.*/
    String column_name=(String)session.getValue("sessionColumnName");
    String search_value=(String)session.getValue("sessionSearchValue");
    // Set search_value to empty string for first time rendering
    if (search_value == null) search_value="";
    String criteria_value;
    //get search parameter and set in session for persistence
    if (request.getParameter("search")!=null) {
    search_value=request.getParameter("search").trim();
    session.putValue("sessionSearchValue", search_value);
    //get column parameter and set in session for persistence
    if (request.getParameter("column")!=null) {
    column_name=request.getParameter("column").trim();
    session.putValue("sessionColumnName", column_name);
    //Construct the criteria value string.
    criteria_value="like '%" + search_value + "%'";
    %>
    <jbo:OnEvent name="Find" >
    <!-- Create a new ViewCiteria to filter data source. ViewCriteria is a
    container for CriteriaRow and Criteria, which filter the rowset returned
    by the the datasource (view object) -->
    <jbo:ViewCriteria id="vc" datasource="ds" action="new">
    <!-- Create CriteriaRow to restrict the query for every attribute
    Essentially, each CriteriaRow works analogous yp an 'AND' in the where
    Clause of the view object. Here we only want to restrict the
    query based on the chosen column. Using 'uppercolumns' makes the
    restricts case insensitive -->
    <jbo:CriteriaRow id="row" > <!-- uppercolumns="true" -->
    <!-- This ensures that column_name has a non empty value. -->
    <% if (column_name==null || column_name.equals("")) { %>
    <jbo:AttributeIterate id="defvc" datasource="ds" queriableonly="true" >
    <% column_name=defvc.getName(); %>
    </jbo:AttributeIterate>
    <% } // end if %>
    <!-- Create Criteria as part of a CriteriaRow to include one or more
    attributes. Essentially, each CriteriaRow works analogous to
    an 'OR' for each attribute in the where Clause of the
    view object. Specify the column_name and criteria_value in the
    dataitem and value attributes, respectively. -->
    <jbo:Criteria dataitem="<%= column_name %>" value="<%= criteria_value %>" />
    <!-- Close CriteriaRow, ViewCriteria tags, respectively -->
    </jbo:CriteriaRow>
    </jbo:ViewCriteria>
    </jbo:OnEvent>
    <h3>ProductInformationView Browse Form</h3>
    <!-- Add a form for the search input -->
    <form name="exsearch" action="ProductInformationView_Browse.jsp" method="post">
    <table>
    <tr>
    <td align="left" nowrap>
    <img border="0" src="go.gif" align="top" width="22" height="25">
    <b><font face="Arial" size="4" color="#336699"> Search </font></b>
    <!-- use a drop list of column names to select. Iterate through Attribute names -->
    <select name="column">
    <jbo:AttributeIterate id="defvc2" datasource="ds" queriableonly="true" >
    <option value="<%= defvc2.getName() %>" <%= defvc2.getName().equals(column_name)?"selected":"" %> ><%= defvc2.getName() %></option>
    </jbo:AttributeIterate>
    </select>
    <!-- Input field for search string -->
    <input name="search" value="<%= search_value %>">
    <input type="submit" name="jboEvent" value="Find">
    </td>
    </tr>
    </table>
    </form>
    <!-- The rest was generate using the BC4J JSP Wizard to build a Browse form. -->
    <table border="0">
    <tr>
    <td ALIGN="right"><jbo:DataScroller datasource="ds"/></td>
    </tr>
    <tr>
    <td><jbo:DataTable datasource="ds" /></td>
    </tr>
    </table>
    <jbo:ReleasePageResources />
    </body>
    </html>

    JosAH wrote:
    A couple of years ago Sun supplied their javax.comm package (mysteriously versioned as version 2)
    but they stopped it for the PC Windows.
    There's an alternative: rxtx which offers an identical API as Sun did and their own native implementation for serial and parallel port handling; I have used both and the rxtx version is clearly superior to Sun's old version: http://www.rxtx.org
    This question popped up recently.
    tschodt wrote in [http://forums.sun.com/thread.jspa?messageID=10863769#10863769:}
    [Java Communications API|http://java.sun.com/products/javacomm/]
    Implementations of the API are currently available for Solaris SPARC, Solaris x86, and Linux x86.follow the Download link to find
    Sun no longer offer's the Windows platform binaries of javax.comm, however javax.comm 2.0.3 can be used for the Windows platform, by using it in conjunction with the Win32 implementation layer provided by the RxTx project. To use that, download javax.comm for the 'generic' platform (which provides the front-end javax.comm API only, without platform specific back-end implementations bundled). Then acquire the Windows binary implementation rxtx-2.0.7pre1 from http://www.rxtx.org.

  • Problem with apply changes on master-detail with respect to date handling

    dear sir,
    i have one tabler where in i have created from_Date and to_date as varchar2(30) each. I stored the from date as 'dd-mon-yyyy hh24:mi' I had written before header process for calculating no of days between from_Date and to_Date using the said format. If to_Date is null then first i store the value as
    to_char(sysdate,'dd-mon-yyyy hh24:mi') and then convert it as to_Date(substr(to_Date,1,17),'dd-mon-yyyy hh24:mi'). this calculation of days procedures works fine in sql command mode.
    when i am handling through master-detail page i works fine when there is null value inf to_Date vc2 column. if i store using date picker dd-mon-yyyy hh24:mi, the data is getting stored but subsequent edit through master detail give error as ora-01722 unable to fetch row. Manually if i set the to_Date as null pages works fine. I spent lots of time and unable to understand the mistake i do.
    if anybody could help me, i will be much obliged.
    thanking you,
    yours
    dr.s.raghunatha

    I think the best would be if you create an example on apex.oracle.com and I will debug it.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Date handling change w/upgrade

    Raj,
    Hope all is well, I upgraded from htmldb 1.38 to 1.4.0.00.21c
    Noticed dates are acting different...
    Here is just one example...Before the upgrade, I had a validation function that worked
    begin
    if :P15_SDATE < sysdate - 10950
    or :P15_EDATE < sysdate - 10950
    or :p15_sdate > :P15_edate
    then return false;
    else
    return true;
    end if;
    end;
    after the upgrade it did not work, and returned invalid month errors....
    The :p15_sdate and :p15_edate are date pickers in my native format (mm/dd/yyyy)...
    After the upgrade it only worked if I changed the code and did a
    to_date(:p15_sdate ,'MM/DD/YYYY')
    and this is fine (I know I should be comparing dates to dates and already fixed the code)...but wondering if you know about this, why the change...and am I missing something I should/could be doing to make it better.
    Thanks,
    Meyer

    though i'm pretty sure we've made no code changes to the way dates are handled in html db by default, there's a small chance that we're doing a better job of picking up the correct nls settings as determined by the Globalization options available on the application-level attributes page. to be honest, my hunch/hope is that you changed that "Application Language Derived From" attribute from the default "No NLS (Application not translated)" to "Browser (use browser language preference)". if your app's set to that "Browser (use browser language preference)", your nls_date_format will be set to the standard for your current language (in your case i'd guess that'd be en-us and dd-mon-yy, respectively). if your "Application Language Derived From" attribute is set "No NLS (Application not translated)", then we'd be using the nls_date_format of our database. so, assuming the date format of your db truly is 'MM/DD/YYYY' and your app is set up to provide no NLS support, i'm pretty sure you'd find that having a pl/sql region on a page in your app that did a...
    htp.p (sysdate);
    ...would return something like...
    10/01/2003
    ...if you then change your "Application Language Derived From" attribute to "Browser (use browser language preference)" and accessed your app from a browser using a primary language of "en-us" you'd find your pl/sql region returned a...
    01-OCT-03
    ...or at least that's my take on this stuff. i'm pretty sure i'm on the right track, though. again, after talking to our development manager about this, i'm rather sure that nothing's changed on our part (with respect to default intended functionality). though there's the off chance that we're doing a better job of paying attention to your globalization prefs., my hope is that the prefs in your app have changed since you originally coded those pages.
    hope this helps,
    raj

  • Data Sources error:[Macromedia][SQLServer JDBC Driver]No more data available to read.

    I have just set up the developer edition coldfusion and a standard SQL Server. When trying to set up a datasource i recieve the following error:  [Macromedia][SQLServer JDBC Driver]No more data available to read. I have no clue what this means. I have tried to find some documentation on this but with now luck. Can anyone help?
    Here are some details:
    SQL SERVER CONNECTION MANAGER:
    Trying to connect to a localhost sql server
    I have TCP/IP Enabled
    Dynamic Ports is set to 0 under IP ALL
    127.0.0.1 is enabled and the port is set to 1433
    COLDFUSION ADMIN:
    server: 127.0.0.1
    port 1433
    username/password set to null (using windows authentication)
    Has anyone ran in to this issue?
    Thanks for helping.

    You can use domain credentials with CF.  To do so you've got to create the datasource in Windows.  Then, in ColdFusion you select ODBC mapping and point it to the Windows DS.
    If I recall correctly, there's a switch in SQL 2005 that you've got to flip to allow SA rights to log in from the network.  I could be way off base on that one though.
    You may want to consider creating a new SQL account with its own password and assigning it to your target database (usually, I grant data reader and writer - your app may vary) and use those new credentials in your JDBC mapping in CF.

  • Data handling and graphs

    I originally wrote the graph program to handle the data in a text file that was organized like this...
    vertex a
    vertex b
    vertex c
    vertex d
    edge a c
    edge a d
    edge d b
    and now I have to change the main to accept a datafile containing...
    a b
    b c
    c e
    d g
    g c
    Now, here is a copy of the main program as it currently stands...
    import java.io.*;
    import java.util.*;
    public class TopSort
         static Graph theGraph = new Graph();
         static Hashtable hashList = new Hashtable();  //just to store array index
         public static void main (String args[])
                 MyInfoachaffin myInfo = new MyInfoachaffin();
              myInfo.info();     
                 File sourceFile = new File(args[0]); // access the file
                 if (sourceFile.exists() == false)                                          
                   System.err.println("Oops: " + sourceFile + ": No such file");
                   System.exit(1);
                 String newVertex, startEdge, endEdge;
                 int arrayPosition = -1;
                 try //open the file
                           FileReader fr = new FileReader(sourceFile);
                           BufferedReader br = new BufferedReader(fr);
                        String input;
                        while ((input = br.readLine()) != null)
                             StringTokenizer toke = new StringTokenizer(input);
                                while (toke.hasMoreTokens())
                                  if (hashList.containsValue(toke))
                                               return;
                                     else
                                          newVertex = toke.nextToken(); //get vertex
                                          theGraph.addVertex(newVertex); //add into graph
                                          arrayPosition++; //increment counter
                                          hashList.put(newVertex, new Integer(arrayPosition));
                                          //add position with vertex as key
                                     /*else if (toke1.equals("edge"))
                                          startEdge = toke.nextToken(); //get edge
                                          endEdge = toke.nextToken();  //get vertex
                                          Integer temp = ((Integer)hashList.get(startEdge));
                                          int start = temp.intValue(); //find position with key
                                       Integer temp2 = ((Integer)hashList.get(endEdge));
                                          int end = temp2.intValue();  //find position with key
                                          theGraph.addEdge(start, end); //add edge
                                }//close inner while
                       }//close outer while
                       System.out.println("The hashtable contents: " + hashList.entrySet());
                        br.close();
                  }//close try
                      catch (IOException e)
                                System.out.println("Whoops, there's a mistake somewhere.");
                          theGraph.graphSort();
       }//end main
    }//end class I have managed to seperate the vertexes from the edges and stored them in a hashtable so as to be able to remember their location in the array itself. My question is is there a way to go through a file a second time and pull the vertexes from that file or, conversely, should I store the data in the file into, oh I dunno, a linked list or something that I can pull the data from? The graph part of the program works so I didn't add that file and the setting the vertexes works fine too...I'm just stuck on how to handle the edges, exactly, so does anyone have any advice? Right now, the adding edges is commented out because that was how I handled it with the original data...

    Whoa, you're freakin' me out.
    All you gotta do is read in the data in a new format. You can either translate the new format to the old format, or you can write a method that creates objects from the new format explicitly. That's all there is to it.

Maybe you are looking for

  • Problem in loading images when i am connected on company network

    Hi friends, I am using firefox since last 4 months on my windows 8 pro laptop.but since last month I am facing problem in loading images when i am connected on company network but same time it is working fine with ie10. But all these thinks are worki

  • Set the minimal size of a Component with BorderLayout

    Hi, I got a little problem using BorderLayout. The scenario is : A JPanel placed BorderLayout.WEST got a size a few pixel too small for a JTable contained in this panel to paint all names of the table header. If i set the preferredScrollableViewportS

  • Which card do you think is the best for my system .... (new in this area)

    Hi Friends, i  am learning the SC5 Premiere and i want to buy a card for my system: (my old one, 4870, not support Cuda) Intel Core 2 Quad Q9400 DFI LP UT X48-T3RS MainBoard ATI Radeon 4870 HD (i want to replace it, no Cuda) 2 Disk 1TB Sata 8GB DDR3

  • Using a MacBook Pro with Aperture 3

    Anyone using the newest 13" MacBook Pro with Aperture 3? I'm wondering how you like the performance of that laptop with AP 3. Are you using the 2.4 or 2.6 GHz? I'm considering a new Mac and want to know how this holds up with Aperture. Thanks.

  • How to stop threads ???

    Dear all, I have a main class in which I declare and start 3 different threads, nothing else. When an event occurs in one of the threads, I would like to stop the 2 others and to finish my application ? How can I do that ? My Main: public class clien