Forum Replies Created

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

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

     

     

     

     

  • RE: Need efficient way to Reseed Indentity Values

    I have to ask.  Why do you have to do this after loading that much data into the table?

     

  • RE: Restore each night

    This is an even more effective way to get everyone out of the database and prevent them from reconnecting.

    alter database MyDatabase set offline with rollback immediate
  • RE: Sql Triggers

    There is no reason why you couldn't use GETDATE() in your INSERT or UPDATE statement.

     

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