Forum Replies Created

Viewing 15 posts - 3,841 through 3,855 (of 6,041 total)

  • RE: Database security question

    robin.pryor (5/26/2015)


    The company I work for insists on being really liberal with db_owner. For the most part, that's not a problem, but security is an issue. Is there a way...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: missing one record when selecting by date range

    Luis Cazares (5/26/2015)


    Eric M Russell (5/26/2015)


    A simple CAST operation from date/time to date won't necessarily prevent usage of an index on a date/time column. For example, given the following table...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: Update query, please help

    I'm not understanding your usage of that WHERE clause.

    The syntax for a joined update is basically the following:

    UPDATE A

    SET ..

    FROM A

    JOIN B ..

    WHERE ..

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: 'Check constraint' on group of records

    You can also reference scalar user defined functions within check constraints.

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: column datatype update not usable

    Confirm there is not a trigger on this table, or some other change data capture mechanism, that inserts into an audit table for which the datatype of Age is still...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: missing one record when selecting by date range

    Lynn Pettis (5/26/2015)


    itortu (5/26/2015)


    This did the trick for me:

    SELECT orderno

    FROM _order

    WHERE CAST(FLOOR(CAST(order_date AS FLOAT)) AS DATETIME)

    BETWEEN CAST('5/14/2015' AS DATETIME)

    AND CAST('5/15/2015' AS DATETIME)

    ORDER BY order_date asc

    The...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: The Scientific Method: a call to action

    Kyrilluk (5/26/2015)


    It would be nice to have this scientific method to all the blab about security as well. Like "I shouldn't give the sysadmin password to the developers because of...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: Database security question

    robin.pryor (5/26/2015)


    The company I work for insists on being really liberal with db_owner. For the most part, that's not a problem, but security is an issue. Is there a way...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: Would a Duress Password be a Good Idea?

    Wayne West (5/25/2015)


    Ross McMicken (5/25/2015)


    GPO (5/23/2015)


    Of course all of this assumes your DBA or sysadmin is beyond reproach. I worked as a bank clerk many years before I'd ever heard...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: Naming Confusion

    Gary Varga (5/22/2015)


    Eric M Russell (5/22/2015)


    Gary Varga (5/22/2015)


    Eric M Russell (5/22/2015)


    T_Peters (5/21/2015)


    I've run into various naming conventions that have caused problems over the years. One of my favorites was naming...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: Naming Confusion

    Gary Varga (5/22/2015)


    Eric M Russell (5/22/2015)


    T_Peters (5/21/2015)


    I've run into various naming conventions that have caused problems over the years. One of my favorites was naming printers after the 7 Snow...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: Is it possible to determine the dataflow within a database?

    The high level data flow depends on the sequence for which the application calls the stored procedures, so perhaps ask the application team if they have a diagram. Also, running...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: Multiple Apps in one Database

    mrl6254 (5/21/2015)


    I’m involved in an application where a database is to be migrated over to a new server.

    I have been told that numerous applications each today with their own database...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: Naming Confusion

    T_Peters (5/21/2015)


    I've run into various naming conventions that have caused problems over the years. One of my favorites was naming printers after the 7 Snow White dwarfs. It was a...

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

  • RE: Columnstore Query Reverting to Row Mode with CROSS JOIN

    If you feel confident that this particular query should always leverage the non-clustered columnstore index, then have you tried an index like so?

    WITH (INDEX (IX_EmployeeReview_CS))

    "Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho

Viewing 15 posts - 3,841 through 3,855 (of 6,041 total)