Forum Replies Created

Viewing 15 posts - 31 through 45 (of 443 total)

  • RE: Delete syntax not working

    Hmm... looks like the OP has been scared away by all this talk of ISO standards, generic code, etc. 🙂
    The forum does have 'SQL Server' in the title...

  • RE: Delete syntax not working

    komal145 - Monday, October 16, 2017 11:34 AM

    Actually the code works indivdually ran...i mean just code part. But if i place...

  • RE: JSON query issues

    n.ryan - Thursday, June 15, 2017 12:22 AM

    Strange... I was looking for the obvious answer that the data was missing a comma...

  • RE: Does this work in R?

    RoNoS - Wednesday, April 26, 2017 1:40 AM

    24 -> x

    What does this do?

    April 26, 2017 at 2:06 am

    #1939880

  • RE: Unable to run sqlcmd using batch

    You have a stray '-' on line 11 (ish) of your script where you set the userName var

  • RE: how to Select getdate () in yyyy/M format ?

    Orlando Colamatteo (1/13/2016)


    sushantkatte (1/13/2016)


    I want to select getdate() in the format yyyy/M. i tried to write a query as SELECT FORMAT(GETDATE(),'yyyy/M') but it is giving me error.I am a beginner...

  • RE: Wrapping of text in HTML(XML)

    Some issues with your HTML template:

    i. The head tag is inside the table tag, try moving it (and the style tag it contains) to before the H3 tag

    ii. The...

  • RE: Delete statement suggestion that will help me fix my statement

    mistylove98 (4/23/2015)


    Thanks all for the help I feel kinda stupid now. Yes it should not have been shipped date it should have been

    delete LMOrders where OrderDate between 10-10-1996...

  • RE: how to get the answer from "count(*) into a textbox

    You don't need to do both

    cmd.ExecuteScalar())

    and

    cmd.ExecuteNonQuery()

    You're executing the same query twice, the 'ExecuteNonQuery' is...

  • RE: How to get the latest record before a defined value in a field

    If I understand your question then this should suffice

    SELECT TOP 1

    *

    FROM

    DutyRosterShiftHisto

    ...

  • RE: Finding New Years Eve

    DavidBridgeTechnology.com (1/9/2013)


    Whilst others are being picky I thought I would add my bit.

    None of the answers are right

    When is New Years Eve anyway?

    If its January 9th (as it is today)...

  • RE: Finding New Years Eve

    sknox (1/4/2013)


    nigel. (1/4/2013)


    Thanks Steve for the question.

    Thought I'd throw this in just for fun. Should work for every day of the year:

    SELECT DATEADD(DAY, -DATEPART(dayofyear,GETDATE()),GETDATE())

    The only problem with that is, since...

  • RE: Finding New Years Eve

    Thanks Steve for the question.

    Thought I'd throw this in just for fun. Should work for every day of the year:

    SELECT DATEADD(DAY, -DATEPART(dayofyear,GETDATE()),GETDATE())

  • RE: Numbers

    Try

    SELECT ASCII('€');

  • RE: Get next 1st thursday

    Jonathan,

    I think you may have cracked it there, I suspected mine was too complicated.

    With one slight modification to your where clause to account for different DATEFIRST settings:

    WHERE

    ...

  • Viewing 15 posts - 31 through 45 (of 443 total)