Results 1 to 3 of 3

Thread: Tables names of a database in a combo box

  1. #1
    Junior Member
    Join Date
    Jan 2007
    Answers
    12

    Tables names of a database in a combo box

    I want to get all the tables name of a database in a combo box, can u help me please.......


  2. #2
    Junior Member
    Join Date
    Apr 2007
    Answers
    8

    Re: Tables names of a database in a combo box

    Use this query for the CommandText property of your selectcommand:

    select name from sysobjects where xtype='U'


    this works in MS sql server.

    whether it solve the problem do inform me.


  3. #3
    Junior Member
    Join Date
    Apr 2011
    Answers
    1

    Re: Tables names of a database in a combo box

    Quote Originally Posted by bhaskarjha View Post
    Use this query for the CommandText property of your selectcommand:

    select name from sysobjects where xtype='U'


    this works in MS sql server.

    whether it solve the problem do inform me.

    thanx bhaskarjha it works successfully in my system.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact