Forum Replies Created

Viewing 15 posts - 58,351 through 58,365 (of 59,048 total)

  • RE: Selecting parts of a string

    You don't need to build  a function for this... if you are always guaranteed to have 3 parts, then there's a function built into SQL Server... ya just gotta give...

  • RE: outputing Monday 01 Mar 2006??

    You can use the hack, or you can use the functionality built into SQL Sever...

    SELECT DATENAME(dw,GETDATE())+' '+CONVERT(CHAR(11),GETDATE(),106)

  • RE: TSQL optimize database

    Ummmm... why not just setup a standard maintenance plan from Enterprise Manager whick, I believe, will do all of that for you.

  • RE: Concatenation & Matching

    A better way to do this for the sake of performance is...

     SELECT tab1.*

       FROM tab1

       LEFT OUTER JOIN tab2

         ON tab1.Col1 = tab2.Col1

            tab1.Col2 = tab2.Col2

           ...

  • RE: Summarizing Question

    Ah yes, absolutely true... I sometimes just forget about things I'm not allowed to use and, unfortunately, I work in a shop where .Net is not allowed.  Don't know why...

  • RE: Convert SQL Update/From to ANSI Update

    Thanks Ray... that's just what I was looking for.  Dunno if ANSI allows for derived tables but I guess I'm going to find...

  • RE: Decimal Rounding. Am I being silly..?

    The key is in the snippet Kenneth posted...

    e1 / e2p1 - s1 + s2 + max(6, s1 + p2 + 1)max(6,...
  • RE: User Defined FUNCTION

    Francis, I know exactly what you're going through... I just inherited yet another monster set of databases and I think among all the SQL procs, views, and udfs, there might...

  • RE: Current Date minus one???

    If you just want your script to give you info from yesterday no matter what today is, you don't need FLOAT and you don't need to pass a date.  I...

  • RE: Seeking script to drop/create all indexes in database

    Not sure why you'd want to do that when a good maintenance plan will achieve the same result of having properly ordered and defragmented indexes.  So, I have to ask,...

  • RE: Utility Procedures

    Verrryyyy nice, David... One of the better articles I've seen on this type of stuff.  And, if someone takes the time to read it, there are all sorts of goodies...

  • RE: Divide By Zero

    Right on, Serqiy...

  • RE: Summarizing Question

    I agree but...

    I've found that when the "boss", who doesn't really know how to use a spreadsheet, says he wants to open the result set using Excel from a CSV...

  • RE: Execute a large text string

    ...and, if you do write the TEXT out to a text file for execution, use OSQL instead of ISQL because ISQL is deprecated compared to OSQL.

    Just an opinion but both...

  • RE: Print Dates between Min & Max Dates

    I had a feeling you were one of the smart ones.    Thanks for the feedback.

Viewing 15 posts - 58,351 through 58,365 (of 59,048 total)