Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default table relationships

    How do I programmtically get the relationships of a table??

    I can get the list of columns:
    dtFields = conn.GetOleDbSchemaTable(OleDbSchemaGuid., New Object() {Nothing,
    Nothing, strTableName, Nothing"})

    , but when I change it to Foreign_Keys, no data is returned.

    dtFields = conn.GetOleDbSchemaTable(OleDbSchemaGuid.Foreign_K eys, New
    Object() {Nothing, Nothing, strTableName, Nothing})


    et Guest

  2. Similar Questions and Discussions

    1. access relationships and coldfusion
      Hi guys, right a little help please.....I'm now a lot further on than last time I posted on here, your help the first time around was very good :) ...
    2. MS SQL Relationships
      i cant seem to find a visual tool ( like access ) in ms sql enterprise manger that allows me to setup relationships im sure its somewhere obvious...
    3. Relationships in FMP5.5
      I recently upgraded us from FMP4.1 running peer to peer over TCP/IP using clients on win98, win2000, winxp pro. Used to work fine. Then I upgraded...
    4. Breaking Relationships
      Does anyone know of a way to "lock" relationships? If a db is related to second db on the network, and the network is down or unavailable, the...
    5. Creating relationships
      Hello, thank you for taking the time to read this, I appreciate it very much. Im creating a database the allows an individual/student to...
  3. #2

    Default Re: table relationships

    ET,
    What database are you using? If it's SQL, try accessing the system
    tables for getting at this information.

    [url]http://www.microsoft.com/sql/techinfo/productdoc/2000/systables.asp[/url]

    Jason

    et wrote:
    > How do I programmtically get the relationships of a table??
    >
    > I can get the list of columns:
    > dtFields = conn.GetOleDbSchemaTable(OleDbSchemaGuid., New Object()
    {Nothing,
    > Nothing, strTableName, Nothing"})
    >
    > , but when I change it to Foreign_Keys, no data is returned.
    >
    > dtFields = conn.GetOleDbSchemaTable(OleDbSchemaGuid.Foreign_K eys, New
    > Object() {Nothing, Nothing, strTableName, Nothing})
    Jason 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