Forum Replies Created

Viewing 15 posts - 25,141 through 25,155 (of 26,487 total)

  • RE: Include end date on a history record?

    Glad we could help, and thanks for the feedback.

    😎

  • RE: Best Way to Calculate Age

    No offense taken, just restating why everyone who did answer should not be penalized for answering the QotD. I will admit I answered #2, and it returned the correct...

  • RE: Stored Procedure

    Actually, if you need to move the record from Table1 to Table2 on delete, you would use a trigger that fired ON DELETE to move the record.

    😎

  • RE: Best Way to Calculate Age

    Since all provided answers were actually wrong (even though #2 seemed to provide a more accurate answer than #1 or #3), noone should lose any points for attempting to answer...

  • RE: Best Way to Calculate Age

    So, based on all the comments so far, does everyone agree we all should get our 2 points?

    Perhaps a poll should be setup.

    😎

  • RE: Best Way to Calculate Age

    but its important to note it makes a differnce when a leap year birthday actually (or legally) occurs in non-leap year - Feb 28 or March 1st.

    So, when does...

  • RE: SSIS Execution Problem

    Actually, somewhere on this site I found a similiar (yet different) problem. The solution recommended was adding this:

    127.0.0.1crl.microsoft.com

    to the hosts file on the server.

    I asked our network services people...

  • RE: Effective Dates on a field

    I hope this can help you get started on a solution to your current issue:

    create table dbo.TeamEffectiveDate (

    EffectiveDateId int identity(1,1),

    StaffId int,

    ...

  • RE: Need to return query result in 0.02 sec

    If it ain't broke, don't fix it, else throw more hardware instead of fixing the underlying problem. Seems like how most management approaches problems like this.

    All we can do...

  • RE: Effective Dates on a field

    It would help us help you if you would provide us with the DDL (create statements) for the tables, some sample data (in the form of unioned insert statements), and...

  • RE: Multipleinstances of Sql server

    Not a problem. I find myself having to check MS licensing on a regular basis to be sure we stay legal (to the best of my knowledge at least).

    😎

  • RE: 64-Bit Install Gotchas

    Adam Bean (3/6/2008)


    Cory Ellingson (3/6/2008)


    The biggest issue I had was with linked servers from the 64bit to 32 bit SQL servers. I had to run an update on all...

  • RE: Multiple instances of Sql server

    Actually, I just read the EULA for SQL Server 2005 Standard Edition, and you can install multiple instances on the same computer. I think that was a change from...

  • RE: Best Way to Calculate Age

    Here is some code that works:

    declare @DateOfBirth datetime

    set @DateOfBirth = '1959-08-29 09:59:00.000'

    select datediff(yy, @DateOfBirth, getdate()) - case when dateadd(yy,datediff(yy, @DateOfBirth, getdate()), @DateOfBirth) > getdate() then 1 else 0 end

    set @DateOfBirth...

  • RE: Best Way to Calculate Age

    I want my point back too....

    Here is the code as run with results:

    declare @DateOfBirth datetime

    set @DateOfBirth = '1959-08-29 09:59:00.000'

    select DATEDIFF(yy, @DateOfBirth, GETDATE()) union all

    select FLOOR(CONVERT(decimal(9, 2), DATEDIFF(d, @DateOfBirth, GETDATE())) /...

Viewing 15 posts - 25,141 through 25,155 (of 26,487 total)