Forum Replies Created

Viewing 15 posts - 2,701 through 2,715 (of 15,381 total)

  • RE: Are the posted questions getting worse?

    Grant Fritchey (7/1/2015)


    Sean Lange (7/1/2015)


    jasona.work (7/1/2015)


    Man, I hate the week leading up to a 3-day weekend like this...

    Half the people (the smart ones?) take the other 4 days off, and...

  • RE: Are the posted questions getting worse?

    jasona.work (7/1/2015)


    Man, I hate the week leading up to a 3-day weekend like this...

    Half the people (the smart ones?) take the other 4 days off, and the people who don't,...

  • RE: need help on Scalar value Function

    Jacob Wilkins (6/30/2015)


    This is all rather interesting, so I thought I'd chime in.

    Based on what I've tested, Scott is technically correct. Under the right conditions, even where it is not...

  • RE: Count of consecutive years of participation (islands and gaps)

    OLSONEJ (6/29/2015)


    I have a data set (snippet below) and I need to count the number of consecutive years based on a date in time for each ID as represented below.

    ID...

  • RE: Are the posted questions getting worse?

    That's great news Alan!!! Enjoy paternity leave. Just wait a couple weeks and that sleepy feeling you remember from college will pale in comparison to weeks on end with no...

  • RE: Sql Qurey Subtract Data on Hourly basis

    Luis Cazares (6/29/2015)


    That's weird Sean, I would be more scared of rar files.

    Heh, well I have a VM with winrar on it but it doesn't have office. I was able...

  • RE: Who is the odd man out?

    james.milner (6/29/2015)


    Curious...how is NEWID() considered a deterministic function?

    It is not a deterministic function. The answer to the question states that DATEADD is the only deterministic function and all of the...

  • RE: increment day to timestamp when time is after 00:00

    karthik82.vk (6/29/2015)


    Hi,

    Your solution works fine..

    However I cannot have the myTime < '08:10:00' value always as '08:10:00'.

    Is there any workaround for this?

    You have several rows in your sample with...

  • RE: Moving away from ntext

    You should be able to just change the datatype from ntext to nvarchar(max). When you want to limit the length though you will get a warning that you might lose...

  • RE: Who is the odd man out?

    I too was bitten by the vague bug. I got the right answer but that was because it was the only non-ANSI function. There are just too many ways this...

  • RE: Sql Qurey Subtract Data on Hourly basis

    farrukhhameed786 (6/27/2015)


    Hi Sean,

    Thanks

    Please find in the attachment Create Table.sql,Insert Script.sql and sample new.xlsx ( contains results).

    I hope not miss any thing.

    OK we are getting closer. The file contains...

  • RE: Query Help - Case When Issue

    Since you say you are new to SQL I would ask if you understand what that NOLOCK is really doing. It can and will get missing and/or duplicate rows. It...

  • RE: need help on Scalar value Function

    ScottPletcher (6/25/2015)


    GilaMonster (6/25/2015)


    Nolock hints, do you know what they do? (hint, they don't make queries faster)

    Why does everyone keep repeating that?

    Scott you have been around sql long enough to...

  • RE: Stored Procedue Schema Rights?

    alex.sqldba (6/26/2015)


    Hi Guys,

    If I granted execute right to Schema1 for sp MyProc;

    And MyProc updates something in Schema2

    Will it work? Or will it fail as its a different Schema?

    Cheers

    Alex

    If the user...

  • RE: Sql Qurey Subtract Data on Hourly basis

    farrukhhameed786 (6/26/2015)


    Hi Sean

    First of all I apologized may be my way of writing not correct !

    Actually data is already inside database I want to write the sql query to get...

Viewing 15 posts - 2,701 through 2,715 (of 15,381 total)