Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. SELECT TOP x field FROM

SELECT TOP x field FROM

Scheduled Pinned Locked Moved Database
csharpdatabasesql-servervisual-studiosysadmin
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    joon vh
    wrote on last edited by
    #1

    is the Select Top functionality or an alternative available in sql server 2000? if I have this data... 100 200 330 445 665 887 999 ...I know I can achieve it by ordering it and then using the if value > ALL ... but what if it is a lot more complicated than this? thanks


    Visual Studio can't evaluate this, can you? public object moo { __get { return moo; } __set { moo = value; } }

    C 1 Reply Last reply
    0
    • J joon vh

      is the Select Top functionality or an alternative available in sql server 2000? if I have this data... 100 200 330 445 665 887 999 ...I know I can achieve it by ordering it and then using the if value > ALL ... but what if it is a lot more complicated than this? thanks


      Visual Studio can't evaluate this, can you? public object moo { __get { return moo; } __set { moo = value; } }

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      joon_ wrote:

      is the Select Top functionality or an alternative available in sql server 2000?

      Yes.


      Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects My website

      J 1 Reply Last reply
      0
      • C Colin Angus Mackay

        joon_ wrote:

        is the Select Top functionality or an alternative available in sql server 2000?

        Yes.


        Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects My website

        J Offline
        J Offline
        joon vh
        wrote on last edited by
        #3

        Which is it? SELECT TOP didn't exist before 2005, did it..?


        Visual Studio can't evaluate this, can you? public object moo { __get { return moo; } __set { moo = value; } }

        C 1 Reply Last reply
        0
        • J joon vh

          Which is it? SELECT TOP didn't exist before 2005, did it..?


          Visual Studio can't evaluate this, can you? public object moo { __get { return moo; } __set { moo = value; } }

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          joon_ wrote:

          SELECT TOP didn't exist before 2005, did it..?

          Yes, it did. TOP was introduced in SQL Server 2000


          Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects My website

          J 1 Reply Last reply
          0
          • C Colin Angus Mackay

            joon_ wrote:

            SELECT TOP didn't exist before 2005, did it..?

            Yes, it did. TOP was introduced in SQL Server 2000


            Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects My website

            J Offline
            J Offline
            joon vh
            wrote on last edited by
            #5

            I found my problem, it seems that Select TOP has changed it's capabilities a lot in 2005, and this was the issue. Thanks. On a sidenote, I'm sorry for the poor quality of some of my posts, but I'm really just trying to learn and help people at the same time. Thank you for remaining professional and not just breaking down all of my ideas because you think I'm an idiot.


            Visual Studio can't evaluate this, can you? public object moo { __get { return moo; } __set { moo = value; } }

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups