Forum Replies Created

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

  • RE: Data roll up

    Try this out:

    DECLARE @Table table (
        Col1 char(1),
        Col2 varchar(6),
        Col3 smallint
    )
    ;
    insert @Table
        values
            ('A','before',100),
            ('A','after',10),
            ('A','after',80),
            ('B','before',280),
            ('B','before',20),
            ('B','after',250),
            ('C','before',150),
            ('C','after',220)
    ;
    With groups...

  • RE: Is Calculating time with a single logDateTime Column and unique ID's possible

    What version of SQL Server are you using?  SQL 2012 and above have the functions LEAD & LAG which you could use:
    select
        *,
        DATEDIFF(MINUTE, LAG(LogDateTime, 1) OVER (PARTITION...

  • RE: Please help with xp_cmdshell

    Have you considered using xp_dirtree instead of xp_cmdshell.  It carries less risk.  To your question/error, the length of the in column in your temp table (#Dir) is too small.

  • RE: Creating a column using a select where statement

    First, based on the code you've posted, data for the 10am hour will duplicated in both time frames you've defined.  There was another article posted by Bob Hovious today on...

  • RE: Is This Database Being Used?

    Eric M Russell - Tuesday, December 5, 2017 12:21 PM

    Jeff Moden - Tuesday, December 5, 2017 9:16...

  • RE: Is This Database Being Used?

    Just a heads up; some of the techniques discussed can be skewed (in use) by maintenance jobs like re-indexing.

  • RE: Combining AlwaysOn Groups With Failover Cluster Instances

    Doesn't really matter since you can have multiple replicas, but can a replica be clustered as well?

  • RE: Company Rewards

    sjsubscribe (4/16/2010)


    A company used to award free home computer until a couple of years later one employee refused. Then everyone caught on that the home computer put them on-call for...

  • RE: Company Rewards

    I once worked for a company with a "forward thinking" executive who initiated a Halloween Costume Contest her first year with the company. The company was "supposed" to provide...

  • RE: Friday Afternoon

    Mad Hacker (3/12/2010)


    We periodically have a cookout or snack day at my present employer.

    At one of my former employers we had a horse shoes tournament complete with brackets which wasn't...

  • RE: Friday Afternoon

    My current employer has a workout facility which rivals any gym on the planet. Occasionally, I'll get to watch the K-9 officers practice or listen to the color guard...

  • RE: DNS Alias Named instance of SQL Server

    Elliott W (9/15/2009)


    Bert (9/15/2009)


    Given that you must supply a unique Virtual SQL Server name with an associated unique IP address during a CLUSTERED SQL Server installation, why couldn't you create...

  • RE: Union Benefits

    Retraining?...How about training? I haven't had any employer funded training since 1994.

    Ergo Chairs?...I once worked for a company that would not provide an ergo key board when I had...

  • RE: Guest Editorial: Information is Power

    Dave (3/5/2009)


    Bert (3/5/2009)


    ...I personally don't trust ANYONE/THING that wants to collect data on me who/that I have not initiated a relationship with.

    Do you pay taxes in the USA? Do...

  • RE: Guest Editorial: Information is Power

    dphillips (3/4/2009)


    I find it hard to completely trust a conscienceless government to keep appropriate mistake-free records. All people as a whole must take some personal ownership and responsibility in a...

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