Forum Replies Created

Viewing 4 posts - 46 through 49 (of 49 total)

  • RE: Convert getdate() to date only

    This works and looks good to me.

    declare @date as datetime

    select @date = convert(varchar(10), getdate(),101)

    print  @date

  • RE: key set cursor error in job

    I am running gaint cursor to see what values and assets need to be reconciled from account, price and assets. then checking market value if exists then insert values in...

  • RE: Last Date Of Month script

    This works,

    add 1 month, sub days of date

    select convert( datetime,right('00'+convert(varchar(2), month(@date)),2) +

     '/' + right('00'+convert(varchar(2), DAY(DATEADD(d, -DAY(DATEADD(m,1,@date)),DATEADD(m,1,@date)))),2) + '/' +

     convert(varchar(4),year(@date)))

     

  • RE: import issue

    I had the problem other way. when importing impoted text but not intergers

    eg.

    abcd

    efgh

    ijk

    2003

    2004

    www

    2003 and 2004 did not get imported. Used Access to import first then into SQL worked fine.

Viewing 4 posts - 46 through 49 (of 49 total)