Forum Replies Created

Viewing 15 posts - 3,421 through 3,435 (of 15,381 total)

  • RE: Counting values

    Koen Verbeeck (1/14/2015)


    Sean Lange (1/14/2015)


    Koen Verbeeck (1/14/2015)


    Sean Lange (1/14/2015)


    Charles Kincaid (1/14/2015)


    Great QOD Steve. I would have not thought that this would have that many issues.

    Seems that COUNT() does some...

  • RE: Are the posted questions getting worse?

    Koen Verbeeck (1/14/2015)


    Steve Jones - SSC Editor (1/14/2015)


    Boy, it seems like my questions are getting worse lately. Taking a beating in the QoD.

    The question of today wasn't bad at...

  • RE: Counting values

    Koen Verbeeck (1/14/2015)


    Sean Lange (1/14/2015)


    Charles Kincaid (1/14/2015)


    Great QOD Steve. I would have not thought that this would have that many issues.

    Seems that COUNT() does some fun things. I...

  • RE: Urgent! Need help on query!

    Your first table is in direct violation of first normal form (1NF) which says you can't have more than one value at any given intersection in a table.

    The article Luis...

  • RE: Counting values

    Charles Kincaid (1/14/2015)


    Great QOD Steve. I would have not thought that this would have that many issues.

    Seems that COUNT() does some fun things. I have been using COUNT(1)...

  • RE: Pass date format into Stored Proc

    simon.letts (1/14/2015)


    Yes the unit are attached to IT and support the business so they are a little more technical and use SSMS

    Yikes!!! On one hand you have people who can't...

  • RE: Pass date format into Stored Proc

    simon.letts (1/14/2015)


    Thanks fot that.

    But as i say, using the ANSI format is what I want to get away from, it needs to be dd/mm/yy for ease of use by our...

  • RE: Pass date format into Stored Proc

    simon.letts (1/14/2015)


    execute myproc '13/05/99', '14/05/99'

    Then use ANSI standard date formats.

    exec myproc '1999-05-13', '1999-05-14'

    Or set the dateformat in your connection.

    set dateformat dmy

    execute myproc '13/05/99', '14/05/99'

  • RE: Counting values

    edwardwill (1/14/2015)


    Stewart "Arturius" Campbell (1/14/2015)


    edwardwill (1/14/2015)


    Stewart "Arturius" Campbell (1/14/2015)


    edwardwill (1/14/2015)


    Actually, it returns:

    Msg 102, Level 15, State 1, Line 4

    Incorrect syntax near ','.

    what version of SQL Server are you using?

    2008 R2...

  • RE: SQL

    I would recommend not littering your database with that NOLOCK hint. This appears to be a financial application. Are you aware of the ramifications of that hint? Is accuracy not...

  • RE: "Best Practices" Questions

    This so far is the scariest thread of the year. Complete and total lack of understanding by some arrogant "senior" team member. I would run away as quickly as possible.

  • RE: Pass date format into Stored Proc

    simon.letts (1/14/2015)


    Thaks for that. So can you give me an example of how you would have coded it please. 🙂

    I would have coded it exactly as your original post....

  • RE: Counting values

    Good question. I am rather shocked at how many people got this wrong (12% at the time of this posting). As many times as this has been covered it is...

  • RE: Are the posted questions getting worse?

    Koen Verbeeck (1/13/2015)


    FYI, I received the Author of the Year award at MSSQLTips.com!

    Thanks everyone for voting!

    Congrats!!! Well deserved!!!

  • RE: Pass date format into Stored Proc

    simon.letts (1/13/2015)


    Hi, thank-you for that. Was just typing in the fact that I'd resolved it.

    I had to set the 2 variables to varchar, I had them as datetime! doh

    Then...

Viewing 15 posts - 3,421 through 3,435 (of 15,381 total)