Forum Replies Created

Viewing 15 posts - 25,156 through 25,170 (of 26,490 total)

  • 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())) /...

  • RE: help with SP

    I don't have time right now to work on this, but I can give you a suggestion. When building a dynamic sql statement, build it in steps. Select...

  • RE: Multiple instances of Sql server

    One reason is isolation of databases. If you want to query between databases in multipke instances, you have to use linked servers or similiar query methods. On larger...

  • RE: I got burned today at a SQL Server Interview!

    I just wish the computer would do want I want, not what I tell it to do. It would be sooo much easier.

    :w00t:

  • RE: I got burned today at a SQL Server Interview!

    O.D.A.A., Now that's a good one!

    :w00t:

  • RE: I got burned today at a SQL Server Interview!

    Should also remember that 8 years of experience does not always equate to 8 years of experience; it could be 1 year of experience 8 times.

    :hehe::cool:

  • RE: Need to return query result in 0.02 sec

    It also looks like you are using SQL Server 2005, so when considering indexes, also look at covered indexes using included columns. Remember there is a trade off using...

  • RE: Query too slow

    Look in BOL (Books Online) for CONTAINS.

    😎

  • RE: Return Single Row

    Sorry, but this doesn't quite make sense:

    I need to be able to a row that contains the name of the consultant even if the main SELECT statement returns a empty...

  • RE: Execution of SP compare to query slow

    You can put a primary key on a TVF as long as it isn't an inline TVF. We would need to see the DDL for the functions to be...

  • RE: Terribly performing query!

    Not sure either, and with no DDL, sample data, and expected results I can't test what I have, so give this a try with no promises that it will work:

    with...

  • RE: Query too slow

    You know, I didn't even notice that, but with the lack of formatting, it was easy to miss.

    😎

  • RE: Query too slow

    I don't think you are going to get much better improvement. Also, it is possible a nonclustered index on [State] and [InActive:] columns may have been a better choice...

Viewing 15 posts - 25,156 through 25,170 (of 26,490 total)