SQL Server 7 (n)text field

Hi there,
I was wondering what resultset method you use when you wish to retrieve information from the data type text (and ntext) datatype fields.
Because this is a pointer, I can not use .getString()...unless there is something I am missing.
In case it matters, this is using NetBeans and Java Server Pages.
Cheers,
John

Why you can't use getString()? This should be work.
Which driver do you use?
Volker

Similar Messages

  • [Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.  'Items' (OITM) (OITM)

    Dear Experts,
    i am getting the below error when i was giving * (Star) to view all the items in DB
    [Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.  'Items' (OITM) (OITM)
    As i was searching individually it is working fine
    can any one help me how to find this..
    Regards,
    Meghanath.S

    Dear Nithi Anandham,
    i am not having any query while finding all the items in item master data i am giving find mode and in item code i was trying to type *(Star) and enter while typing enter the above issue i was facing..
    Regards,
    Meghanath

  • [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error

    Hi , i am trying to execute siple SP using JDBC-ODBC Bridge Driver
    Here my code :
    String dsn="Tritek1";
    String user="sa";
    String password="imcindia";
    Connection con1 = null;
    CallableStatement cstmt = null;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    con1=DriverManager.getConnection("jdbc:odbc:"+dsn,user,password);
    Statement st=con1.createStatement();
    st.execute("use dm0102d");
    st.execute("setuser 'dm01012'");
    cstmt = conObject.connection(" ?=Call dms_ex_get_folder_info(?,?,?)");
    cstmt.setString(1,folderType);
    cstmt.registerOutParameter(2,java.sql.Types.VARCHAR);
    cstmt.registerOutParameter(3,java.sql.Types.VARCHAR);     bFlag=cstmt.execute();
    Here my SP :
         Procedure Name          :     dms_ex_get_folder_info
         Input Parameter(s)          :     a. folder_type char(20)
         Return Parameter(s)     :     a. Recordset consist edit_mask and folder_type_code from folder_reference table / error
         Procedure Type          :     select
         Programmer          :     Prashanth Kumar M.
         Creation Date          :     12/20/2005 (20th Dec, 2005)
         Tables Accessed          :     folder_reference
         Revised               :
              Programmer:     Date:     Description:
              Prashanth Kumar M.      12/21/2005 Modified the script as per the approved program specifications.
         Test Query:
              Declare @edit_mask char(15)
              Declare @folder_type_code char(2)
              execute dms_ex_get_folder_info 'Policy Folder',@edit_mask output,@folder_type_code output
              Print 'Edit Mask : ' + @edit_mask
              Print 'Folder Type Code : ' + @folder_type_code
    CREATE PROCEDURE dms_ex_get_folder_info
         @folder_type char(20),
         @edit_mask char(15) output,
         @folder_type_code char(2) output
    AS
         BEGIN
              -- Check if the record for @folder_type exists or not.
              BEGIN
                   -- return the record from folder_reference
                   SELECT
                        @edit_mask= IsNull(edit_mask,''),
                        @folder_type_code = IsNull(folder_type_code,'')
                   FROM      folder_reference
                   WHERE
                        folder_decode = ltrim(rtrim(@folder_type))
                   -- return the error message
                   IF @@error <> 0
                        BEGIN
                             RAISERROR 100016 'Error in gettting the record from folder_reference table'
                             RETURN (@@error)
                        END
                   IF @edit_mask = '' AND @folder_type_code = ''
                        BEGIN
                             RAISERROR 100017 'No matching details in the folder_reference table'
                        RETURN (@@error)
                        END
              END
         END
    GO
    Here My Exception:
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.SQLExecute(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(Unknown Source)
         at com.nyl.dms.bl.Folder.createFolder(Folder.java:121)
         at com.nyl.dms.bl.Folder.main(Folder.java:223)
    Any one can help me to overcome this problem . Thanks in advance.
    venkat

    Here's from one of those 10s of books.
    Quoted from JDBC 3.0 by Bernard Van Haecke:
    Stored procedures can return multiple result types because they can be composed of SQL statements that return diverse result types: resultsets and update counts (this includes special error codes).
    Now this doesn't sound very satisfactory. So I use Sybase since I don't have any other database at the moment, and write a simple stored procedure.
    CREATE proc testproc AS
    BEGIN
    -- My return code
    return 7
    END
    goThen a sample patchy buggy code to play around:
    import java.sql.*;
    public class ProcTesting {
        public static void main(String[] args) {
            String connUrl          = "jdbc:sybase:Tds:myserver:5150/dbinst";
            String userName         = "username";
            String password         = "password";
            Connection con          = null;
            CallableStatement stmt  = null;
            ResultSet rs            = null;
            String sql = "{? = call testproc}";
            try {
                Class.forName("com.sybase.jdbc2.jdbc.SybDriver").newInstance();
                con     = DriverManager.getConnection(connUrl, userName, password);
                stmt    = con.prepareCall(sql);
                stmt.registerOutParameter(1, Types.INTEGER);
                stmt.execute();
                System.out.println(stmt.getInt(1));
            } catch(Exception e) {
                e.printStackTrace();
            } finally {
                closeAll(con, stmt);
        public static void closeAll(Connection con, Statement stmt) {
            try {
                con.close();
            } catch(Exception e) {  }
            try {
                stmt.close();
            } catch(Exception e) {  }
    }Followed by:
    javac ProcTesting.java
    java -cp "%CLASSPATH%;C:\jarutils\jconn2.jar" ProcTesting
    Output:
    7
    Didn't you know this could be done?
    Happy new year, grandpa!

  • Full load failed with  [Microsoft][ODBC SQL Server Driver]Datetime field

    Hi,
    we are doing a full load with RDBMS SQLServer.
    It failed due to the below error.
    [Microsoft][ODBC SQL Server Driver]Datetime field overflow. Can you please help
    thank you

    968651 wrote:
    Hi,
    we are doing a full load with RDBMS SQLServer.
    It failed due to the below error.
    [Microsoft][ODBC SQL Server Driver]Datetime field overflow. Can you please help
    thank youhttp://bit.ly/XUL950
    Thanks,
    Hussein

  • SQL Server Long Text column to Oracle CLOB via DB Link

    Does anyone know how to load a SQL Server Long Text column into an Oracle CLOB column using DB Link? When I try to Select from SQL Server table into Oracle table, I receive the error "ORA-00997: illegal use of LONG datatype".
    Thanks,
    Susan

    Hi,
      This is a known restriction involving long columns -
    (1) LONG datatype not supported with use of DBLINK when insert or update involves a select statement
    (2) LONG datatype cannot be used in a WHERE clause, in INSERT into ... SELECT ... FROM
    constructs, and in snapshots.
    The workround is to use a PL/SQL procedure or try the SQLPLUS COPY command.
    If you have access to My Oracle Support then review these notes -
    Cannot Move A Long From non Oracle database Ora-00997: Illegal Use Of Long Datatype (Doc ID 1246594.1)
    How To Workaround Error: Ora-00997: Illegal Use Of Long Datatype (Doc ID 361716.1)
    Regards,
    Mike

  • How I save a 1D-folat array to MS Sql Server"s image field?

    How I save a 1D-folat array to MS Sql Server"s image field?
    I try.
    First all I flat the array.
    Then I insert the flated string into the table.It 's OK.
    I read it from the table.
    There is a error.
    The field data is empty.
    why?
    Attachments:
    01.vi ‏51 KB

    TimeWaveZero wrote:
    Just use the Array to spreadsheet string and insert the array, then retrieve with Spreadsheet string to array. 
    This is a lossy conversion that does not allow recovery of the identical DBL array due to limitations in the decimal formatting. Not the same! It is also significantly less efficient.
    LabVIEW Champion . Do more with less code and in less time .

  • Java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]COUNT field incor

    hello
    i am trying to call stored procedure from javabeans to SQL server database.
    my stored procedure is.....
    =========================================
    CREATE PROCEDURE sp_ins_client1_defect
    /* INSERTS defect AFTER GENERATING A NEW defectid
    RETRUN VALUES -
    1) -101 inser failed
    2) 0 Successfull
    @status tinyint,
    @priority tinyint,
    @complexity tinyint,
    @type tinyint,
    @desc varchar(50),
    @sourcefile varchar(25),
    @sourceloc varchar(100),
    @testcasefile varchar(25),
    @testcaseno char(5),
    @step2reproduce text,
    @comments text,
    @prodver char(8),
    @projid int,
    @keyid int OUTPUT
    AS
    BEGIN TRAN
    select @keyid=max(defectid) from defects where projectid=@projid
    if @keyid is null
    set @keyid =1
    else
    set @keyid=@keyid + 1
    insert into defects (PROJECTID,DEFECTID,STATUSID,PRIORITYID,COMPLEXITYID,DEFECTTYPEID,DESCRIPTION,SOURCEFILENAME,SOURCELOCATION,TESTCASEFILENAME,TESTCASENUMBER,STEPS2REPRODUCE,COMMENTS,PRODUCTVERSION,VERSIONID)
    values (@projid,@keyid,@status,@priority ,@complexity ,@type ,@desc ,@sourcefile,@sourceloc,@testcasefile,@testcaseno,@step2reproduce,@comments ,@prodver ,1)
    IF @@error <> 0
    BEGIN
    ROLLBACK
    return -101
    END
    ELSE
    BEGIN
    COMMIT
    return 0
    END
    =========================================
    my javabeans code snippets is as follows.
    Connection con;
    CallableStatement cstmt;
    private static String theaddcall = "{ ? = call sp_ins_client1_defect ( ?,?,?,?,?,?,?,?,?,?,?,?,?,?,? )}";
    con = DbUtil.getConnection("dts");
    cstmt = con.prepareCall(theaddcall);
    session.setAttribute("attack","akraman2");
    cstmt.registerOutParameter( 1, java.sql.Types.VARCHAR ); //ret code
    cstmt.setInt ( 2, getDefectstatus());
    session.setAttribute("attack","2");
    cstmt.setInt ( 3, priority );
    cstmt.setInt ( 4, complexity);
    cstmt.setInt ( 5, defecttype);
    cstmt.setString( 6 ,desc);
    cstmt.setString( 7, sourcefile);
    session.setAttribute("attack","3");
    cstmt.setString( 8, sourcefileloc );
    cstmt.setString( 9, testcasefile );
    session.setAttribute("attack","4");
    cstmt.setString( 10, testcaseno );
    cstmt.setString( 11, steps2rep );
    cstmt.setString( 12, comments );
    session.setAttribute("attack","5");
    cstmt.setString( 13, prodver );
    cstmt.setInt ( 14, projids );
    cstmt.registerOutParameter(15, java.sql.Types.VARCHAR );
              session.setAttribute("addd","1");
    boolean result=cstmt.execute();
              session.setAttribute("addd","2");
    while (result=cstmt.getMoreResults()) {};
    /* rest of the code is here */
    if possible please solve there query.
    From ShivNarayan

    "{ ? = call sp_ins_client1_defect ( ?,?,?,?,?,?,?,?,?,?,?,?,?,?,? )}";When I count the about I get 16 '?' (one return and 15 args)
    The stored proc only has 14 args and you only populate 14.

  • SQL Server Free Text Search with multiple search words inside a stored procedure

    I am trying to do a free text search. basically the search string is being sent to a stored procedure where it executes the free text search and returns the result.
    If I search for red
    flag, I want to return the results that matches both red and flag text.
    Below is the query I use to return the results.
    select * from customer where FREETEXT (*, '"RED" and "flag"')
    This doesn't give me the desired result. Instead this one give the desired result.
    select * from customer where FREETEXT (*, 'RED') AND FREETEXT (, 'FLAG')
    My problem is since it's inside a stored procedure, I will not be able to create the second query where clause. I thought both query should return the same result. Am I doing something wrong here?

    I am moving it to Search.
    Kalman Toth Database & OLAP Architect
    IPAD SELECT Query Video Tutorial 3.5 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • BI UDI data load conflict using MS SQL Server and date fields

    Hi BW Experts!
    We have found some unexpected problems when we are trying to perform a data extraction process from an SQL database (non-SAP application).
    We are using the BI UDI tool (JDBC Driver/Connector).    The basic data extraction works properly, however we have some specific problems to work with SQL Server fields defined as “Date Time”.
    The JDBC driver automatically intermediate the communication and translate these fields splitting the original SQL date time field into two separated fields with suffix “_D” (for date) and “_T” (for time).
    It works perfect for extraction, but it doesn’t work well when we try to restrict the data selection based on these fields.    
    When we put a date selection into the infopackage data selection area (we already have tried several date formats), the system simply ignores these selection parameters and send a SQL statement without “WHERE” clause to DBMS.   
    Please, anybody has experienced anything like this or know somethings that could help us? 
    This is a standard limitation from SAP BI UDI?
    Thanks in advance and best regards,

    Hi Matt and Thomas
    Many thanks for your replies.
    Yes I have to do the join. Even worse I have to write an Aggregate query like this!
    Select o.F1,o.F2, m.F1,m.F2, count(*)
    from
    table@oracleServer o,
    table@microsoftSQLServer m
    where o.F1=m.F1
    group by o.F1,o.F2, m.F1,m.F2;
    These are 2 different systems (hardware & software) which actually do the same job, they produce transactions for a common business entity. Kind of, both sell tickets for the same ABC ferry company.
    I can not put them side by side on the dashboard, as I need to aggregate the data and present it maybe in a Oracle BI Report for Accounting and Financial reconciliation purposes.
    The truth is, as it is. I can't change it, is too late.
    I have to device a way to harvest both systems as they are. I don't want to move around data. I thought looking at Oracle BI I could write SQL against multiple Data Sources. I am struggling to find a way. As it seems that it can "SQL query" 1 data source at a time.
    I have been hinted on another forum (OracleTURK) to use Oracle Transparent Gateways and Generic Connectivity. http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/toc.htm
    Shame, I have to pay licenses for OWB and Oracle Transparent Gateways. I thought DB vendors can do better. Why do I have to pay to access the other 50% of the market.
    I can understand the performance implications this might have. Because of it I might even be forced at the end to move data (ETL) into a separate database, slice it into partitions and manage it that way. Pitty because currenlty I only need one report out of these systems but seems like will be dear to get.
    Thank you for all your help.
    Kubilay

  • SQl Server - cant compare with values in table field have nchar as datatype

    Hello all!
    I am using jtds driver to connect with SQL server. My problem is i am saving arabic text into the SQL Server. The fields which contains arabic text have the datatype nchar. I can insert the values by simply placing N before the actual arabic text which i am reading from a file.
    I mean insert into [table] values(N'some arabic text') works fine.
    But when i try to select the values from the table and want to pass some paramerts (in arabic text) in where clause it doesnt return me anything.
    e.g select * from [table] where [column(nchar type)] = N'arabic text(read from file)' return nothing. Result set is always empty.
    Queryis fine as i printed the query in seperate file and run it on Query analyzer which gives me the right results.
    Any suggestions?? Please i am dying conditions tell me any solutions immediately
    Regards,
    Alam sher

    String url = "............";
    Properties props = new Properties();
    props.put("charset","cp1256");
    Connection con = DriverManager.getConnection(url,props);now this way if i get the resultset it would return me the expected resultset:)
    To compare an arabic word against the values in result set one also has to convert it into cp1256 encoding line this.
    new String([arabic word].getBytes(), "cp1256");
    The prolem was not to print the arabic words on console basically. No doubt on console it would print ???? as it doesnot support this encoding. Originial issu was comparing a string containig the arabic text with the values returned by the result set.
    This was the solution i could figure out and its working.
    Thanks anyways.
    Regards,
    Alam Sher

  • BCP - Error with column text in sql server 2000

    Hi,
    Im trying to restore a bcp using the command: 
    bcp "db.dbo.tb_log_old" in "tb_log2013.out" -SSERVER -T -n
    Im using SQL 2000 with the table below
    CREATE TABLE [dbo].[tb_log_old](
    [cd_id] [int] NULL,
    [cd_servico] [int] NULL,
    [dt_ocorrencia] [datetime] NULL,
    [nm_xml_entrada] [text] NULL,
    [nm_xml_saida] [text] NULL,
    [dt_inicio_processamento] [datetime] NULL,
    [dt_fim_processamento] [datetime] NULL
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    I have got the error
    Starting copy...
    SQLState = S1001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Memory allocation failure
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = S1000, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]Text column data incomplete
    SQLState = 37000, NativeError = 4810
    Error = [Microsoft][ODBC SQL Server Driver][SQL Server]Expected the TEXT token in data stream for bulk copy of text or image data.
    BCP copy in failed

    I tried with binary and nvarchar but I got the error below:
    Can I get just 2 columns in the bcp?
    Starting copy...
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    SQLState = 22001, NativeError = 0
    Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
    BCP copy in failed

  • SQL Server date format

    Hi all,
    I realize that this may be a little bit out of the scope of this forum, but I thought I'd ask anyway.
    I'm trying to figure out how to select a date in the format mm/dd/yyyy from a SQL Server date/time field. I've browsed the internet on this but haven't found any quick/easy way to do this. Can anyone please help me out here?
    Thanks!
    -Stephen Spalding
    Web Developer
    Graybar

    Hi Stephen,
    You can use the convert function in sql to change the format of the date time field.
    select convert(varchar(13),getdate(),101) gives u the current date in mm/dd/yyyy format.
    If you want that in java you can use the SimpleDateFormat class to change the format.
    import java.text.Format;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    Date currentDate = null;
    Format formatter = null;
    String date = "";
    currentDate = new Date();
    formatter = new SimpleDateFormat("MM/dd/yyyy");
    date = formatter.format(currentDate);
    This should give in the mm/dd/yyyy format.
    But both the results will be in String Format and not datetime.
    Hope this will be useful to you.
    Regards
    Prakash

  • SQL server record size limitation.

    Hi all,
    I am using SQL server, wxp & jboss to write jsp, I am writting a CMS which need to store a lot of documents and show it on the web.
    However, some of the content are too long and its longer that the max limitation of the record size of sql server. What is the most common solution for solve this problem.
    As the contents are in unicode, I think save it as a text file seems difficult. Any other solution suggest to me??
    Thanks a lot.
    kin

    Thanks, gocha
    but the sql server limited the field size in 4000 (in all unicode data type) but if i want to store something which is greater than 4000 character..... so I would like to find any other solution to solve this problem.
    Thanks alot.

  • How to get PDF iFilter to recognize "pdf" document_type instead of ".pdf" in SQL Server 2012

    Hi,
    If this isn't the correct forum for this question, I apologize.
    I am running SQL Server 2012 on a Windows 7 Pro (64-bit) laptop and wish to be able to perform Full-Text searches against the contents of PDF files that have been loaded into my database using a FileTable. I have not been able to get the PDF iFilter v11.0 working whatsoever so I uninstalled it and installed v9.0 of the Adobe PDF iFilter.  I have confirmed that this filtering works on PDF documents I've inserted into a regular table and specified the file_type as '.pdf'.  However, when SQL Server loads the documents into a FileTable, the filter_type is set to 'pdf' (note: the period is not included -- ".pdf").  When I issue the ALTER FULLTEXT INDEX <tablename> START FULL POPULATION, no indexing occurs against the FILETABLE.
    I've examined the Full-Text Search crawl log and there are no errors occurring. Simply messages stating the population is starting and then completed.
    I've searched the forums here and elsewhere and haven't been able to find a work-around for this.
    Is there any way to get the PDF iFilter to recognize the 'pdf' filter_type in addition to the '.pdf' filter_type?
    Any suggestions would be greatly appreciated.
    Thank you,
    Steve

    Hi Steve,
    These links might e helpful:
    https://dotnettim.wordpress.com/2010/12/02/sql-server-full-text-indexing-using-adobe-pdf-i filter-9-sql-server-2008-r2-64bit/
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/69535dbc-c7ef-402d-a347-d3d3e4860 d72/sql-server-2008-64bit-fulltext-indexing-pdf-not-working-cant-find-ifilter?forum=sqldat abaseengine
    Regards,
    Rave

  • Convert Teradata TIMESTAMP to SQL Server DateTime

    I have a Teradata TimeStamp(6) field which I have imported into a VarChar field in a staging table.  The values look like this:
    1/22/2010 00:00:00.000000
    9/15/2003 00:00:00.000000
    10/10/2006 00:00:00.000000
    I'm trying to move it to a permanent table in a SQL Server 2008R2 DateTime field.
    I've tried different combinations of using CAST/CONVERT in the SELECT as well as a Data Conversion step, but can't find the right combination.  The error is usually something like this:
    Error: 0xC0202009 at HEFIN, OLE DB Destination 1 [97]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "Invalid character value for cast specification".
    Error: 0xC020901C at HEFIN, OLE DB Destination 1 [97]: There was an error with input column "DW_LOAD_TS" (129) on input "OLE DB Destination Input" (110). The column status returned was: "The value could not be converted because
    of a potential loss of data.".
    Any suggestions?
    -Al H

    Well, changing your original post now makes the first response a bit of nonsense.  But I refer you to the ultimate guide to the datetime datatype and the issues you will face in trying to convert a string to one of these datatypes (and many related
    issues).  You should bookmark Tibor's site and give it all a read when you have time.
    Tibor - datetime guide
    The convert function has a style argument that sets the expectation of the format within the string. Unfortunately, you have a format that is a problem.  If you are not concerned about the time portion, simply chop it off during the conversion (the
    first query).  If you are using 2012, you can use the second (and if necessary use the locale option):
    with cte as (select '1/22/2010 00:00:00.000000' as d1
    union all select '9/15/2003 12:51:52.000000'
    union all select '10/10/2006 00:00:00.000000')
    select convert(datetime, left(d1, charindex(' ', d1) -1), 101) as x
    from cte;
    with cte as (select '1/22/2010 00:00:00.000000' as d1
    union all select '9/15/2003 12:51:52.000000'
    union all select '10/10/2006 00:00:00.000000')
    select TRY_PARSE(d1 as datetime) as x
    from cte;

  • Select List as a child to a text field?

    I'm using APEX 4.1. I have a Select List that has a Cascading LOV Parent Item that is just another text field, the LOV sql has the text field in the where clause. When I type a few characters into the text field and tab to the Select List the list is filtered by the characters from the text field, but if I use the mouse and click the down arrow of the Select List I have to click twice before the list will be populated. Does anyone know why this is happening?

    I would imagine it's a similar issue to the old 'mouse-navigate' in forms where no change event has fired while processing the arrow click. You may find different results in different browsers?
    You may be able to solve your problem with a mouse-click DA on your select list? or something similar, who'se action refreshes that select list item.
    Scott

Maybe you are looking for

  • Preview: highlight text slowly disappears over the days

    Hello everyone. I have several days reading a book in pdf format with preview.app, and I highlight text in bright yellow. I have reviewed all the highlighted text and the color yellow is more tenuous as I approach the beginning of the book. In fact t

  • OIM: Retrieve data from stored procedure,  pre populate it in Resource form

    Hi, I need to retrieve data form a stored procedure that i have created . This data needs to be per populated in the Iplanet resource from. The stored procedure will have one input string and one output string. Thankz, Sanjay Rulez

  • Why my fla. animation stops at a certain point after previewing it in captivate 3

    I have developed an animation using flash CS3. The animation works fine in flash (test movie, and published swf). When I inserted the fla. (insert animation) in my Captivate 3 slide, it stops at the exact same point each time while previewing the ani

  • Having trouble accessing secure websites...

    This is the error message I keep getting everytime I try to access a secure website: Safari can’t open the page “https://www.audible.com/adbl/site/login.jsp?BV_UseBVCookie=Yes&#148; because it couldn’t establish a secure connection to the server “www

  • Question related to IF_FPM_TRANSACTION

    Hello Experts We implemented the interface IF_FPM_TRANSACTION in a WD component. Our FPM application consists only of generic UIBBs, in this case the IF_FPM_TRANSACTION methods are not executed. What do I have to do that the transaction methods are e