Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default ADOX reference

    Can anyone point me to an online reference for ADOX?

    I am trying to get deep into the datatypes in a table from within my ASP
    page.

    Thanks!

    --Dave
    Dave Navarro Guest

  2. Similar Questions and Discussions

    1. adox asp ms access delete a column from a table
      Hi folx - Here is the code I'm trying (but it errors out with "Item cannot be found in the collection corresponding to the requested name or...
    2. ADOX - how do I select a table by name in order to read which fields it has?
      Hi - I'm finding tons of examples out there on how to create a table or enumerate thru tables and same with fields but what if I just want to...
    3. How to get the lenght of an Access database using ADOX
      I want to administer a remote Access database using ASP. I use the ADOX setup. I am able to list the tables, the fields in each table, the field...
    4. using Access queries using ADOX
      Hello, I have the following code in an asp 3.0 page: Dim dbConn As adodb.Connection Dim cat As ADOX.Catalog Dim view As ADOX.view Set dbConn...
    5. ADOX catalog problem
      I am trying to display column information and I'm running into a problem. I can display column.properties("Autoincrement").name...
  3. #2

    Default Re: ADOX reference

    > Can anyone point me to an online reference for ADOX?

    [url]http://msdn.microsoft.com/library/en-us/ado270/htm/adoddlo1.asp[/url]
    > I am trying to get deep into the datatypes in a table
    [url]http://www.aspfaq.com/2177[/url]


    Aaron Bertrand [MVP] Guest

  4. #3

    Default Re: ADOX reference

    In article <OkHwdNTYDHA.536@TK2MSFTNGP10.phx.gbl>, [email]aaron@TRASHaspfaq.com[/email]
    says...
    > > I am trying to get deep into the datatypes in a table
    >
    > [url]http://www.aspfaq.com/2177[/url]
    I started with your code, thanks!

    Here's an updated function to return text for a data type:

    Function GetDataType(ByVal dt)
    Select Case dt
    Case 0: GetDataType = "Empty"
    Case 2: GetDataType = "SmallInt"
    Case 3: GetDataType = "Integer"
    Case 4: GetDataType = "Real"
    Case 5: GetDataType = "Double"
    Case 6: GetDataType = "Currency"
    Case 7: GetDataType = "Date"
    Case 8: GetDataType = "BSTR"
    Case 9: GetDataType = "IDispatch"
    Case 10: GetDataType = "Error Code"
    Case 11: GetDataType = "Boolean"
    Case 12: GetDataType = "Variant"
    Case 13: GetDataType = "IUknown"
    Case 14: GetDataType = "Decimal"
    Case 16: GetDataType = "TinyInt"
    Case 17: GetDataType = "Unsigned TinyInt (BYTE)"
    Case 18: GetDataType = "Unsigned Small Int (WORD)"
    Case 19: GetDataType = "Unsigned Int (DWORD)"
    Case 20: GetDataType = "Big Int"
    Case 21: GetDataType = "Unsigned Big Int"
    Case 64: GetDataType = "FileTime"
    Case 72: GetDataType = "Unique Identifier (GUID)"
    Case 128: GetDataType = "Binary"
    Case 129: GetDataType = "Char"
    Case 130: GetDataType = "nChar"
    Case 131: GetDataType = "Numeric"
    Case 132: GetDataType = "User Defined (UDT)"
    Case 133: GetDataType = "DBDate"
    Case 133: GetDataType = "DBTime"
    Case 135: GetDataType = "Small DateTime"
    Case 136: GetDataType = "Chapter"
    Case 138: GetDataType = "Automation (PropVariant)"
    Case 139: GetDataType = "VarNumeric"
    Case 200: GetDataType = "VarChar"
    Case 201: GetDataType = "Text"
    Case 202: GetDataType = "nVarChar"
    Case 203: GetDataType = "nText"
    Case 203: GetDataType = "VarBinary"
    Case 205: GetDataType = "Image"
    Case Else: GetDataType = dt
    End Select
    End Function
    Dave Navarro Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139