Forum Replies Created

Viewing 15 posts - 57,316 through 57,330 (of 59,059 total)

  • RE: Convert number without rounding

    Lynn is absolutely correct... for those that can't find the ROUND function in Books Online here's what the 3rd operand of "1" means...

    function

  • RE: How do the cursors work?

    Spot on, Robert!

  • RE: Trigger to return SqlCommand

    As an alternative, check out sp_WHO in Books Online and it's undocumented cousin sp_WHO2. 

    Also, I haven't check how @@PROCID reacts in a trigger but it might be another simple...

  • RE: Creating sequential numbers

    Sorry... took a bit more than 10 minutes because of all the demo code I added but here's my suggestion... I used all temp tables so you could play without having...

  • RE: Creating sequential numbers

    Gimme ten minutes... I'll be right back...

  • RE: Creating sequential numbers

    One more question... Is it possible to add a single column to the table?

  • RE: Count Decimal Places

    Ok... this takes 2 seconds longer (1,000,000 rows in 23 seconds instead of 21)... had to work around the "zero domain" on the LOG10 function to get this to work...

  • RE: Count Decimal Places

    There would certainly appear to be a fly in the ointment  ... thanks for the catch and sorry for the mistake folks... I'll see...

  • RE: Syntax error converting datetime from character string.

    I'm thinking it just might be something else because the following works just fine and without any error...

    select datediff( hh, 'May 17 2002 9:53', 'May 18 2002 9:53')

  • RE: Mind Your Manners

    Don't worry, Gail... we considered the source

  • RE: Creating sequential numbers

    quote...but when doing that I must maintain the sequence of un-duplicated numbers

    Commando...

    I think the quote above explains it...

  • RE: Exporting to File

    A good ol' batch file that uses OSQL or BCP would be easy enough... and, then, the user could provide whatever filename they wanted as a parameter.

  • RE: doubt

    Choose wisely and carefully... you get one clustered index per table.  And, just because you have a clustered index on a table does not guarantee it will be used... you...

  • RE: conflicts with view names

    If the naming differences are that bad, generate scripts for all the views from EnterPrise Manger, drop all the views, recreate the views using the script.

  • RE: Calculating time between 2 dates minus time from week(s) end(s)

    This should do it... don't worry about the couple of strings you see... this is still pretty darned fast and they make it independent of the @@DATEFIRST setting... (you can...

Viewing 15 posts - 57,316 through 57,330 (of 59,059 total)