Forum Replies Created

Viewing 15 posts - 6,031 through 6,045 (of 14,953 total)

  • RE: Are the posted questions getting worse?

    Alvin Ramard (11/16/2010)


    GSquared (11/16/2010)


    Chris Morris-439714 (11/16/2010)


    WayneS (11/16/2010)


    Chris Morris-439714 (11/16/2010)


    Thanks guys. I'll leave him be, he's had enough prompting.

    Think he'll PM you again for more help?

    No idea, Wayne.

    That really freaked...

  • RE: Connection Error, very common

    It means you lost the connection. Could be anything from a bad cat-5 cable to a faulty router, any number of things.

  • RE: Are the posted questions getting worse?

    Chris Morris-439714 (11/16/2010)


    WayneS (11/16/2010)


    Chris Morris-439714 (11/16/2010)


    Thanks guys. I'll leave him be, he's had enough prompting.

    Think he'll PM you again for more help?

    No idea, Wayne.

    That really freaked me out, it...

  • RE: How do we know the table name of an index?

    There's a sys.indexes system view you can select from. Use Object_Name() on the ParentObjectID column.

  • RE: Issues in Identity Column

    Ah. That makes sense then. Forgot about those.

  • RE: Logic loop to check variables

    Try something like this, see if it does what you need:

    SELECT

    Employeenumber,

    Name,

    CASE WHEN SUM(totalminutes) > 480 THEN 480

    ...

  • RE: top without using TOP

    Learner1 (11/15/2010)


    Here is the complete code with inserts... to find 3rd highest salary

    try it..

    CREATE TABLE [SAL](

    [name] [varchar](12) NULL,

    [salary] [int] NULL

    )

    select * from SAL

    INSERT INTO sal ( ...

  • RE: simple delete statement

    Same thing, just replace 'ABCD' in either one.

  • RE: Insert with Loop

    I'm curious as to why a loop is needed here at all.

    It looks to me like what you're doing is taking all of the rows in one table, based on...

  • RE: Issues in Identity Column

    Paul White NZ (11/15/2010)


    GSquared (11/15/2010)


    If you use OUTPUT INTO in the delete, the insert will be part of the same transaction.

    How do you know the target table does not have...

  • RE: possible to see who deleted a tabel column

    If you have a trace running that captures that kind of thing, it's pretty easy to find out.

    If you have a DDL log, again, it's easy to find out.

    If you...

  • RE: Best practice for allowing access to database

    A separate copy, like Gail mentioned, is what I've recommended in the past. If what the analysts are doing has value to the business, the RoI on hardware for...

  • RE: @@ERROR and Triggers

    The trigger fires as part of the insert, so the error value would be after the trigger, I think.

    Test it. Put a trigger on a test table that has...

  • RE: Weekly date ranges.......

    Honestly, this kind of thing becomes trivial to solve with a proper Calendar table. Anything else requires the kind of complex math you're looking at here.

  • RE: Logic loop to check variables

    If you can post actual table names and structures, this can be done in a single query pretty easily.

Viewing 15 posts - 6,031 through 6,045 (of 14,953 total)