Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Database Names to a combo box

wvbothawvbotha Posts: 23Member
I have SQL Server 2000 on my computer. i need to get all of my database names to a combo box.how can i do it? (I'm using using .Net 1.1).please some one help me........

Comments

  • BitByBit_ThorBitByBit_Thor Posts: 2,444Member
    : I have SQL Server 2000 on my computer. i need to get all of my
    : database names to a combo box.how can i do it? (I'm using using .Net
    : 1.1).please some one help me........
    :
    :

    Do you mean, search the entire computer for all database files?

    Best Regards,
    Richard

    The way I see it... Well, it's all pretty blurry
  • wvbothawvbotha Posts: 23Member
    : : I have SQL Server 2000 on my computer. i need to get all of my
    : : database names to a combo box.how can i do it? (I'm using using .Net
    : : 1.1).please some one help me........
    : :
    : :
    :
    : Do you mean, search the entire computer for all database files?
    :
    : Best Regards,
    : Richard
    :
    : The way I see it... Well, it's all pretty blurry

    No... Not like that. when we log into sql server their is a combo box to change database name. Like That.it should search with in the server and it should only check for SQL DBs..
  • BitByBit_ThorBitByBit_Thor Posts: 2,444Member
    : : : I have SQL Server 2000 on my computer. i need to get all of my
    : : : database names to a combo box.how can i do it? (I'm using using .Net
    : : : 1.1).please some one help me........
    : : :
    : : :
    : :
    : : Do you mean, search the entire computer for all database files?
    : :
    : : Best Regards,
    : : Richard
    : :
    : : The way I see it... Well, it's all pretty blurry
    :
    : No... Not like that. when we log into sql server their is a combo
    : box to change database name. Like That.it should search with in the
    : server and it should only check for SQL DBs..


    So you want to search the server for a specific DB file?


    Best Regards,
    Richard

    The way I see it... Well, it's all pretty blurry
  • wvbothawvbotha Posts: 23Member
    : : : : I have SQL Server 2000 on my computer. i need to get all of my
    : : : : database names to a combo box.how can i do it? (I'm using using .Net
    : : : : 1.1).please some one help me........
    : : : :
    : : : :
    : : :
    : : : Do you mean, search the entire computer for all database files?
    : : :
    : : : Best Regards,
    : : : Richard
    : : :
    : : : The way I see it... Well, it's all pretty blurry
    : :
    : : No... Not like that. when we log into sql server their is a combo
    : : box to change database name. Like That.it should search with in the
    : : server and it should only check for SQL DBs..
    :
    :
    : So you want to search the server for a specific DB file?
    :
    :
    : Best Regards,
    : Richard
    :
    : The way I see it... Well, it's all pretty blurry
    Yes, that's the way i need.....

    Best Regards,
    wvbotha
  • BitByBit_ThorBitByBit_Thor Posts: 2,444Member
    I haven't actually done this myself yet, but the System.DirectoryServices.DirectorySearcher object looks promising. It looks like you can set SearchRoot() to where you want to search. Then FindAll() should execute the search query.

    Let me know how that works out.

    Best Regards,
    Richard

    The way I see it... Well, it's all pretty blurry
Sign In or Register to comment.