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. Table Information

Table Information

Scheduled Pinned Locked Moved Database
database
6 Posts 4 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.
  • H Offline
    H Offline
    hamidreza_buddy
    wrote on last edited by
    #1

    Hi. i want to Get information for each table in DataBase. especially i want to get column type and column size. (I want to use OleDb) i used OleDbSchemaGid and some select statements but most of its returns are (null) and doesnt have any useful information.

    S D 2 Replies Last reply
    0
    • H hamidreza_buddy

      Hi. i want to Get information for each table in DataBase. especially i want to get column type and column size. (I want to use OleDb) i used OleDbSchemaGid and some select statements but most of its returns are (null) and doesnt have any useful information.

      S Offline
      S Offline
      Steve S
      wrote on last edited by
      #2

      From where do you want to use OLEDB? C#, VB.NET, Managed C++ or native code? If the latter, there is stuff in ATL DB Client templates that will help. Steve S Developer for hire

      H 1 Reply Last reply
      0
      • S Steve S

        From where do you want to use OLEDB? C#, VB.NET, Managed C++ or native code? If the latter, there is stuff in ATL DB Client templates that will help. Steve S Developer for hire

        H Offline
        H Offline
        hamidreza_buddy
        wrote on last edited by
        #3

        from C# in a Windows form app

        1 Reply Last reply
        0
        • H hamidreza_buddy

          Hi. i want to Get information for each table in DataBase. especially i want to get column type and column size. (I want to use OleDb) i used OleDbSchemaGid and some select statements but most of its returns are (null) and doesnt have any useful information.

          D Offline
          D Offline
          Dinuj Nath
          wrote on last edited by
          #4

          If your database is SQL Server try looking up Information_Schema views in the books online. Select * from Information_Schema.Tables will give list of all the tables. -- Don't take life seriously because you can't come out of it alive. -Warren Miller (From Monty2[^] bio)

          H 1 Reply Last reply
          0
          • D Dinuj Nath

            If your database is SQL Server try looking up Information_Schema views in the books online. Select * from Information_Schema.Tables will give list of all the tables. -- Don't take life seriously because you can't come out of it alive. -Warren Miller (From Monty2[^] bio)

            H Offline
            H Offline
            hamidreza_buddy
            wrote on last edited by
            #5

            No. I want to use OleDb. I want to write a Program for all kind of Databases like access,Oracle and ... . is there any standard SQL statement for that.

            M 1 Reply Last reply
            0
            • H hamidreza_buddy

              No. I want to use OleDb. I want to write a Program for all kind of Databases like access,Oracle and ... . is there any standard SQL statement for that.

              M Offline
              M Offline
              Mairaaj Khan
              wrote on last edited by
              #6

              hamidreza_buddy wrote:

              No. I want to use OleDb. I want to write a Program for all kind of Databases like access,Oracle and ... . is there any standard SQL statement for that.

              You have to create separate connection for each type of database. Regards

              _____________________________ Success is not something to wait for, its something to work for.

              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