Forum Replies Created

Viewing 15 posts - 2,176 through 2,190 (of 3,011 total)

  • RE: dealing with timestamp

    Jean-François Bergeron (11/5/2008)


    A trigger is good for the update statement, but I propose you use a simple default value for the new value. Here's how:

    USE tempdb

    GO

    CREATE TABLE [dbo].[Test]

    ...

  • RE: a question about MySQL

    jgrubb (10/31/2008)


    There's actually a forum for non MSSQL questions as well

    http://www.sqlservercentral.com/Forums/Forum61-1.aspx

    The "Anything that is NOT about SQL!" forum?

    You could also say that is the "Quantum mechanics" or "Medieval History" forum,...

  • RE: Field Type to use for Elapsed Time in HH:MM?

    Yes, and then you get into all sorts of issues with rounding, overflow, etc. if you use integers.

    declare @t table (ST datetime, ET datetime)

    print 'Load Test Data'

    insert into @t

    select

    *

    from

    ( --Test...

  • RE: Field Type to use for Elapsed Time in HH:MM?

    Just to get you started, I thought I would post these items for using elapsed time in datetime columns.

    This is a solution for parsing elapsed time into days, hours, minutes,...

  • RE: Red Gate SQL Backup vs. Quest Lite Speed backup

    David Swanson (10/31/2008)


    Disclaimer: I work at Quest as the PM fro LiteSpeed so you probably have a good idea about what I might recommend.;)

    That being said, LiteSpeed's Object Level Recovery...

  • RE: Field Type to use for Elapsed Time in HH:MM?

    It’s usually better to store elapsed time in a datetime column as an offset from zero time, 1900-01-01 00:00:00.000. It then allows you to use all the datetime functions...

  • RE: A Few Good DBAs

    It is true that I didn't credit "A Few Good Men" in my parody; I guess I just assumed that everyone would know it was a parody of such a...

  • RE: A Few Good DBAs

    David Reed (10/29/2008)


    Michael Valentine Jones (10/29/2008)


    I can't believe he ripped me off. I posted this on SQLTeam 3 and a half years ago; it's the reason for my forum...

  • RE: a question about MySQL

    You should post you question on a MySQL forum.

    Try the MySQL forum at http://www.dbforums.com/

  • RE: A Few Good DBAs

    I can't believe he ripped me off. I posted this on SQLTeam 3 and a half years ago; it's the reason for my forum title there, "Yak DBA Kernel...

  • RE: Affect of changing domain on windows user accounts

    If you change to a new domain, the logins will keep working only if the SIDs of the user accounts on the new domain remain the same.

  • RE: Data Ownership

    I’m sure it there is any change to the DMCA as result of this, it will be tailored specifically to benefit political campaigns only. They wouldn’t want to make...

  • RE: displaying year (YY) as YY-YY format

    Jerry Hung (10/21/2008)


    cheap, may not be efficient way

    That is pure speculation, unless you supply test results to back up that statement.

  • RE: displaying year (YY) as YY-YY format

    select

    [Year] = right(a.Yr,2)+'-'+right(a.Yr+1,2)

    from

    ( --Test Data

    select Yr = 1998 union all

    select Yr = 1999 union all

    select Yr = 2000 union all

    select Yr = 2001 union all

    select Yr = 2002 union all

    select...

  • RE: Updating Datetime column from varchar data

    This would also do what you want:

    select dateadd(dd,datediff(dd,0,COLUMN_A),0)+COLUMN_B

Viewing 15 posts - 2,176 through 2,190 (of 3,011 total)