Forum Replies Created

Viewing 15 posts - 286 through 300 (of 424 total)

  • RE: Tracking status over time

    Contracts or price agreements are generally effective for a predetermined time span thus waranting a begin/end date pair. A status, on the other hand, is a state of a...

  • RE: Arithmetic overflow error converting varchar to data type numeric.

    Converting varchar to numeric is inherently unsafe unless the data is app generated and not user entered. You will have random errors depending on which range of rows your...

  • RE: The Next Five Years

    The phrase "survival of the fittest" falls short of reality which uses "survival of the fittest for unknown upcoming conditions". Its even more complicated because right now what is...

  • RE: RAND Unions

    A different rand() value per row is possible with a little bit of convoluted work:

    CREATE VIEW rnd AS SELECT RAND() AS nbr;

    CREATE FUNCTION GetRnd() RETURNS real AS

    BEGIN

    DECLARE @r real

    SET @r...

  • RE: The Value of Data

    Data is cheap and ubiquitous. It is lower than information, which is organized data. Data has its own attributes such as quality, timeliness, and accuracy that only the...

  • RE: Premature Optimisation

    Environment is everything. Check the big picture before checking the small picture.

    Developers will tell me procedure XYZ is timing out on a customer's site and needs optimized. The...

  • RE: Sudoku Generator/Solver

    After two hours of 100% CPU usage, I killed the solver proc. I've seen other solvers that work in a second or two.

    I finally figured out the undocumented generator...

  • RE: Another Way to Look at Trees

    I'm reminded of the saying "Make things as simple as possible but not simpler". In other words, you may have assumed too simple of an answer.

    An accepted hierarchy for...

  • RE: UNION ALL Statement hangs engine

    You can't go by visible output. SqlServer uses buffers for output so you'll only retrieve full pages but there might be some remaining rows waiting for the buffer page...

  • RE: UNION ALL Statement hangs engine

    I see plenty of case statements and implicit conversions going on which leads me to believe the second SELECT which has no rows, data types can't be figured out. ...

  • RE: Are embedded spaces ever valid in non-delimited names?

    The parser is very forgiving of formatting. If you think of 4-part names as each part being independent and as overriding a default scope, it will make sense to...

  • RE: sql_variant

    I think the main reason for sql_variants has been missed here and are therefore being bashed unfairly. Their purpose is to allow different data types to be stored in...

  • RE: Stupid Stored Procedure Question Nbr 1

    A deadlock victim message/error is an expected situation. SQL Server rolls back your transaction and expects you to try again with likely success. Because it is a recoverable...

  • RE: Stupid Stored Procedure Question Nbr 1

    To be chosen as a deadlock victim, two threads must be inside transactions. If thread one updates tableA then tableB while thread two updates tableB then tableA AND both...

  • RE: Using Views

    Views might work for a small subset of DDL changes since views are rarely update-able when based on more than one table. How can you handle a case where...

Viewing 15 posts - 286 through 300 (of 424 total)