Forum Replies Created

Viewing 15 posts - 271 through 285 (of 1,086 total)

  • RE: Convert Money to Text

    You know you either have or do not have comma's. 

    I would suggest you make a table with the text, (i.e., 25 = "Twenty Five", 250 = "Two hundred and fifty", or...

  • RE: A nice way to start the week

    Oh man!  You're #1 on the site now, aren't you?!?!?!?   

    Cripes!  I already don't get enough sleep....

  • RE: How can i just select the top 1 record from a child table

    You may need to give us more information, but based upon what your post states, this should work...

     

    CREATE TABLE #Parent( IdentityField integer,...

  • RE: A nice way to start the week

    976.23 Knucklehead [ #4 ].  You got some competition now Sushila...   

     

  • RE: identity

    CREATE TABLE #Test( PrimaryKey integer IDENTITY,

                                       CharacterField varchar(10))

    INSERT INTO #Test

    SELECT 'First' UNION ALL

    SELECT 'Second' UNION ALL

    SELECT 'Third'

    SELECT * FROM #Test

    DROP TABLE #Test

    CREATE...

  • RE: Displaying rows - basic sort problem?

    Not sure what is happening with your query, other than the issue that "Time" is a reserved word.  Try this: 

    DECLARE @RaceResults TABLE( Sex char(1),

                                               Distance numeric(5,3),

                                               [Time]...

  • RE: dynamic sql

    That was my point.  In other words, all the tables contain the same columns, just different names? 

     

  • RE: dynamic sql

    First off, why is this Dynamic SQL?  You seem to know which table you are using as you are specifying each column independently.  I would suggest you alter this to...

  • RE: Last Saturday in month

    Yeah, yeah,... I know.  Do as I say, not as I do...   

     

  • RE: Last Saturday in month

    Calendar and numbers tables are the best approach!  Do a search on these - RGR'us has a number of postings with those approaches...

     

  • RE: Why is this INSERT returning a recordset

    Good thinking!  Done that myself during testing.  Forgot to comment out or remove some return code...  

     

  • RE: Last Saturday in month

    Probably - but I figured a bulldozer approach was just what it needed...  

    (It probably could be done with a CASE statement...)

     

  • RE: Last Saturday in month

    phillcart, your choice of date was perfect!  The last day of that month is Sunday, hence you need a bit of flow control to prevent going back a full week...

  • RE: Why is this INSERT returning a recordset

    Have you recompiled the stored procedure?  It may have become corrupt...

     

  • RE: Brain Dead

    Thanks.  That was the path I was using, but somehow I had it in my head there was simpler way to handle this...

    Oil...

Viewing 15 posts - 271 through 285 (of 1,086 total)