Conversion of DateTime to Duration

Hi ,
How to Convert the DateTime Value (2011-02-19T03:39:51.051) To Duration Format (P1Y2M3DT10H30M) In BPEL .
Any Help is Appreciated
Thanks,
Karthik

Hi Kartik
It is possible to get the difference between two DataTimes in Duration
for this you need to use an exslt Template in your project
following is the link
Using Custom XPath with xslt
and
Re: Support for EXSLT
hope this helps you.
Thanks & Regards,
anvv sharma

Similar Messages

  • Conversion from data to duration

    Hi,
    I wish to convert a number, in seconds, to a duration.
    As follow: convert 289, which is in seconds, to a duration, which would be in minutes and seconds.
    289 seconds is 4 minutes 49 seconds, but how can I convert this in numbers?
    I also need to convert a full column of many numbers just as this one, how can I quickly convert many numbers like 289 (representing seconds) in a column in a duration?
    Thanks a lot in advance to all who can help,
    Paul

    Hi Contello,
    Thanks for your answer!
    It would be nice to be able to that automatically when having an entire column of data such as the one I told you about ... How could I do that?
    If I tell numbers 289 alone is a duration, it takes it as if it was 289 hours, not seconds!
    The only trick I found is to keep it as if it was hours, and then get a new cell next, in which the cell containing 289 is divided by 60 twice. Then it gives me 289 seconds converted in minutes and seconds, 4 min 49.
    Quite tricky isn't it?
    Is there a more "proper" way to do this?
    I really need to apply it to a big crunch of values ... So I need it to be automatic.
    Cheers!

  • Conversion of datetime

    Hi,
    i have a column with varchar(26) with values like '2002-09-05-14.23.32.818819'. I need to change it to datetime2(7) of this value. When i use CAST or CONVERT
    function, it is throwing error says out of range values. Is there any way to change the type to Datetime2(7) type or any other shortcut to do it. Kindly help to achive this. Thanks in advance!
    I want result like, i have added 0 at last digit as datetime2(7) will have 7 digits in the milliseconds
    2002-09-05 14:23:32.8188190
    Regards,
    Fazlu

    Your varchar is in an invalid format. You'll have to adjust it manually:
    SELECT CAST(LEFT('2002-09-05-14.23.32.818819',10)+' '+REPLACE(LEFT(RIGHT('2002-09-05-14.23.32.818819',15),8),'.',':')+RIGHT('2002-09-05-14.23.32.818819',7) AS DATETIME2)
    Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.

  • DATE vs DATETIME conversion

    I am running into a strange issue which is preventing me to finish my project. Any help would be greatly appreciated. 
    It looks like the CONVERT (the same goes for CAST) function treats DATE and DATETIME conversions differently when executed by a user with the Dutch language settings.
    Here is what I mean, I run the following query:
    SELECT CONVERT(DATE, '2014-09-01 23:00:00'), CONVERT(DATETIME, '2014-09-01 23:00:00')
    The results are:
    2014-09-01, 2014-01-09 23:00:00
    The conversion to DATETIME swapped the month and the day around, while this doesn't happen for the DATE conversion. The DATE conversion is the correct format, since I supplied it YYYY-MM-DD HH:mm:ss.
    When I run the same query using a user with the default language settings (en-US I assume) the same query works fine (no swapping of month and day values). 
    Can someone explain why this is happening? And maybe more important how to prevent it or workaround it (changing the language for the user from Dutch to default is not an option)? 
     

    >> Can someone explain why this is happening? And maybe more important how to prevent it or workaround it (changing the language for the user from Dutch to default is not an option)? <<
    CONVERT() is an old Sybase string function. It was created to keep 960's COBOL programmers happy since SQL does not have a PICTURE clause to put data in display formats. 
    CAST() is the ANSI/ISO Standard function to convert data types and this is what you should be using. It is not a string function. It uses the ISO-8601 standard for dates (yyyy-mm-dd), as you have seen. This is the only -– repeat, only! -- format allowed in
    SQL. Microsoft is a few decades behind and trying to catch up now.
    A good SQL programmer will do any local display formatting in the presentation, which will handle local languages that are never used in the database. Want to have some fun? The names of months in Polish, Czech, Croatian, Ukrainian and Belarusian not based
    on the Latin names used in most European languages. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • BCP.exe Datatime conversion issue

    Hi,
    I'm dumping data into MS-SQL server Database but strange that datatime column values are with milliseconds say 2014-03-18 23:57:41.626 in this case bcp.exe
    is rounding the millisecond value. In my table Datetime is a primary key column so. this is throwing Primary Key violation since BCP is rounding the last digit of the millisecond value to the nearer one ( 0, 3, 7).
    I don't need this conversion I need to store the exact datetime value with the millisecond. Is there any command to stop that implicit conversion of datetime?
    Regards
    Raamesh Keerthi N J

    That's the maximum precision up to which date time stores values. So if you want greater precision cast it to datetime2 in bcp query
    is like below
    bcp "select cast(datefield as datetime2) as datefield,... from table..." queryout ....
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to get date difference in data sources

    Hi,
    In SQL:SELECT DATEDIFF(day, '2005-12-30 23:59:59.9999999', '2005-12-30 00:00:00.0000000');
    output :1
    As similar way how get the datediffence in SAP business by design of the datasources.
    Regards,
    Prasad

    Hi Prasad,
         For this you have to create a Custom DATA SOURCE for the required BO. Then Select all the required fields that you want to use it in the report for that datasource.
    The 3rd step of Data Source Wizard is shown in the image, here you can add a extra field that can hold the difference between the DateTime elements present in the BO.
    In the left column BUSINESS OBJECT ELEMENT choose DATE element (1st Date).
    In the right column TRANSFORMATION choose DateTime To Duration row and in the PARAMETER Column choose the field against which you want to calculate the difference.
    In Defined Field Name enter a name, this will hold the value of the calculated difference.
    Thank You
    Shabaz

  • Autotype from XML schema problems

    Hello,
    I am trying to autotype the following Xml schema:
    http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-3
    My build.xml contains:
    <target name="autotype" >
         <autotype
              schemaFile="REL-5-MM7-1-3.xsd"
              targetNamespace="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-3"
              packageName="com.foo"
              keepGenerated = "True"
              destDir="output" />
    </target>
    1.
    I run using ant but it fails..
    SubmitRspTypeCodec.java:15: cannot resolve symbol
    [autotype] symbol : class GenericResponseTypeCodec
    [autotype] location: package soap
    [autotype] extends javax.xml.soap.GenericResponseTypeCodec
    weblogic.webservice.tools.build.WSBuildException: Failed to do type mapping -
    with nested exception:
    [weblogic.xml.schema.binding.BindingException: ERROR: during code compilation
    - with nested exception:
    [java.io.IOException: Compiler failed executable.exec]]
    The interesting point is when i deleted following 3 lines from schema (line 413
    to 415 in REL-5-MM7-1-3.xsd),
    <xs:sequence>
         <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    no compile error is thrown.
    2.
    But the weird thing is that some of classes are not generated, for example SubmitReqType,
    ReplaceReqType. This is because they reference RelativeOrAbsoluteDateType (line
    367). And RelativeOrAbsoluteDateType contains the following union definition:
    <xs:union memberTypes="xs:dateTime xs:duration"/>
    i think that this union definition might cause problem but neither an error nor
    a warning message is submitted from ant. It says successful but missing classes.
    I am struggling with these 2 problems for days, any help would be appreciated.
    Thanks,
    aLi

    Hi Ali,
    I suspect that the reason you are having this problem is covered in the following
    link:
    http://e-docs.bea.com/wls/docs81/webserv/overview.html#1074641
    I guess my question is, what else do you have in the build.xml that uses (or attempts
    to use) the autotype Ant task? Are you trying to build a client (i.e. a JAX-RPC
    static stub) for a web service? Is this for a WebLogic Web Service you want to
    build? Or are you just trying to see if autotype can process the .xsd file, in
    question? If so, the above link states why it currently won't work.
    One alternative option, is to use a Workshop Schema project (or XMLBeans) to process
    the .xsd file. I just did that, and it worked fine :-)
    Regards,
    Mike Wooten
    "Ali Pakkan" <[email protected]> wrote:
    >
    Hello,
    I am trying to autotype the following Xml schema:
    http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-3
    My build.xml contains:
    <target name="autotype" >
         <autotype
              schemaFile="REL-5-MM7-1-3.xsd"
              targetNamespace="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-3"
              packageName="com.foo"
              keepGenerated = "True"
              destDir="output" />
    </target>
    1.
    I run using ant but it fails..
    SubmitRspTypeCodec.java:15: cannot resolve symbol
    [autotype] symbol : class GenericResponseTypeCodec
    [autotype] location: package soap
    [autotype] extends javax.xml.soap.GenericResponseTypeCodec
    weblogic.webservice.tools.build.WSBuildException: Failed to do type mapping
    with nested exception:
    [weblogic.xml.schema.binding.BindingException: ERROR: during code compilation
    - with nested exception:
    [java.io.IOException: Compiler failed executable.exec]]
    The interesting point is when i deleted following 3 lines from schema
    (line 413
    to 415 in REL-5-MM7-1-3.xsd),
    <xs:sequence>
         <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    no compile error is thrown.
    2.
    But the weird thing is that some of classes are not generated, for example
    SubmitReqType,
    ReplaceReqType. This is because they reference RelativeOrAbsoluteDateType
    (line
    367). And RelativeOrAbsoluteDateType contains the following union definition:
    <xs:union memberTypes="xs:dateTime xs:duration"/>
    i think that this union definition might cause problem but neither an
    error nor
    a warning message is submitted from ant. It says successful but missing
    classes.
    I am struggling with these 2 problems for days, any help would be appreciated.
    Thanks,
    aLi

  • DV PAL preset?

    I have heard that there is something called the "DV PAL Preset" that you can select in Compressor, but I don't know how to find it in the program (to convert from NTSC to PAL)
    Please help ASAP!

    Any frame rate conversion or size conversion requires re-encoding. NTSC to DV PAL requires both size and framerate conversion.
    As far as I can see, there is no default Setting for DV, but you can copy any of the existing settings to make a custom setting, and then set the file format to "DV stream", and select "PAL" as the format. Then make sure to enable Frame Controls and set Rate Conversion to "Best", and Duration to "100% of source". You probably also want at least "Better" Resize filter.
    Please don't ask two questions about the same basic problem, and please search the Discussion group before asking. Chances are that basic questions like this have been answered before.
    Cheers,
    Bernd

  • Log and transfer troubles

    Hi,
    I'm using Log & Transfer in order to import my Canon EOS 5d Mk iii video files on Final Cut Pro 7. Until 2 days ago it was working without problems. Now he doesn't work: since is starting the conversion it shows "clip duration 23 hours" and it doesn't create any converted video files... any suggestion?

    There was a recent post with the advice that the timecode slection in the camera menu had to be set to free run in order for Log&Transfer to work properly. So I would double-check that setting.
    I assume (since it worked before) you have the latest EOS plug-in. Lion seems to be the most recent OS that it supports.
    Russ

  • ServiceCall Activities

    Hi There,
    I'm trying to add a service call activity to a service call.
    I've created the Activity using the contacts object and the record appears in OCLG. But it does not create a record in SCL5.
    SCL5 links the Activity to the service call so it appears in the Activities Tab in the Service call screen.
    Has anyone done this before.
    The service Call is already created. 991 is it's SrvcCallID.
    So I'm just trying to create and assign the activity to it.
    SAPActivity = SAPCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oContacts)
                    With SAPActivity
                        .Activity = SAPbobsCOM.BoActivities.cn_Other
                        .DurationType = SAPbobsCOM.BoDurations.du_Hours
                        .ActivityType = TIMESHEET
                        .Subject = BILLABLE
                        .CardCode = "ABOR01"
                        .StartTime = System.DateTime.Now
                        .EndTime = DateAdd(DateInterval.Hour, 1, System.DateTime.Now)
                        .Duration = 1.65
                        .Priority = SAPbobsCOM.BoMsgPriorities.pr_Normal
                        'SAPActivity.ParentobjectId = 991
                        'SAPActivity.Parentobjecttype = 191
                        SAPActivity.DocType = SAPbobsCOM.BoObjectTypes.oServiceCalls
                        SAPActivity.DocEntry = 991
                            End If
                        Next intCounter
                    End With
                    If SAPActivity.Add() = 0 Then
                        Dim str As string = SAPCompany.GetNewObjectKey
                        SAPServiceCall = SAPCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oServiceCalls)
                        SAPServiceCall.GetByKey(991)
                        SAPServiceCall.Activities.Add()
                        SAPServiceCall.Activities.ActivityCode = str
                        SAPServiceCall.Update()
                    Else
                        Throw New Exception(SAPCompany.GetLastErrorDescription)
                    End If
                End If

    Hi Luke,
    I would suggest you change the update part of your service call to also check for errors. I have tried your code and got an error: "A service call with a resolution or solution or that is closed must have a 'resolution' date. This might not be your reason for not being able to update the service call, but at least the error will put you in the right direction.
    Herewith the code as I had it:
            ...'Your code here..
             If SAPActivity.Add() = 0 Then
                Dim str As String = oCompany.GetNewObjectKey
                Dim SAPServiceCall As SAPbobsCOM.ServiceCalls
                SAPServiceCall = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oServiceCalls)
                SAPServiceCall.GetByKey(1)
                SAPServiceCall.Activities.Add()
                SAPServiceCall.Activities.ActivityCode = str
                If SAPServiceCall.Update() <> 0 Then
                    MessageBox.Show("Error update: " & oCompany.GetLastErrorDescription)
                End If
            Else ...
    Also I would suggest if you don't want to run into problems like this in future is to have a transaction around both the creation of the activity and the updating of the service call so that the one cannot be executed if any of the others fails.
    Hope it helps,
    Adele

  • Disallowed implicit conversion from data type datetime to data type timestamp

    Received error: [Macromedia][SQLServer JDBC
    Driver][SQLServer]Disallowed implicit conversion from data type
    datetime to data type timestamp, table 'myTbl', column 'duration'.
    Use the CONVERT function to run this query.
    I have a field named duration hh:mm:ss.lll that I am trying
    to insert into MS SQL. DB has field defined as [duration]
    [timestamp] NOT NULL,
    My insert has this: INSERT INTO myTbl( duration) VALUES(
    <cfqueryparam value="2006-05-26 11:12:13"
    cfsqltype="CF_SQL_TIMESTAMP"/> )
    Why does this not work? rrrrrrrrrrrrrr! BTW: also tried with
    seconds as 13.111 which did not work. Does the db duration need to
    be date? I just want to store a duration for the time of a movie...
    10 Q

    quote:
    Originally posted by:
    quiet1
    Received error: [Macromedia][SQLServer JDBC
    Driver][SQLServer]Disallowed implicit conversion from data type
    datetime to data type timestamp, table 'myTbl', column 'duration'.
    Use the CONVERT function to run this query.
    I have a field named duration hh:mm:ss.lll that I am trying
    to insert into MS SQL. DB has field defined as [duration]
    [timestamp] NOT NULL,
    My insert has this: INSERT INTO myTbl( duration) VALUES(
    <cfqueryparam value="2006-05-26 11:12:13"
    cfsqltype="CF_SQL_TIMESTAMP"/> )
    Why does this not work? rrrrrrrrrrrrrr! BTW: also tried with
    seconds as 13.111 which did not work. Does the db duration need to
    be date? I just want to store a duration for the time of a movie...
    10 Q
    Duration as a timestamp? How odd, most people would store it
    as an integer. Or, if you want to build your own string, the syntax
    is {ts 'yyyy-mm-dd hh:mm:ss'}. The seconds might not be required.
    In any event, use createodbcdatetime() for the value you want
    to put into your table.

  • How to calculate the time duration on a datetime column?

    Hi guys,
    I've done some search on this forum and everywhere else but I can't seem to get this right, at the beggining it sounded like something very simple to accomplish, for the instance with Excel but I'm struggling to get it to work with Crystal Reports on Microsoft Visual Studio 2008.
    I have a datetime column (SQL Server 2000) that I wanted to calculate the the time duration on the report group footer, unfortunatelly the built-in SUM function cannot be applied and I've tried several formulas that I've found on the internet without any luck. I'm using a datetime column to store only the time because I'm stuck with SQL Server 2000 which doesn't have a time data type.
    Would you guys know how to do it by any chance?
    Some sample code I've tried: http://www.minisolve.com/TipsAddUpTime.htm
    Thanks a lot,
    Paul
    Edited by: Paul Doe on Dec 12, 2009 5:41 PM
    Some sample data:
    EMPLOYEE     WORK HOURS
    =========     =================
    JOHN DOE      1900-01-01 01:00:05
    JOHN DOE      1900-01-01 00:20:00
    JOHN DOE      1900-01-01 01:30:15
    =========     =================
    HOURS WORKED: 02:50:20
    Edited by: Paul Doe on Dec 12, 2009 5:42 PM
    Edited by: Paul Doe on Dec 12, 2009 5:45 PM

    Guess what, by further testing the code on the website mentioned above I got it working.
    Pus, I needed to change the grouping on the code, so I had to come up with a way to update the formulas based on the groupping field.
    Considering "call_date" is the field that you are groupping by on the designer use the following code to update the formula:
    CrystalReportObj = new ReportDocument();
    CrystalReportObj.Load("C:\\reportfile.rpt");
    FieldDefinition FieldDef;
    //Get formula
    FormulaFieldDefinition FormulaDef1;
    FormulaDef1 = CrystalReportObj.DataDefinition.FormulaFields["SubHours"];
    //Get formula
    FormulaFieldDefinition FormulaDef2;
    FormulaDef2 = CrystalReportObj.DataDefinition.FormulaFields["subMinSec"];
    //Update the formula to work with the new grouping field,
    //this must be called first else will throw an exception
    FormulaDef1.Text = FormulaDef1.Text.Replace("call_date", "call_extension");
    FormulaDef2.Text = FormulaDef2.Text.Replace("call_date", "call_extension");
    //Get the new field we are grouping by
    FieldDef = CrystalReportObj.Database.Tables[0].Fields["call_extension"];
    //Replace current grouping field with the new one,
    //considering there only one group in the report, index 0
    CrystalReportObj.DataDefinition.Groups[0].ConditionField = FieldDef;
    Have fun.
    Edited by: Paul Doe on Dec 12, 2009 8:43 PM
    Edited by: Paul Doe on Dec 12, 2009 8:53 PM

  • Crystal Data Conversion Issue (Error converting data type varchar to datetime)

    Hi,
    I can run stored procedure without error in SQL Server using my personal credentials as well as database credentials.
    I can also run Crystal Report after connecting to Stored procedure without error on my desktop using my personal credentials as well as database credentials.
    But when I upload the crystal report in BOBJDEV and when I run using database credentials report fails saying that "Error in File ~tmp1d1480b8e70fd90.rpt: Unable to connect: incorrect log on parameters. Details: [Database Vendor Code: 18456 ]" but I can run the crystal report successfully on BOBJDEV using my personal credentials.
    I googled (Data Conversion Error Message) about this issue & lot of people asked to do "Verify Database" in Crystal Report. So I did that, but when I do it I am getting a error message like this:
    Error converting data type varchar to datetime.
    Where do you think the error might be occurring? Did anyone faced this kind of issue before? If so, how to resolve it?
    (FYI, I am using Crystal Reports 2008, & for stored procedure I have used SSMS 2012 )
    Please help me with this issue.
    Thanks & Regards.
    Naveen.

    hello Naveen,
    since the report works fine in the cr designer / desktop, we need to figure out where you should post this question.
    by bobjdev do you mean businessobjects enterprise or crystal reports server? if so please post this question to the bi platform space.
    -jamie

  • Issue converting String to DateTime to subtract 1 Day duration  in XSLT

    Hi
    I need to subtract 1 Day duration from the input date which is in format "yyyy-mm-ddT00:00:00"( data type=String)
    I tried using the available function: subtract-dayTimeDuration-from-dateTime() But, this function expects input as datatype datetime and hence on using this I am getting Null as the result of the transformation.
    I have used dateTime() to convert the input string but it doesnt seem to be working as i get error "Invalid Xpath expression(null).
    Please help in identifying anyother way i can convert the String into dateTime format and hence subtract the duration. Or some other way of subtracting the duration of 1 day from string itself.
    Thanks for the help!

    Hi,
    It should work with the date on the format you have... Review the code, it may have some mistype... Also, in BPEL you should use the xp20 functions...
    Have a look at this...
    https://blogs.oracle.com/reynolds/entry/whats_the_time_mr_bpel
    Hope this helps...
    Cheers,
    Vlad

  • The conversion of a varchar data type to a datetime data type resulted in an out-of-range value

    I am trying to insert records into a temporary table with date values concatenated with other string values  into one large string value.I am getting the following error:
    Msg 242, Level 16, State 3, Line 12
    The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
    Msg 241, Level 16, State 1, Line 28
    Conversion failed when converting date and/or time from character string.
    -My code below
    Declare
           @hdrLOCAL char(255),                                                       
        @CR char(255),                                                             
        @BLDCHKDT DATETIME,                                                         
        @BLDCHTIME DATETIME,                                                         
        @hdrline int
        SELECT @hdrLOCAL = DDLINE FROM DD40400 WHERE INDXLONG =1
        SELECT @CR = DDLINE FROM DD40400 WHERE INDXLONG =2
        SELECT @hdrline =1
        SELECT
                @BLDCHKDT = CONVERT(varchar(20),T756.PAYDATE,105) ,
                -- convert(varchar,getdate(),15)
                @BLDCHTIME= CONVERT(varchar(20),T756.PAYDATE,105)
                FROM STATS.dbo.DD10500 T762
                LEFT OUTER JOIN STATS.dbo.DD10400 T756 ON (
                        T762.INDXLONG = T756.INDXLONG
                        AND T756.INCLPYMT = 1
                WHERE (T756.INCLPYMT = 1)
                    AND (T762.DDAMTDLR <> 0)
      Create TABLE [dbo].[##DD10200B](
        [INDXLONG] [int] NOT NULL,
        [DDLINE] [varchar](8000) NOT NULL,
        [DEX_ROW_ID] [int] IDENTITY(1,1) NOT NULL,
    BEGIN
    INSERT INTO ##DD10200B (INDXLONG,DDLINE)
            VALUES (1,@hdrLOCAL +',' + @CR +','+ @BLDCHKDT +',' + @BLDCHTIME )
    END
    Msg 242, Level 16, State 3, Line 12
    The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
    Msg 241, Level 16, State 1, Line 28
    Conversion failed when converting date and/or time from character string.
    The Best thing in Life is Life

    Since the Variable
    BLDCHKDT and BLDCHTIME are of type date time why are you trying to assign it a value
    of type varchar
    and the format 105 gives you dd-mm-yyyy but SQL server takes the default format as mm-dd-yyyy so the error occurs for all dates that
    are greater than 12
    try the below code
    Declare
    @hdrLOCAL char(255),
    @CR char(255),
    @BLDCHKDT Varchar(50),
    @BLDCHTIME Varchar(50),
    @hdrline int
    SELECT @hdrLOCAL = DDLINE FROM DD40400 WHERE INDXLONG =1
    SELECT @CR = DDLINE FROM DD40400 WHERE INDXLONG =2
    SELECT @hdrline =1
    SELECT
    @BLDCHKDT = CONVERT(varchar(20),T756.PAYDATE,105) ,
    -- convert(varchar,getdate(),15)
    @BLDCHTIME= CONVERT(varchar(20),T756.PAYDATE,105)
    FROM STATS.dbo.DD10500 T762
    LEFT OUTER JOIN STATS.dbo.DD10400 T756 ON (
    T762.INDXLONG = T756.INDXLONG
    AND T756.INCLPYMT = 1
    WHERE (T756.INCLPYMT = 1)
    AND (T762.DDAMTDLR <> 0)
    Create TABLE [dbo].[##DD10200B](
    [INDXLONG] [int] NOT NULL,
    [DDLINE] [varchar](8000) NOT NULL,
    [DEX_ROW_ID] [int] IDENTITY(1,1) NOT NULL,
    BEGIN
    INSERT INTO ##DD10200B (INDXLONG,DDLINE)
    VALUES (1,@hdrLOCAL +',' + @CR +','+ @BLDCHKDT +',' + @BLDCHTIME )
    END
    the only change done is 
    @BLDCHKDT Varchar(50),
    @BLDCHTIME Varchar(50),
    Surender Singh Bhadauria
    My Blog

Maybe you are looking for

  • Closed Quotes, single and double, are unavailable

    Does anyone have any recent issues with InDesign document not automatically inserting either a closed single or closed double quote? I have not experienced this before, and I've checked pref>type with no current doc open, I've checked multiple font j

  • Displaying content in a separate window

    I have the results of an ldap search being displayed in a JSP container, but want to be able to display the individual details of an entry in a separate window when the user clicks on an entry. I have tried doing a window.open (and using the target a

  • Acrobat X standard v 10.0.0  upgrades

    Are updates for Adobe X Standard v 10.0.0 available?

  • OSX 10.4.6 Update give great problems with Intel

    This my first time on apple discussions. Y work with OSX almost a month and today I sign up to upgrade 10.4.6 Terrify. Y have needed to restart the computer out of extensions by recomendation of the shopper. The shopper says that this upgrade dont´wo

  • Right shift key minimizes screen

    When I press the right shift my screen "mimizes" and vice versa - it does not capitalize the letter in question and is extremely annoying.