Forum Replies Created

Viewing 15 posts - 58,051 through 58,065 (of 59,070 total)

  • RE: Varchar Aggregate?

    Keith and Farrell,

    Thank you both for your feedback... My bad... the usage should be like this...

    SELECT DISTINCT Name,

            dbo.ConcatStatus(Name) AS StatusList

       FROM yourtable

  • RE: An oppertunity to get a new SQL Comparison tool for free

    I agree... although your intentions are good, I'm sure, this is nothing more than spamming a forum.

  • RE: Locking

    I have found that most transactions are simply not necessary... for example, if your transactions have no ROLLBACK code, there is no need for the transaction.  The WITH (NOLOCK) suggestion...

  • RE: atuomatically generated value in database?

    Agreed... a little more info would help... should it be a date, and sequential ID, what???

  • RE: YYYYMMDD string passed to SQL7 Datetime SP parameter

    Rodger,

    Did anyone change the default datatime format on the non-production box?

    This is why you should not trust defaults... things change. 

    Perhaps, if you posted the code, we may be able...

  • RE: Varchar Aggregate?

    Keith,

    Yes, there's an easy way and it does NOT require the overhead of a cursor...

    Substitute the name of yourtable for "yourtable" everywhere in the code below...

    First, make a function...

  • RE: floating nightmare

    I', a bit confused... you know the number should always come in having 5 decimal places but you want to convert VARCHAR to INT and you ultimately want to "do the...

  • RE: Using TOP in the Select is slow

    Try not using a cursor ...

  • RE: return date only in stored procedure..help!

    Thanks, Bill,

    I do have to emphasize that performance will usually be better if you do this simple type of thing in the code mainstream instead of a function.  Functions are...

  • RE: return date only in stored procedure..help!

    Jules,

    The two functions I wrote do get rid of the time portion and they do it with only trwo functions instead of the 5 you used.  AND, they did it without...

  • RE: return date only in stored procedure..help!

    My recommendation would be not to make a trip to a character based date and back again...  I'd also not make a stored procedure for it.  I'd likely do it...

  • RE: YYYYMMDD string passed to SQL7 Datetime SP parameter

    Dunno about VB datetimes but in SQL Server 2000...

    I think you'll find that 23:59:59.999 will round up to precisely 00:00:00.000 and that 23:59:59.998 will round down to 23:59:59.997.

    SELECT CAST('23:59:59.999' AS DATETIME)

    SELECT CAST('23:59:59.998' AS...

  • RE: The Basics of Sizing a SQL Server Database

    I agree... a decent article... but it DOES sound like an advertisement and provides no real info as to how to do the sizing estimate if you don't have those...

  • RE: nested update triggers which update multiple rows

    Not a problem, Nick.  You had the right idea...

    In SQL Server (very cool and very unlike Oracle), there are two tables that are temporarily formed (in TempDB) and available in...

  • RE: date and time calculations

    Nicely done... a couple of minor things you may want to change...

    1. If t2.ID>t1.ID then t2.ID cannot be equal to t1.ID.  Remove the t1.ID<>t2.ID criteria.
    2. In case the amount of time is...

Viewing 15 posts - 58,051 through 58,065 (of 59,070 total)