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. General Programming
  3. Visual Basic
  4. How to get more 1000 records from a active directory using ado.net

How to get more 1000 records from a active directory using ado.net

Scheduled Pinned Locked Moved Visual Basic
helpcsharpwindows-admintutorial
3 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.
  • C Offline
    C Offline
    Chaitanya kumar CVSS
    wrote on last edited by
    #1

    hi I got problem while retrieving records from the active directives using ado.net code .There are nearly 5000 records ,but I am getting only 1000 records for any search .What may be reason ..please help. This is the code used for retrieving.. Dim command As New OleDbCommand("<" & strSearchADsPath & ">", Con) Dim adap As New OleDbDataAdapter(Command) Dim cb As New OleDbCommandBuilder(adap) Dim ds As New DataSet adap.Fill(ds, "tabUser") Thanks Chaitanya

    L 1 Reply Last reply
    0
    • C Chaitanya kumar CVSS

      hi I got problem while retrieving records from the active directives using ado.net code .There are nearly 5000 records ,but I am getting only 1000 records for any search .What may be reason ..please help. This is the code used for retrieving.. Dim command As New OleDbCommand("<" & strSearchADsPath & ">", Con) Dim adap As New OleDbDataAdapter(Command) Dim cb As New OleDbCommandBuilder(adap) Dim ds As New DataSet adap.Fill(ds, "tabUser") Thanks Chaitanya

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Hey Chaitanya, I think you will find the answer on this page[^]. Looks like the trick is along the lines of specifying a value for command.Properties("Page Size"). Hope this helps.

      C 1 Reply Last reply
      0
      • L Lost User

        Hey Chaitanya, I think you will find the answer on this page[^]. Looks like the trick is along the lines of specifying a value for command.Properties("Page Size"). Hope this helps.

        C Offline
        C Offline
        Chaitanya kumar CVSS
        wrote on last edited by
        #3

        Yeah you are when using VB6 but I want to get it in VB.NET

        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