Forum Replies Created

Viewing 15 posts - 3,826 through 3,840 (of 6,035 total)

  • RE: how to remove specific values from my query critera

    This is not a MS Access forum and a database is not a bowl of fruit, but here is how you exclude specific rows from a SQL query.

    select Fruit

    from...

  • RE: Getting UTC date and fixed time

    GETDATE() returns local time and GETUTCDATE() returns UTC time.

  • RE: The Scientific Method: a call to action

    One of the advantages of a medieval style IT shop, where the rules are not spelled out on paper, is that you as the DBA can simply lord it over...

  • RE: The Scientific Method: a call to action

    Depending on the organization, I'm not opposed to allowing Developers read-only access to production, especially if they are expected to wear the Data Analyst hat on occasion. Even more advanced...

  • RE: System Views

    dlsilsbury 63952 (5/21/2015)


    ...

    Out of interest how do you mark a view as a system view?

    No. System views are those distributed with SQL Server. There is rarely a reason to mark...

  • RE: The Scientific Method: a call to action

    Kyrilluk (5/27/2015)


    Eric M Russell (5/27/2015)


    Jeff Moden (5/27/2015)


    Kyrilluk (5/27/2015)


    Eric M Russell (5/26/2015)


    Kyrilluk (5/26/2015)


    It would be nice to have this scientific method to all the blab about security as well. Like "I...

  • RE: The Scientific Method: a call to action

    Kyrilluk (5/27/2015)


    Eric M Russell (5/27/2015)


    Kyrilluk (5/27/2015)


    Eric M Russell (5/26/2015)


    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...

  • RE: The Scientific Method: a call to action

    Jeff Moden (5/27/2015)


    Kyrilluk (5/27/2015)


    Eric M Russell (5/26/2015)


    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...

  • RE: The Scientific Method: a call to action

    Kyrilluk (5/27/2015)


    Eric M Russell (5/26/2015)


    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...

  • 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...

  • 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...

  • 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 ..

  • RE: 'Check constraint' on group of records

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

  • 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...

  • 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...

Viewing 15 posts - 3,826 through 3,840 (of 6,035 total)