Forum Replies Created

Viewing 15 posts - 2,956 through 2,970 (of 3,010 total)

  • RE: The Old Boys Club

    I saw this situation once because of affirmative action.  There was an opening for a supervisor.  The obvious leading candidate was an extremely well qualified black man who had...

  • RE: Generating Dates

    You may find the function on this link useful for generating a date table.

    Date Table Function F_TABLE_DATE:

    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=61519

    Function F_TABLE_DATE is a multistatement table-valued function that returns a table containing a variety...

  • RE: The Old Boys Club

    Perhaps another way to look at it would be to say that the most resistance to affirmative action comes from those who would be discriminated against by affirmative action. ...

  • RE: The Old Boys Club

    I don’t believe that two wrongs somehow produce a right.  I also think it’s condescending to believe that women and minorities need protection.  That implies that they just can’t make...

  • RE: Can replication supply a hot failover?

    It sounds like the design issues with the database are so serious that the ususal source of downtime will be bugs in the application, not hardware, so automatic failover would...

  • RE: Generating Dates

    Create a table with one row for each date, and left join that to the result of the join of the other two tables.

  • RE: wildcard date time format

    Duplicates of what?

  • RE: wildcard date time format

    It is almost always better to write a date range selection in this form:

    where MyDateColumn >=  StartDateTime and MyDateColumn < EndDateTeim

    For example, to find all items for the date 2006-01-14.

    Select
     *
    from
     MyTable
    Where
     MyDateColumn...
  • RE: SQLmaint.exe

    It's not true that PKZip will not handle files above a ceratin size.

    This restriction went away with version 5.0 that was released in 2002.

     

     

  • RE: wildcard date time format

    It is not true that YYYY-MM-DD will work with any dateformat setting, as the following code demonstrates.  The only universal format is YYYYMMDD.

    set dateformat ydm
    print 'Convert 20071230'
    select Date=convert(datetime,'20071230')
    print 'Convert 2007-12-31'
    select Date=convert(datetime,'2007-12-31')
    Results:
    Convert...
  • RE: Need script to UPDATE 1000 Rows then COMMIT, Iteratively

    You could also use a temp table to doe this:

    create table #temp
    (
    MyTableID int  not null primary key clustered,
    Counter  int not null identity(1,1)
    )
    Inset into #temp (MyTableID)
    select top 100 percent
     MyTableID
    from
     MYTable
    order by
     MYTableID
    update MYTable
    set
     MyCounter = #temp.Counter
    from
     MYTable
     join
     #temp
     on MYTable.MYTableID...
  • RE: Head in the sand thought

    For every human problem, there is a neat, simple solution; and it is always wrong

    - H. L. Mencken, Mencken's Metalaw

  • RE: Need script to UPDATE 1000 Rows then COMMIT, Iteratively

    If there something that is preventing you from writing the script that you need?

     

  • RE: Simple query to select records older than 2 days

    Since that query has a count(*) in it, it will never return more than one row.

     

  • RE: removing the identity property of a column

    Why do you have to update the values in the identity column?  An ID really should not have any particular meaning, other than to provide a row identifier.

     

     

     

     

Viewing 15 posts - 2,956 through 2,970 (of 3,010 total)