Forum Replies Created

Viewing 15 posts - 1,741 through 1,755 (of 2,007 total)

  • RE: Date Format

    Kingston Dhasian (10/6/2010)


    Normally formatting such as these is done in the front end. Anyways this should help you out

    SELECT CONVERT(varchar(12), WDate, 103) + ' ' + CONVERT(varchar(28), WDate, 8)...

  • RE: Date Format

    I'm sure there must be a better way to do this, but try this: -

    SELECT CONVERT(VARCHAR, wdate, 103) + ' ' + Ltrim(

    ...

  • RE: Convertion of char values into smalldatetime values.

    atang.mogwera (10/6/2010)


    Convert(ServiceDate,SmallDateTime)

    Wrong way around.

    CONVERT(SmallDateTime,'2010-01-01')

  • RE: Raw Materials - Efficiency Unit

    That sucks. . . I really enjoy these comics! What can we do to stop them being finished?

  • RE: Patients who come in within 14 days

    SELECT crn, admission, admdate, admtime, disdate, admsource, admtype

    FROM mfCarlRepos.dbo.admissions as table_name1

    WHERE admdate BETWEEN '2010-04-01'...

  • RE: SSIS Execution Errors

    Resolved.

    Unsure why this worked, but here was the solution -

    The data-flow was multi-cast between 5 different tasks. All except the second one were green. Turns out the error was in...

  • RE: SSIS Execution Errors

    Added an error destination file.

    Below are a few of the codes that successfully were input into the DB: -

    PA24Z

    MC03Z

    FZ07B

    NZ05A

    WA22X

    DZ21H

    FZ03A

    FZ03A

    Now here are a few that failed and were instead redirected :...

  • RE: saving a date to a varchar field as YYYY-MM-DD

    Alvin Ramard (9/9/2010)


    3 of us posted an answer, but I think I'm the only one with the right format. (120 vs 102)

    True. I didn't really look at the format required,...

  • RE: saving a date to a varchar field as YYYY-MM-DD

    Assuming @logicaldate is datetime, it should be

    SELECT CONVERT(NVARCHAR(255), @logicaldate, 102)


    -Edit-

    Lol, think I was a little slow :hehe:

  • RE: How can you see the Recovery Model?

    SELECT [name] ...

  • RE: Question: float display as character

    Lowell (9/9/2010)


    Jeff Moden (9/8/2010)


    Will this do?

    SELECT UPPER(CONVERT(VARCHAR(30),@ReturnValue,2))

    [/code]

    I know there is usually a reason behind everything in your posts , Jeff...I love reading your posts specifically because I learn something (and...

  • RE: query updation

    ORDER BY ID

    ??

  • RE: Where Are the Programmers?

    In the last six months my title has changed from "Applications Development Consultant" to "Software Developer" - yet my actual job hasn't changed at all. Can't say I really care...

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (8/31/2010)


    I know most people know I was joking in my original post, but in case you didn't get it, I was joking. I'm impressed at the number of...

  • RE: Transactions in sql

    suraj.app (8/31/2010)


    Hi,

    In a transaction there are 3 update statements. The 2nd update statement invokes a trigger which in turn updates a audit table.

    The 3rd update fails which rolls back...

Viewing 15 posts - 1,741 through 1,755 (of 2,007 total)