Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)

  • RE: Optimize Range Query

    Thanks,

    The script i posted here was a sample, the range table will be used by multiple SP's each querying for a diffrent groups.

     

  • RE: Optimize Range Query

    yes i did and got logical reads 10, now its back to 5!!!

    is there any other way to write the same query?

     

     

  • RE: Remove timepart from datetime field, change Stored Procs.

    Thanks frank,

    To conclude this should work.

    1)Remove the time part

    update hdr

    set transdate=convert(datetime,convert(char(10),transdate,101))

    2)(with convert function removed)

    --value passed to parameter in ymd format

    no dateformat option set

    select * from hdr where

    transdate between @fromdate and...

  • RE: Remove timepart from datetime field, change Stored Procs.

    Adding + 1 to the format is an option will consider if all else fails.

    The time value will be removed from the transdate field. Please read my first post and...

  • RE: Remove timepart from datetime field, change Stored Procs.

    Reason for using convert

    The application has more than 100 reports, we are using crystal reports with VB as front end, all reports will have to be changed to have datetime...

  • RE: Time Out

    set

    objMyConnection.CommandTimeout =0 for  an infinite timeout.

    Try to run the query on the server and see why is it taking such a long...

Viewing 6 posts - 1 through 6 (of 6 total)