Results 1 to 3 of 3

Thread: Order By, using a variable

  1. #1
    Join Date
    Nov 2002
    Posts
    2

    Order By, using a variable

    I have a stored procedure, and I'd like to pass it a parameter that tells me which field in a select clause to order my result set by. How do I do this?

  2. #2
    Join Date
    Oct 2002
    Posts
    42
    In Sql Server...


    Read

    http://www.sqlteam.com/item.asp?ItemID=2209

    It will tell you how.

  3. #3
    Join Date
    Nov 2002
    Posts
    2

    Smile Excellent, thank you...

    This was right on point... and quick.

    Thank you,

    Adam

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •